Device rotation page will get refresh
jquery_var(window).on("orientationchange",function(event){
console.log('window change');
var width = 768;
var windowwidth =
jquery_var(window).width();
var windowheight =
jquery_var(window).height();
console.log('width...'+width);
console.log('windowwidth...'+windowwidth);
console.log('windowheight...'+windowheight);
if(((windowwidth
<= width) && (windowheight >= width)) || ((windowwidth >=
width) && (windowheight <= width)))
{
console.log('Inside.. condition ...');
window.location.reload(true);
}
});
No comments:
Post a Comment