content/ui/base/scripts/App.Extend.js
(开头部分) 20KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
var App = function() {
var basePath = '/content/';
var imgPath = 'ui/img/';
var pluginsPath = 'plugins/';
var cssPath = 'ui/css/';
//初始化内容页layout组件高度
var handleIframeLayoutHeight = function () {
var height = App.getViewPort().height - $('.main-footer').outerHeight() - $('.main-header').outerHeight() - $(".content-tabs").outerHeight();
// $("#layout").css({ "height": height });
return height;
}
//初始化iframe内容页高度
var handleIframeLayoutContent = function () {
var height = App.getViewPort().height - $('.main-footer').outerHeight() - $('.main-header').outerHeight() - $(".content-tabs").outerHeight();
$(".tab_iframe").css({
height: height
});
//var width = App.getViewPort().width- $(".page-sidebar-menu").width();
$(".tab_iframe").css({
width: "100%"
});
}
//处理全屏
var handleFullScreen = function () {
var de = document.documentElement;
if (de.requestFullscreen) {
de.requestFullscreen();
} else if (de.mozRequestFullScreen) {
de.mozRequestFullScreen();
} else if (de.webkitRequestFullScreen) {
de.webkitRequestFullScreen();
} else if (de.msRequestFullscreen) {
de.msRequestFullscreen();
}
else {
// App.alert({ message: "该浏览器不支持全屏!", type: "danger" });
alert("当前浏览器不支持全屏!");
}
};
// 判断浏览器种类
var exitFullscreen=function() {
if(document.exitFullscreen) {
document.exitFullscreen();
} else if(document.mozCancelFullScreen) {
document.mozCancelFullScreen();
} else if(document.webkitExitFullscreen) {
document.webkitExitFullscreen();
}
}
// Handles custom checkboxes & radios using jQuery iCheck plugin
var handleiCheck = function () {
if (!$().iCheck) {
后面还有 488 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。