We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9ab8be6 commit 1e58a12Copy full SHA for 1e58a12
1 file changed
simulation.html
@@ -21,7 +21,7 @@ <h2 id="day-counter">Day 1</h2>
21
22
<button class="button" id="next-day">Proceed to Next Day</button>
23
</main>
24
- <script src="events.js"></script>
+ <script type="module" src="events.js"></script>
25
<!-- The script to collect participants follows -->
26
<script>
27
function loadParticipants() {
@@ -79,7 +79,7 @@ <h2 id="day-counter">Day 1</h2>
79
80
//WE'RE DONE WITH THE ABOVE CODE. Now the event simulation code follows
81
82
-import { events } from './events.js'; // Adjust the path if needed
+
83
function runRandomEvent() {
84
// Ensure there are alive participants before running events
85
const aliveMasters = participants.filter(p => p.type === "master" && p.status === "alive");
0 commit comments