bootstrap-table-mobile.js

pull/68/head
RuoYi 6 years ago
parent eae8c660cf
commit c064115501

@ -16,7 +16,7 @@
// 判断是否 iphone
var isIPhone = function () {
let browserName = navigator.userAgent.toLowerCase();
return /(iphone)/i.test(browserName);
return /(iPhone|iPad|iPod|iOS)/i.test(browserName);
};
var changeView = function (that, width, height) {

@ -1,9 +1,7 @@
/**
* @name jQuery FullScreen Plugin
* @author Martin Angelov, Morten Sjøgren
* @version 1.2
* @url http://tutorialzine.com/2012/02/enhance-your-website-fullscreen-api/
* @license MIT License
* 基于jQuery FullScreen修改
* 新增支持IE全屏显示
* Copyright (c) 2019 ruoyi
*/
/*jshint browser: true, jquery: true */
@ -15,6 +13,7 @@
var doc = document.documentElement;
return ('requestFullscreen' in doc) ||
('msRequestFullscreen' in doc) ||
('mozRequestFullScreen' in doc && document.mozFullScreenEnabled) ||
('webkitRequestFullScreen' in doc);
}
@ -26,6 +25,8 @@
elem.mozRequestFullScreen();
} else if (elem.webkitRequestFullScreen) {
elem.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
} else if (elem.msRequestFullscreen) {
elem.msRequestFullscreen();
}
}
@ -33,6 +34,7 @@
return document.fullscreen ||
document.mozFullScreen ||
document.webkitIsFullScreen ||
document.msFullscreenElement ||
false;
}
@ -43,6 +45,8 @@
document.mozCancelFullScreen();
} else if (document.webkitCancelFullScreen) {
document.webkitCancelFullScreen();
} else if (document.msExitFullscreen) {
document.msExitFullscreen();
}
}

Loading…
Cancel
Save