From 35fefed0792c40cb99b8d15fa5811bbb5992bff9 Mon Sep 17 00:00:00 2001
From: D:/workspace/chenjingjing/git/gx_tieta/gx_tieta/.gitignore <chenjingjing@LAPTOP-E51P2139>
Date: 星期一, 21 一月 2019 10:42:24 +0800
Subject: [PATCH] 修改
---
gx_tieta/WebRoot/Top.jsp | 76 +++++++++++++++++++++++++++++++++++++-
1 files changed, 74 insertions(+), 2 deletions(-)
diff --git a/gx_tieta/WebRoot/Top.jsp b/gx_tieta/WebRoot/Top.jsp
index 172f767..65ccb66 100644
--- a/gx_tieta/WebRoot/Top.jsp
+++ b/gx_tieta/WebRoot/Top.jsp
@@ -134,6 +134,10 @@
<i class="fa fa-bell" title="鍏抽棴璇煶鎾姤"></i>
<i class="fa fa-bell-slash" title="寮�鍚闊虫挱鎶�"></i>
</div>
+ <!-- <div class="cell-list full-screen-top">
+ <i class="fa fa-arrows" title="閫�鍑哄叏灞�"></i>
+ <i class="fa fa-arrows-alt" title="寮�鍚叏灞�"></i>
+ </div> -->
<div class="cell-list server-time" style="white-space: nowrap">
2018-11-26 00:00:00
</div>
@@ -214,7 +218,7 @@
}
- var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
+ var visibilityChangeEvent = hiddenProperty.replace(/hidden/i, 'visibilitychange');
var onVisibilityChange = function(){
if (!document[hiddenProperty]) {
pageIsVisit = true;
@@ -253,7 +257,7 @@
});
}
});
- searchAlm(); //鏌ヨ鐢垫睜鍛婅鎬绘暟(鎴戝湪base.js閲�)
+ searchAlm(pageIsVisit); //鏌ヨ鐢垫睜鍛婅鎬绘暟(鎴戝湪base.js閲�)
searchlowmon(); //鏌ヨ钀藉悗鍗曚綋鎬绘暟
searchpoweroff(); //鏌ヨ鏈烘埧鍋滅數鎬绘暟
searchdevalarm(); //鏌ヨ璁惧瀹炴椂鍛婅鎬绘暟
@@ -1092,5 +1096,73 @@
});
}
})(jQuery);
+
+ // 璁剧疆椤甸潰鏄惁涓哄叏灞忔樉绀�
+ ;(function($, window, document, undefined){
+ //鍒ゆ柇鏄惁鍏ㄥ睆
+ function isFull() {
+ var fullscreenElement =
+ document.fullscreenEnabled
+ || document.mozFullscreenElement
+ || document.webkitFullscreenElement;
+ var fullscreenEnabled =
+ document.fullscreenEnabled
+ || document.mozFullscreenEnabled
+ || document.webkitFullscreenEnabled;
+ if (fullscreenElement == null)
+ {
+ return false;
+ } else {
+ return true;
+ }
+ }
+
+ // 鍏ㄥ睆
+ function fullScreen() {
+ if(document.documentElement.RequestFullScreen){
+ document.documentElement.RequestFullScreen();
+ }
+ //鍏煎鐏嫄
+ if(document.documentElement.mozRequestFullScreen){
+ document.documentElement.mozRequestFullScreen();
+ }
+ //鍏煎璋锋瓕绛夊彲浠ebkitRequestFullScreen涔熷彲浠ebkitRequestFullscreen
+ if(document.documentElement.webkitRequestFullScreen){
+ document.documentElement.webkitRequestFullScreen();
+ }
+ //鍏煎IE,鍙兘鍐檓sRequestFullscreen
+ if(document.documentElement.msRequestFullscreen){
+ document.documentElement.msRequestFullscreen();
+ }
+ }
+
+ // 鍏抽棴鍏ㄥ睆
+ function exitFullScreen() {
+ if(document.exitFullScreen){
+ document.exitFullscreen()
+ }
+ //鍏煎鐏嫄
+ if(document.mozCancelFullScreen){
+ document.mozCancelFullScreen()
+ }
+ //鍏煎璋锋瓕绛�
+ if(document.webkitExitFullscreen){
+ document.webkitExitFullscreen()
+ }
+ //鍏煎IE
+ if(document.msExitFullscreen){
+ document.msExitFullscreen()
+ }
+ }
+
+ $('.cell-list.full-screen-top').click(function() {
+ if($(this).hasClass('close-full-screen')) {
+ exitFullScreen();
+ }else {
+ fullScreen();
+ }
+ $(this).toggleClass('close-full-screen')
+ });
+ })(jQuery, window, document);
</script>
</html>
--
Gitblit v1.9.1