Update index.html
Browse files- index.html +10 -1
index.html
CHANGED
|
@@ -155,7 +155,7 @@
|
|
| 155 |
<button onclick="promptForSimulation(false)">模擬 100 次:2號門不換 (需密碼)</button>
|
| 156 |
<button onclick="promptForSimulation(true)">模擬 100 次:2號門換門 (需密碼)</button>
|
| 157 |
<button onclick="promptForTenDoors()">進入十門版本 (需密碼)</button>
|
| 158 |
-
<button onclick="
|
| 159 |
</div>
|
| 160 |
<div class="stats-container">
|
| 161 |
<h2>中獎機率統計</h2>
|
|
@@ -320,6 +320,15 @@
|
|
| 320 |
alert("密碼錯誤!");
|
| 321 |
}
|
| 322 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 323 |
</script>
|
| 324 |
</body>
|
| 325 |
</html>
|
|
|
|
| 155 |
<button onclick="promptForSimulation(false)">模擬 100 次:2號門不換 (需密碼)</button>
|
| 156 |
<button onclick="promptForSimulation(true)">模擬 100 次:2號門換門 (需密碼)</button>
|
| 157 |
<button onclick="promptForTenDoors()">進入十門版本 (需密碼)</button>
|
| 158 |
+
<button onclick="promptForTeacherVersion()">進入教師教學版本 (需密碼)</button>
|
| 159 |
</div>
|
| 160 |
<div class="stats-container">
|
| 161 |
<h2>中獎機率統計</h2>
|
|
|
|
| 320 |
alert("密碼錯誤!");
|
| 321 |
}
|
| 322 |
}
|
| 323 |
+
|
| 324 |
+
function promptForTeacherVersion() {
|
| 325 |
+
const password = prompt("請輸入密碼以進入教師教學版本:");
|
| 326 |
+
if (password === "Teacher") {
|
| 327 |
+
window.location.href = "teacher_version.html";
|
| 328 |
+
} else {
|
| 329 |
+
alert("密碼錯誤!");
|
| 330 |
+
}
|
| 331 |
+
}
|
| 332 |
</script>
|
| 333 |
</body>
|
| 334 |
</html>
|