diff --git a/public/index.html b/public/index.html index 179d645..3c67b4f 100644 --- a/public/index.html +++ b/public/index.html @@ -4,7 +4,7 @@ Kruiswoord Pro: Zweedse puzzel - + diff --git a/public/mobile.html b/public/mobile.html index f15c7f7..044e042 100644 --- a/public/mobile.html +++ b/public/mobile.html @@ -4,7 +4,7 @@ Kruiswoord Pro - Mobile - + diff --git a/public/redirect.js b/public/redirect2.js similarity index 89% rename from public/redirect.js rename to public/redirect2.js index 831ca2d..972cb35 100644 --- a/public/redirect.js +++ b/public/redirect2.js @@ -15,13 +15,13 @@ const userAgent = navigator.userAgent // Better mobile detection - const isMobilePhone = /Android.*Mobile|webOS|iPhone|iPod|BlackBerry|IEMobile|Opera Mini/i.test(userAgent) + const isMobilePhone = /iPhone|BlackBerry|IEMobile|Opera Mini/i.test(userAgent) const isTabletDevice = /iPad|Android(?!.*Mobile)/i.test(userAgent) let targetPage = null // Determine target page based on device and screen size - if (isMobilePhone && width < 512) { + if (width < 400) { // Mobile phones: detected mobile device < 768px targetPage = 'mobile.html' } else if (width < 400) { diff --git a/public/tablet.html b/public/tablet.html index 22c7d9d..203543a 100644 --- a/public/tablet.html +++ b/public/tablet.html @@ -4,7 +4,7 @@ Kruiswoord Pro - +