Skip to content

Commit 0ef6248

Browse files
committed
refactor: ♻️ translation to english in main-en.js
1 parent f96eafa commit 0ef6248

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

js/main-en.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@
8484
});
8585
saveBtn.addEventListener('click', async function () {
8686
let t = new Date();
87-
list.time = `${t.getFullYear()}/${t.getMonth()*1+1}/${t.getDate()} ${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`;
87+
list.time = `${t.getFullYear()}/${t.getMonth() * 1 + 1}/${t.getDate()} ${t.getHours()}:${t.getMinutes()}:${t.getSeconds()}`;
8888
let write = await database.ref('/').push(list);
8989
popup.classList.add('show');
9090
let url = `${urlOrigin}${urlPath}#${write.key}`;
@@ -97,10 +97,10 @@
9797
const copy = document.getElementById('copy');
9898
new ClipboardJS('#copy');
9999
copy.addEventListener('click', () => {
100-
copy.innerText = '複製成功';
100+
copy.innerText = 'Copy Successfully!';
101101
copy.classList.add('copied');
102102
setTimeout(() => {
103-
copy.innerText = '複製連結';
103+
copy.innerText = 'Copy link';
104104
copy.classList.remove('copied');
105105
}, 1000);
106106
});
@@ -290,12 +290,12 @@
290290

291291
// 注意,小車一開始的中心點 y 座標,不等於畫面的中心點 y 座標。
292292
// 邊界在中心的周圍 1/3 小車寬/高的距離
293-
const kxCenter = kx + carSize.width/2; // 車子中心點 x 座標
294-
const kyCenter = ky + carSize.height/2; // 車子中心點 y 座標
295-
const leftSide = ww * 0.5 - carSize.width/3; // 左邊界,小於這個值,判定車子移動到左邊
296-
const rightSide = ww * 0.5 + carSize.width/3; // 右邊界,大於這個值,判定車子移動到右邊
297-
const topSide = oy + carSize.height/6; // 上邊界,小於這個值,判定車子移動到上面
298-
const bottomSide = oy + 5 * carSize.height/6; // 下邊界,小於這個值,判定車子移動到下面
293+
const kxCenter = kx + carSize.width / 2; // 車子中心點 x 座標
294+
const kyCenter = ky + carSize.height / 2; // 車子中心點 y 座標
295+
const leftSide = ww * 0.5 - carSize.width / 3; // 左邊界,小於這個值,判定車子移動到左邊
296+
const rightSide = ww * 0.5 + carSize.width / 3; // 右邊界,大於這個值,判定車子移動到右邊
297+
const topSide = oy + carSize.height / 6; // 上邊界,小於這個值,判定車子移動到上面
298+
const bottomSide = oy + 5 * carSize.height / 6; // 下邊界,小於這個值,判定車子移動到下面
299299

300300
if (kxCenter < leftSide) {
301301
if (!send.left) {

0 commit comments

Comments
 (0)