|
@@ -4,8 +4,8 @@
|
4
|
4
|
<meta charset="utf-8">
|
5
|
5
|
<link rel="shortcut icon" type="image/x-icon" href="./favicon.ico">
|
6
|
6
|
<title>企微助手</title>
|
7
|
|
- <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
|
8
|
|
- <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>
|
|
7
|
+<!-- <script src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>-->
|
|
8
|
+<!-- <script src="https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js"></script>-->
|
9
|
9
|
<script>
|
10
|
10
|
document.documentElement.style.fontSize = 100 * (document.documentElement.clientWidth/1920) + "px";
|
11
|
11
|
window.onresize = function(){
|
|
@@ -20,6 +20,48 @@
|
20
|
20
|
var s = document.getElementsByTagName("script")[0];
|
21
|
21
|
s.parentNode.insertBefore(hm, s);
|
22
|
22
|
})();
|
|
23
|
+
|
|
24
|
+ function loadScript(url, callback) {
|
|
25
|
+
|
|
26
|
+ var script = document.createElement("script");
|
|
27
|
+
|
|
28
|
+ script.type = "text/javascript";
|
|
29
|
+
|
|
30
|
+ if (script.readyState) {
|
|
31
|
+
|
|
32
|
+ script.onreadystatechange = function() {
|
|
33
|
+
|
|
34
|
+ if (script.readyState == "loaded" || script.readyState == "complete") {
|
|
35
|
+
|
|
36
|
+ script.onreadystatechange = null;
|
|
37
|
+
|
|
38
|
+ callback();
|
|
39
|
+
|
|
40
|
+ }
|
|
41
|
+
|
|
42
|
+ }
|
|
43
|
+
|
|
44
|
+ } else {
|
|
45
|
+
|
|
46
|
+ script.onload = function() {
|
|
47
|
+
|
|
48
|
+ callback();
|
|
49
|
+
|
|
50
|
+ }
|
|
51
|
+
|
|
52
|
+ }
|
|
53
|
+
|
|
54
|
+ script.src = url;
|
|
55
|
+ console.log(document.getElementsByTagName("head")[0]);
|
|
56
|
+ document.getElementsByTagName("head")[0].appendChild(script);
|
|
57
|
+
|
|
58
|
+ }
|
|
59
|
+
|
|
60
|
+ loadScript("http://res.wx.qq.com/open/js/jweixin-1.2.0.js", function() {
|
|
61
|
+ loadScript("https://open.work.weixin.qq.com/wwopen/js/jwxwork-1.0.0.js", function() {
|
|
62
|
+
|
|
63
|
+ })
|
|
64
|
+ })
|
23
|
65
|
</script>
|
24
|
66
|
</head>
|
25
|
67
|
<body>
|