MediaWiki:BossTimer.js: Difference between revisions

no edit summary
No edit summary
No edit summary
Tags: Mobile edit Mobile web edit
Line 154: Line 154:
         start_timer('EU', 'CET');
         start_timer('EU', 'CET');
     }
     }
     function iOS() {
     function isApple() {
         return [
         return [
             'iPad Simulator',
             'iPad Simulator',
Line 164: Line 164:
         ].includes(navigator.platform)
         ].includes(navigator.platform)
             // iPad on iOS 13 detection
             // iPad on iOS 13 detection
             || (navigator.userAgent.includes("Mac") && "ontouchend" in document)
             || (navigator.userAgent.includes("Mac"))
     }
     }


     if (iOS()) $('.boss-timer').hide();
     if (isApple()) $('.boss-timer').hide();
});
});