summaryrefslogtreecommitdiff
path: root/rannak/mangud/perenaine/ristsona
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@gmail.com>2023-01-06 23:22:44 +0200
committerRasmus Luha <rasmus.luha@gmail.com>2023-01-06 23:22:44 +0200
commit2963d358fecd49fd9b140c4df1fea7de04cb5757 (patch)
tree2ccd3c1d5cc555daed71f7b2329781fdda4eb538 /rannak/mangud/perenaine/ristsona
parentab1b5e77141ed402b41b16346254d512b458767c (diff)
Sissejuhatus Popup and sonaragastik dif colors
Diffstat (limited to 'rannak/mangud/perenaine/ristsona')
-rw-r--r--rannak/mangud/perenaine/ristsona/index.html2
-rw-r--r--rannak/mangud/perenaine/ristsona/script.js8
2 files changed, 8 insertions, 2 deletions
diff --git a/rannak/mangud/perenaine/ristsona/index.html b/rannak/mangud/perenaine/ristsona/index.html
index e10aa1c..5e106c7 100644
--- a/rannak/mangud/perenaine/ristsona/index.html
+++ b/rannak/mangud/perenaine/ristsona/index.html
@@ -13,7 +13,7 @@
<body>
<!-- Button trigger modal -->
- <button type="button" class="btn btn-primary modalButton" data-bs-toggle="modal" data-bs-target="#myModal">
+ <button id="testModal" type="button" class="btn btn-primary modalButton" data-bs-toggle="modal" data-bs-target="#myModal">
Sissejuhatus
</button>
diff --git a/rannak/mangud/perenaine/ristsona/script.js b/rannak/mangud/perenaine/ristsona/script.js
index b542037..e6f56c7 100644
--- a/rannak/mangud/perenaine/ristsona/script.js
+++ b/rannak/mangud/perenaine/ristsona/script.js
@@ -1,4 +1,9 @@
-//TODO delete arr not good and also undefined passing into õigeVastus ja valeVastus funks
+document.addEventListener('DOMContentLoaded', () => {
+ let btn = document.querySelector('.modalButton');
+ btn.click();
+});
+
+
let counter = 0;
let õiged = new Array();
@@ -187,6 +192,7 @@ function enterSubmit(){
enterSubmit()
+
// If All Else Done