07.06.2016, 14:27
(This post was last modified: 07.06.2016, 14:28 by Erwin van der Zwart.)
Hi Buuuudzik,
Try this:
BR,
Erwin van der Zwart
Try this:
Code:
$(function(){
function doOnOrientationChange(){
switch(window.orientation)
{
case -90:
case 90:
//alert('landscape');
showPlan(101);
break;
default:
//alert('portrait');
showPlan(1);
break;
}
}
window.addEventListener('orientationchange', doOnOrientationChange);
// Initial execution if needed
doOnOrientationChange();
});
BR,
Erwin van der Zwart