mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-13 17:26:34 +00:00
Responsive iOS 6 Theme - ios6.js needs to be added in the config.
Viewport changes http://forum.fhem.de/index.php/topic,23406.msg166953.html#msg166953 git-svn-id: https://svn.fhem.de/fhem/trunk@8695 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
33faf0b59f
commit
8d816eb573
@ -70,7 +70,8 @@ $(document).ready(function() {
|
|||||||
/* DOM manipulation
|
/* DOM manipulation
|
||||||
*/
|
*/
|
||||||
// init viewport
|
// init viewport
|
||||||
$('head').append('<meta name="viewport" content=width=device-width, user-scalable=0, initial-scale=1.0/>');
|
$('meta[name="viewport"]').remove();
|
||||||
|
$('head').append('<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no" />');
|
||||||
|
|
||||||
var ismobile = (/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(navigator.userAgent.toLowerCase()));
|
var ismobile = (/iphone|ipod|android|blackberry|opera|mini|windows\sce|palm|smartphone|iemobile/i.test(navigator.userAgent.toLowerCase()));
|
||||||
var istablet = (/ipad|android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(navigator.userAgent.toLowerCase()));
|
var istablet = (/ipad|android|android 3.0|xoom|sch-i800|playbook|tablet|kindle/i.test(navigator.userAgent.toLowerCase()));
|
||||||
@ -119,13 +120,8 @@ $(document).ready(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
$(window).bind('orientationchange', function(event) {
|
$(window).bind('orientationchange', function(event) {
|
||||||
|
$(window).trigger('resize');
|
||||||
//alert("orientationchange width: "+window.innerWidth+" height: "+window.innerHeight);
|
//alert("orientationchange width: "+window.innerWidth+" height: "+window.innerHeight);
|
||||||
recalculateStyleHeight();
|
|
||||||
if ($("body").width() < window.innerHeight) {
|
|
||||||
recalculateStyleWithoutMenu();
|
|
||||||
} else {
|
|
||||||
recalculateStyleWithMenu();
|
|
||||||
}
|
|
||||||
});
|
});
|
||||||
// Touch - Color picker
|
// Touch - Color picker
|
||||||
$(document).on('touchstart', function(e) {
|
$(document).on('touchstart', function(e) {
|
||||||
@ -137,4 +133,6 @@ $(document).ready(function() {
|
|||||||
container.remove();
|
container.remove();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
|
||||||
|
|
||||||
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user