Skip to content

Commit d528f30

Browse files
committed
fix siome minor issues
1 parent 30f7197 commit d528f30

3 files changed

Lines changed: 29 additions & 18 deletions

File tree

src/script.js

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ function setupEventListeners() {
7575

7676
dom.inputsStartMax.forEach(input => {
7777
input.addEventListener("wheel", e => {
78-
e.preventDefault();
79-
input.focus();
78+
e.preventDefault();
79+
input.focus();
8080
const step = Number(input.step) || 1;
8181
const min = input.min !== "" ? Number(input.min) : -Infinity;
8282
const max = input.max !== "" ? Number(input.max) : Infinity;
@@ -85,7 +85,7 @@ function setupEventListeners() {
8585
value += e.deltaY < 0 ? step : -step;
8686

8787
input.value = Math.min(max, Math.max(min, value));
88-
updateUrlParam();
88+
updateUrlParam();
8989
});
9090
});
9191

@@ -120,20 +120,20 @@ function setupEventListeners() {
120120
dom.themeSelect.addEventListener("change", (t) => {
121121
changeTheme(t.target.value);
122122
}),
123-
dom.forceZipInput.addEventListener("change", () => {
124-
state.forceZip = dom.forceZipInput.checked;
125-
localStorage.setItem("force_zip", state.forceZip);
126-
});
127-
128-
dom.themeBtn.addEventListener("click", () => {
129-
const t = Object.keys(THEME_DEFAULTS),
130-
e = (t.indexOf(state.theme) + 1) % t.length;
131-
changeTheme(t[e]);
132-
}),
123+
dom.forceZipInput.addEventListener("change", () => {
124+
state.forceZip = dom.forceZipInput.checked;
125+
localStorage.setItem("force_zip", state.forceZip);
126+
});
127+
128+
dom.themeBtn.addEventListener("click", () => {
129+
const t = Object.keys(THEME_DEFAULTS),
130+
e = (t.indexOf(state.theme) + 1) % t.length;
131+
changeTheme(t[e]);
132+
}),
133133
dom.accentInput.addEventListener("input", (t) => {
134134
(state.accentColor = t.target.value),
135-
state.accentIsCustom = true;
136-
applyAccentColor(state.accentColor),
135+
state.accentIsCustom = true;
136+
applyAccentColor(state.accentColor),
137137
localStorage.setItem("accent", state.accentColor);
138138
});
139139
}
@@ -284,7 +284,7 @@ async function startProcess() {
284284
t.branch = e.default_branch;
285285
}
286286
"blob" === t.type ? await downloadSingleFile(t) : await downloadFolder(t),
287-
updateStatus("Complete!", 100),
287+
updateStatus("Completed!", 100),
288288
showToast("Download Finished", "success");
289289
} catch (t) {
290290
showToast(t.message, "error"),
@@ -318,7 +318,7 @@ async function downloadFolder(t) {
318318

319319
const a = allBlobs.slice(startIndex, endIndex);
320320

321-
dom.fileCount.textContent = `Downloading ${a.length} files (${startIndex}-${endIndex} of ${allBlobs.length})`;
321+
dom.fileCount.textContent = `Downloading ${a.length} files from (${startIndex} to ${endIndex} of ${allBlobs.length})`;
322322
renderPreview(a);
323323

324324
const s = new JSZip();
@@ -331,7 +331,7 @@ async function downloadFolder(t) {
331331
o = t.path ? e.path.substring(t.path.length + 1) : e.path;
332332
s.file(o, n),
333333
r++,
334-
updateStatus(`Downloading ${r}/${a.length}`, (r / a.length) * 90);
334+
updateStatus(`Downloaded ${r} from ${a.length}`, (r / a.length) * 90);
335335
} catch (t) { }
336336
})
337337
);

src/style.css

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -916,6 +916,13 @@ footer {
916916
.wiki-toc {
917917
display: none;
918918
}
919+
920+
.wiki-header h1 {
921+
font-size: 1.5rem;
922+
}
923+
.wiki-header p {
924+
display: none;
925+
}
919926
}
920927

921928
@media (max-width: 600px) {
@@ -1058,6 +1065,9 @@ footer {
10581065
max-width: 250px;
10591066
}
10601067

1068+
header {
1069+
padding: 0 3.5rem 0 0;
1070+
}
10611071

10621072
}
10631073

wiki/index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<script>navigator.serviceWorker.register("src/sw.js")</script>
1010
<link rel="stylesheet" type="text/css" href="/src/style.css">
1111
<link rel="manifest" href="/manifest.json" />
12+
<link rel="shortcut icon" href="/src/icon.png" type="image/x-icon">
1213
<!-- PreConnects -->
1314
<link rel="preconnect" href="https://fonts.googleapis.com">
1415
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="">

0 commit comments

Comments
 (0)