From 1c7dc276db2e5b534620d2be5ea240b2861becae Mon Sep 17 00:00:00 2001
From: Rasmus Luha <rasmus.luha@gmail.com>
Date: Wed, 21 Dec 2022 01:13:06 +0200
Subject: lastCommit fix

---
 index.html               | 6 ++++++
 main.js                  | 6 ++++++
 rannak/kaart/js/kaart.js | 7 +------
 3 files changed, 13 insertions(+), 6 deletions(-)
 create mode 100644 main.js

diff --git a/index.html b/index.html
index 3818c2d..37653e8 100644
--- a/index.html
+++ b/index.html
@@ -89,11 +89,14 @@
 
     <section id="juhend">
         <div class="container">
+
           <div class="text-center pt-5 pb-3">
             <h2 class="text-white fs-1">Juhend</h2>
             <p class="lead text-muted pt-2">Juhend teeb digirännaku läbimise kergemaks ja mugavamaks, Loe see kindlasti läbi.</p>
           </div>
 
+
+
           <!-- accordion -->
           <div class="accordion accordion-flush justify-content-center" id="accordionFlush">
 
@@ -179,10 +182,13 @@
             </div>
 
 
+
           </div>
         </div>
     </section>
 
+    <script src="main.js"></script>
+
     <!-- JavaScript Bundle with Popper -->
     <script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-A3rJD856KowSb7dwlZdYEkO39Gagi7vIsF0jrRAoQmDKKtQBHUuLZ9AsSv4jD4Xa" crossorigin="anonymous"></script>
 </body>
diff --git a/main.js b/main.js
new file mode 100644
index 0000000..c3d8b56
--- /dev/null
+++ b/main.js
@@ -0,0 +1,6 @@
+o
+let btn = document.querySelector(".neon-button");
+
+if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent))
+    btn.setAttribute("href", "../..");
+else
diff --git a/rannak/kaart/js/kaart.js b/rannak/kaart/js/kaart.js
index 5183643..4bb0afe 100644
--- a/rannak/kaart/js/kaart.js
+++ b/rannak/kaart/js/kaart.js
@@ -26,10 +26,5 @@ for (let i = 0; i < riigid.length; i++){
 function moveOnEnable(){
     const btn = document.querySelector(".moveOn");
     btn.disabled = false;
-
-    if (/Android|webOS|iPhone|iPad|iPod|BlackBerry|BB|PlayBook|IEMobile|Windows Phone|Kindle|Silk|Opera Mini/i.test(navigator.userAgent)) {
-        btn.onclick = () => location.href = "../noMobiles";
-    }
-    else 
-        btn.onclick = () => location.href = "../rolliValik";
+    btn.onclick = () => location.href = "../rolliValik";
 }
-- 
cgit v1.2.3