summaryrefslogtreecommitdiff
path: root/frontend/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/main.js')
-rw-r--r--frontend/main.js14
1 files changed, 7 insertions, 7 deletions
diff --git a/frontend/main.js b/frontend/main.js
index a0acfb0..3c2c082 100644
--- a/frontend/main.js
+++ b/frontend/main.js
@@ -113,13 +113,13 @@ async function updateMachines() {
const machineDetailTitles = [];
const machineDetailDescs = [];
- for (const type of types) {
- for (const n of ns) {
- machineImgs.push(document.getElementById(`${type}${n}-img`));
- machineTxts.push(document.getElementById(`${type}${n}-span`));
- machineDetailImgs.push(document.getElementById(`detail-${type[0]}${n}-img`));
- machineDetailTitles.push(document.getElementById(`detail-${type[0]}${n}-title`));
- machineDetailDescs.push(document.getElementById(`detail-${type[0]}${n}-desc`));
+ for (const n of ns) {
+ for (const t of types) {
+ machineImgs.push(document.getElementById(`${t}${n}-img`));
+ machineTxts.push(document.getElementById(`${t}${n}-span`));
+ machineDetailImgs.push(document.getElementById(`detail-${t[0]}${n}-img`));
+ machineDetailTitles.push(document.getElementById(`detail-${t[0]}${n}-title`));
+ machineDetailDescs.push(document.getElementById(`detail-${t[0]}${n}-desc`));
}
}