Spaces:
Running
Running
Upload index.html
Browse files- index.html +4 -2
index.html
CHANGED
|
@@ -920,8 +920,10 @@
|
|
| 920 |
};
|
| 921 |
|
| 922 |
studentsGrid.appendChild(div);
|
| 923 |
-
// 當新同學加入時捲動到最底
|
| 924 |
-
|
|
|
|
|
|
|
| 925 |
}
|
| 926 |
|
| 927 |
// --- 3. 開始環遊圓周率 (API 批量處理) ---
|
|
|
|
| 920 |
};
|
| 921 |
|
| 922 |
studentsGrid.appendChild(div);
|
| 923 |
+
// 當新同學加入時捲動到最底 (若已顯示結果則不捲動,避免影響觀看開獎畫面)
|
| 924 |
+
if (document.getElementById('resultsArea').style.display !== 'block') {
|
| 925 |
+
window.scrollTo({ top: document.body.scrollHeight, behavior: 'smooth' });
|
| 926 |
+
}
|
| 927 |
}
|
| 928 |
|
| 929 |
// --- 3. 開始環遊圓周率 (API 批量處理) ---
|