<!--
|
功能描述:专题制图
|
-->
|
<!DOCTYPE html>
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:layout="http://www.w3.org/1999/xhtml"
|
xmlns:th="http://www.w3.org/1999/xhtml" layout:decorator="MasterPage/Layout">
|
<head>
|
<title th:text="${systemName}"></title>
|
<script th:inline="javascript">
|
/*<![CDATA[*/
|
var gisPortal = [[${gisPortal}]];
|
//页面初始化
|
$(function () {
|
var h = window.innerHeight;
|
var w = window.innerWidth;
|
$("#ZhiTuFrame").height(h - 92);
|
$("#ZhiTuFrame").width(w);
|
$("#ZhiTuFrame").attr("src", gisPortal + "leafportal.html");
|
//页面大小发生改变
|
window.onresize = autoResize;
|
});
|
|
window.addEventListener('message',function(e){
|
if(e.data == true) {
|
$("#TopMenu").css("display", "none");
|
$("#bts_pagebody").css("margin-top", "0px");
|
} else {
|
$("#TopMenu").css("display", "");
|
$("#bts_pagebody").css("margin-top", "92px");
|
}
|
autoResize(true);
|
},false);
|
|
//界面大小自适应
|
function autoResize(flag) {
|
var h = window.innerHeight;
|
if($("#TopMenu").css("display") == "none") {
|
if(flag == true) {
|
$("#ZhiTuFrame").height(h);
|
} else {
|
$("#ZhiTuFrame").height(h - 6);
|
}
|
} else {
|
$("#ZhiTuFrame").height(h - 92);
|
}
|
}
|
|
//全屏显示
|
function fullScreen() {
|
var docElm = document.documentElement;
|
//W3C
|
if (docElm.requestFullscreen) {
|
docElm.requestFullscreen();
|
}
|
//FireFox
|
else if (docElm.mozRequestFullScreen) {
|
docElm.mozRequestFullScreen();
|
}
|
//Chrome等
|
else if (docElm.webkitRequestFullScreen) {
|
docElm.webkitRequestFullScreen();
|
}
|
//IE11
|
else if (docElm.msRequestFullscreen) {
|
docElm.msRequestFullscreen();
|
}
|
}
|
|
//退出全屏
|
function outScreen() {
|
if(document.exitFullscreen) {
|
document.exitFullscreen();
|
} else if(document.mozCancelFullScreen) {
|
document.mozCancelFullScreen();
|
} else if(document.webkitCancelFullScreen) {
|
document.webkitCancelFullScreen();
|
} else if(document.msExitFullscreen) {
|
document.msExitFullscreen();
|
}
|
}
|
/*]]>*/
|
</script>
|
</head>
|
<body style="overflow-y: hidden;">
|
<div layout:fragment="content">
|
<input type="button" id="fullscreen" onclick="fullScreen()" value="screen" style="display: none;" />
|
<input type="button" id="outscreen" onclick="outScreen()" value="screen" style="display: none;" />
|
<iframe id="ZhiTuFrame" name="ZhiTuFrame" src="" width="100%" scrolling="no" style="border: 0;"></iframe>
|
</div>
|
</body>
|
</html>
|