summaryrefslogtreecommitdiff
path: root/rannak/kaart/js
diff options
context:
space:
mode:
authorRasmus Luha <rasmus.luha@gmail.com>2022-12-21 00:54:11 +0200
committerRasmus Luha <rasmus.luha@gmail.com>2022-12-21 00:54:11 +0200
commit707ece8e5b4eeeb7967f7802dec53f2ba75a3757 (patch)
tree4899162f315d8016127c2063bd183a75923f4844 /rannak/kaart/js
parent9f6ff0f0ec88e43abae24b1e99a629bd42867dab (diff)
Add no Phones page
Diffstat (limited to 'rannak/kaart/js')
-rw-r--r--rannak/kaart/js/kaart.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/rannak/kaart/js/kaart.js b/rannak/kaart/js/kaart.js
index 4bb0afe..5183643 100644
--- a/rannak/kaart/js/kaart.js
+++ b/rannak/kaart/js/kaart.js
@@ -26,5 +26,10 @@ for (let i = 0; i < riigid.length; i++){
function moveOnEnable(){
const btn = document.querySelector(".moveOn");
btn.disabled = false;
- btn.onclick = () => location.href = "../rolliValik";
+
+ 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";
}