summaryrefslogtreecommitdiff
path: root/rannak/mangud/perenaine
diff options
context:
space:
mode:
Diffstat (limited to 'rannak/mangud/perenaine')
-rw-r--r--rannak/mangud/perenaine/memori/script.js6
-rw-r--r--rannak/mangud/perenaine/ristsona/index.html2
-rw-r--r--rannak/mangud/perenaine/ristsona/script.js8
3 files changed, 14 insertions, 2 deletions
diff --git a/rannak/mangud/perenaine/memori/script.js b/rannak/mangud/perenaine/memori/script.js
index 1e9215b..8d74ec9 100644
--- a/rannak/mangud/perenaine/memori/script.js
+++ b/rannak/mangud/perenaine/memori/script.js
@@ -1,3 +1,9 @@
+document.addEventListener('DOMContentLoaded', () => {
+ let btn = document.querySelector('.modalButton');
+ btn.click();
+});
+
+
const cards = document.querySelectorAll('.memory-card');
let hasFlippedCard = false;
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