lsc 1 year ago
parent
commit
40b34e16d6
2 changed files with 15 additions and 1 deletions
  1. BIN
      img/icon/Wood.png
  2. 15 1
      js/Desktop/DeskTop.js

BIN
img/icon/Wood.png


+ 15 - 1
js/Desktop/DeskTop.js

@@ -1555,7 +1555,9 @@ window.addEventListener('message', function (e) { // 监听 message 事件
         U.MD.D.I.openApplication("codeEdit")
     } else if (e.data.tools && e.data.tools == "57") {
         U.MD.D.I.openApplication("CocoPi")
-    } else if (e.data.tools && e.data.tools == "58") {
+    } else if (e.data.tools && e.data.tools == "63") {
+        U.MD.D.I.openApplication("Wood")
+    }  else if (e.data.tools && e.data.tools == "58") {
         U.MD.D.I.openApplication("car")
     } else if (e.data.tools && e.data.tools == "59") {
         U.MD.D.I.openApplication("lineSearch")
@@ -2716,6 +2718,18 @@ U.MD.D.I.openApplication = function (str, obj, info) {
             }, { "style": { "height": "36px" } }).form; //创建窗体
             _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/cocopi.png)" }, "name": "CocoPi", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
             break;
+        case "Wood": //Wood
+            _formdiv = new U.UF.UI.form(
+                "海龟编程",
+                $$("iframe", { "allow": "camera *; microphone *;display-capture;usb", "webkitallowfullscreen": "", "mozallowfullscreen": "", "allowfullscreen": "", "frameborder": "no", "border": "0", "scrolling ": "no", "style": { "cssText": "border:0;width:100%;height:100%" }, "src": "https://wood.codemao.cn/" }), {
+                "id": "Wood",
+                "style": { "width": "70%", "height": "90%", "overflow": 'hidden' },
+                "onresize": function () { }
+            }, {
+                closecallback: function () { }
+            }, { "style": { "height": "36px" } }).form; //创建窗体
+            _taskbar = { "id": str + _formdiv.id, "style": { "backgroundImage": "url(/img/icon/Wood.png)" }, "name": "海龟编程", "forms": _formdiv, "click": function () { U.MD.D.I.openApplication(str, obj, info); } }
+            break;
         case "car": //模拟驾驶
             _formdiv = new U.UF.UI.form(
                 "模拟驾驶",