Tidy up Javascript files

This commit is contained in:
schlagmichdoch 2023-10-31 19:08:20 +01:00
parent cb8d6448f5
commit d84c7d1f84
8 changed files with 56 additions and 28 deletions

View file

@ -1,5 +1,3 @@
const $ = query => document.getElementById(query);
const $$ = query => document.body.querySelector(query);
window.iOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream;
window.android = /android/i.test(navigator.userAgent);
window.isMobile = window.iOS || window.android;