forked from Actooors/SHUMessage_web
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
57 lines (57 loc) · 2.45 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=0">
<!-- 这样所有页面都会以no-referrer这样方法加载了,然后微博服务器就不知道是你的网站引用了他的图片了,也就没有外链限制的问题了-->
<meta name="referrer" content="no-referrer"/>
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="blank">
<meta name="apple-mobile-web-app-title" content="SHU Message">
<link rel="icon" href="/static/favicon.ico" type="image/x-icon"/>
<!--适用于 Retina 屏的 iPad-->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/static/apple-touch-icon-precomposed-144x144.jpeg">
<!--适用于 Retina 屏的 iPhone-->
<link rel="apple-touch-icon-precomposed" sizes="120x120" href="/static/apple-touch-icon-precomposed-120x120.jpeg">
<!--适用于非 Retina 屏的 iPad-->
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="/static/apple-touch-icon-precomposed-72x72.jpeg">
<!--适用于非 Retina 屏的 iPhone-->
<link rel="apple-touch-icon-precomposed" href="/static/apple-touch-icon-precomposed-57x57.jpeg">
<!-- 添加manifest文件 -->
<link rel="manifest" href="/static/manifest.json">
<!--<script src="https://unpkg.com/xregexp/xregexp-all.js"></script>-->
<!-- Global site tag (gtag.js) - Google Analytics -->
<!--<script src="/static/gtag.js?id=UA-136233942-1"></script>-->
<script>
(function (i, s, o, g, r, a, m) {
i['GoogleAnalyticsObject'] = r;
i[r] = i[r] || function () {
(i[r].q = i[r].q || []).push(arguments)
}, i[r].l = 1 * new Date();
a = s.createElement(o),
m = s.getElementsByTagName(o)[0];
a.async = 1;
a.src = g;
m.parentNode.insertBefore(a, m)
})(window, document, 'script', '/static/analytics.js', 'ga');
ga('create', 'UA-136233942-1', 'auto');
ga('send', 'pageview');
</script>
<title>SHU Message</title>
</head>
<body>
<div id="app-box"></div>
<!-- built files will be auto injected -->
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/service-worker.js').then(() => {
console.log('Service worker registered!');
}).catch((error) => {
console.log('Error registering service worker: ', error);
});
} else {
console.log('Not supported by browser');
}
</script>
</body>
</html>