+ added mobileHandler.js and mobile.css prototype to handle mobile devices

This commit is contained in:
koenigmarcel
2021-06-10 20:32:16 +02:00
parent 3773fb427b
commit e5d1fc77d1
2 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
function isMobile() {
var mobileDeviceIndicator = 0;
if( /Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent) ) {
mobileDeviceIndicator = 1;
}
/*
var hasTouchscreen = 'ontouchstart' in window;
alert(hasTouchscreen ? 'has touchscreen' : 'doesn\'t have touchscreen');*/
}