lsc 2 years ago
parent
commit
52b4306e4d
2 changed files with 18 additions and 2 deletions
  1. 1 1
      index.html
  2. 17 1
      js/Desktop/Onload.js

+ 1 - 1
index.html

@@ -32,7 +32,7 @@
     <link rel="apple-touch-icon-precomposed" sizes="72x72" href="" />
     <link rel="apple-touch-icon-precomposed" sizes="144x144" href="" />
     <link href="img/favicon.ico" rel="Shortcut Icon" />
-    <title>可可乐博智慧平台</title>
+    <title>智慧平台</title>
     <link href="css/Desktop/Desktop.css" rel="stylesheet" type="text/css" />
     <link href="./css/Desktop/Desktop.css" rel="stylesheet" type="text/css" />
     <link href="css/Desktop/Taskbar.css" rel="stylesheet" type="text/css" />

+ 17 - 1
js/Desktop/Onload.js

@@ -35,6 +35,7 @@ window.onload = function () {
     U.MD.D.Load();
     U.MD.U.L.login();
     //U.MD.D.isLogin();
+    U.MD.D.fullscreen();
 }
 
 
@@ -363,4 +364,19 @@ U.MD.D.getuser = function () {
 //    U.selectEl(_iframe).appendTo($('body')[0]);
 //};
 
-//#endregion
+//#endregion
+
+U.MD.D.fullscreen = function () {
+    if(document.body.offsetWidth < 1025){
+        U.UF.C.fullScreen()
+    }
+
+    document.body.addEventListener('dblclick',()=>{
+        const isFullScreen = document.fullscreenElement
+        if(isFullScreen){
+            U.UF.C.cancelfullScreen()
+        }else{
+            U.UF.C.fullScreen()
+        }
+    })
+}