From 1c54f1d09aa5c8af3823335ffd51e7a7af614092 Mon Sep 17 00:00:00 2001 From: whycq <10027870+whycq@user.noreply.gitee.com> Date: 星期三, 06 九月 2023 08:47:54 +0800 Subject: [PATCH] # 显示屏 --- src/main/webapp/views/monitor/index.html | 45 ++++++++++++++++++++++++++++++++++++++++++++- 1 files changed, 44 insertions(+), 1 deletions(-) diff --git a/src/main/webapp/views/monitor/index.html b/src/main/webapp/views/monitor/index.html index 4a06c80..c0e3314 100644 --- a/src/main/webapp/views/monitor/index.html +++ b/src/main/webapp/views/monitor/index.html @@ -56,7 +56,50 @@ </body> </html> <script> - let url = 'http://192.168.4.188:8085/fnwms' + // 宸� + $('.time-tools').click(function () { + exitFull(); + }); + $('.head-title').click(function () { + full(); + }); + //寮�濮嬪叏灞� + function full() { + 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 (elem.msRequestFullscreen) { + elem.msRequestFullscreen(); + } + } + + //閫�鍑哄叏灞� + function exitFull() { + if (document.exitFullscreen) { + document.exitFullscreen(); + } + else if (document.mozCancelFullScreen) { + document.mozCancelFullScreen(); + } + else if (document.webkitCancelFullScreen) { + document.webkitCancelFullScreen(); + } + else if (document.msExitFullscreen) { + document.msExitFullscreen(); + } + } + let url = 'http://192.168.4.188:8088/fnwms' var item = [{locNo: '1',locSts: '1',mk: '1',packStatus$: '1'}] var year = '2020'; var month = '05'; -- Gitblit v1.9.1