-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
71 lines (67 loc) · 3.02 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<!--所有从当前页面中发起的请求将不会携带 referer。 由于‘借’的数据有限制所以,此处有个问题没解决,想看视频就得把下面meta注释掉,然后图片就挂了-->
<meta name="referrer" content="never">
<!--忽略电话号码和email识别-->
<meta name="format-detection" content="telephone=no"/>
<meta name="format-detection" content="email=no"/>
<!--当网站添加到主屏幕快速启动方式,将网站添加到主屏幕快速启动方式-->
<meta name="apple-mobile-web-app-capable" content="yes"/>
<!--隐藏ios上的浏览器地址栏-->
<meta name="apple-mobile-web-app-status-bar-style" content="black"/>
<!-- UC默认竖屏 ,UC强制全屏 -->
<meta name="full-screen" content="yes">
<meta name="browsermode" content="application">
<!-- QQ强制竖屏 QQ强制全屏 -->
<meta name="x5-orientation" content="portrait">
<meta name="x5-fullscreen" content="true">
<meta name="x5-page-mode" content="app">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>挺哥影院</title>
<link type="image/x-icon" href="static/favicon.ico" rel="shortcut icon">
</head>
<body>
<div id="app">
<router-view></router-view> <!-- 这里是展示来自路由页面 -->
</div>
<!-- built files will be auto injected -->
</body>
<!--使用js判断设备宽度以改变文字大小 rem布局-->
<script type="text/javascript">
(function (doc, win) {
var docEl = doc.documentElement,
resizeEvt = 'orientationchange' in window ? 'orientationchange' : 'resize',
recalc = function () {
var clientWidth = docEl.clientWidth;
if (!clientWidth) return;
docEl.style.fontSize = 50 * (clientWidth / 375) + 'px';
};
if (!doc.addEventListener) return;
win.addEventListener(resizeEvt, function() {
clearTimeout(tid);
tid = setTimeout(recalc, 300);
}, false);
win.addEventListener('pageshow', function(e) {
if (e.persisted) {
clearTimeout(tid);
tid = setTimeout(recalc, 300);
}
}, false);
doc.addEventListener('DOMContentLoaded', function () {
tid = setTimeout(recalc, 0);
}, false);
recalc();
})(document, window);
</script>
<script src="static/lib/photo-sphere-viewer/three.min.js" ></script>
<script type="text/javascript" src="static/lib/photo-sphere-viewer/photo-sphere-viewer.min.js" ></script>
<!--引进waver-->
<script type="text/javascript" src="static/lib/waves/waves.min.js" ></script>
<script type="text/javascript">
Waves.displayEffect();
</script>
</html>