$(document).ready(function() { //endgerät prufen// var deviceAgent = navigator.userAgent.toLowerCase(); //var tablet = deviceAgent.match(/(ipad)/); var mobile = deviceAgent.match(/(iphone|ipod)/); if((deviceAgent.search("android") > -1) && (deviceAgent.search("mobile") > -1)){var androidmobile = 1;} if((deviceAgent.search("android") > -1) && !(deviceAgent.search("mobile") > -1)){var androidtablet = 1;} });