liuxiaona преди 2 години
родител
ревизия
7860460d66
променени са 1 файла, в които са добавени 44 реда и са изтрити 2 реда
  1. 44 2
      index.html

+ 44 - 2
index.html

@@ -1,4 +1,4 @@
1
-<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" type=image/x-icon href=./favicon.ico><title>企微助手</title><script src=http://res.wx.qq.com/open/js/jweixin-1.2.0.js></script><script src=https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js></script><script>document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/1920) + "px";
1
+<!DOCTYPE html><html><head><meta charset=utf-8><link rel="shortcut icon" type=image/x-icon href=./favicon.ico><title>企微助手</title><script>document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/1920) + "px";
2 2
       window.onresize = function(){
3 3
         document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/1920) + "px";
4 4
       }</script><script>var _hmt = _hmt || [];
@@ -7,4 +7,46 @@
7 7
         hm.src = "https://hm.baidu.com/hm.js?d61b9e2caf4d46ccda7471b5385e2333";
8 8
         var s = document.getElementsByTagName("script")[0];
9 9
         s.parentNode.insertBefore(hm, s);
10
-      })();</script><link href=./static/css/app.184c66a89c69d800e98198db6c63157e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.eecee8ab0676aa114f8c.js></script><script type=text/javascript src=./static/js/app.8d5ea739ce8ef8fd6056.js></script></body></html>
10
+      })();
11
+
12
+      function loadScript(url, callback) {
13
+
14
+        var script = document.createElement("script");
15
+
16
+        script.type = "text/javascript";
17
+
18
+        if (script.readyState) {
19
+
20
+          script.onreadystatechange = function() {
21
+
22
+            if (script.readyState == "loaded" || script.readyState == "complete") {
23
+
24
+              script.onreadystatechange = null;
25
+
26
+              callback();
27
+
28
+            }
29
+
30
+          }
31
+
32
+        } else {
33
+
34
+          script.onload = function() {
35
+
36
+            callback();
37
+
38
+          }
39
+
40
+        }
41
+
42
+        script.src = url;
43
+        console.log(document.getElementsByTagName("head")[0]);
44
+        document.getElementsByTagName("head")[0].appendChild(script);
45
+
46
+      }
47
+
48
+      loadScript("http://res.wx.qq.com/open/js/jweixin-1.2.0.js", function() {
49
+        loadScript("https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js", function() {
50
+
51
+        })
52
+      })</script><link href=./static/css/app.184c66a89c69d800e98198db6c63157e.css rel=stylesheet></head><body><div id=app></div><script type=text/javascript src=./static/js/manifest.eecee8ab0676aa114f8c.js></script><script type=text/javascript src=./static/js/app.8d5ea739ce8ef8fd6056.js></script></body></html>