From 1c7dc276db2e5b534620d2be5ea240b2861becae Mon Sep 17 00:00:00 2001 From: Rasmus Luha Date: Wed, 21 Dec 2022 01:13:06 +0200 Subject: lastCommit fix --- main.js | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 main.js (limited to 'main.js') 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 -- cgit v1.2.3