$(window).bind('orientationchange', function(e) {
switch ( window.orientation ) {
case 0:
$('.turnDeviceNotification').css('display', 'none');
$('.mobile-menu').css('display' , 'block');
// The device is in portrait mode now
break;
case 180:
$('.turnDeviceNotification').css('display', 'none');
$('.mobile-menu').css('display' , 'block');
// The device is in portrait mode now
break;
case 90:
// The device is in landscape now
$('.turnDeviceNotification').css('display', 'block');
$('.mobile-menu').css('display' , 'none');
break;
case -90:
// The device is in landscape now
$('.turnDeviceNotification').css('display', 'block');
$('.mobile-menu').css('display' , 'none');
break;
}
});