forked from forkai/chaofun-front
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
96 lines (88 loc) · 4.03 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- <meta name="viewport" content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=0;"> -->
<meta name="msvalidate.01" content="9BA304941C019BDD538D4708D9EC6A19" />
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1, user-scalable=no">
<meta meta name="robots" content="noodp">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="keywords" content="炒饭网,炒饭社区,炒饭超Fun,炒饭论坛,reddit,论坛,炒饭reddit,新鲜事,兴趣爱好,分享">
<meta name="description" content="兴趣聚合的优质内容社区,每个兴趣都值得被尊重,在这里,一起讨论问题、分享趣事、了解最新时事,世界-尽在眼下">
<meta http-equiv="Cache-control" content="no-cache, no-store, must-revalidate">
<meta http-equiv="Pragma" content="no-cache">
<link rel="shortcut icon" type="image/x-icon" href="https://i.chao.fun/biz/08a2d3a676f4f520cb99910496e48b4e.png?x-oss-process=image/resize,h_80/format,webp/quality,q_75">
<link rel="manifest" href="/manifest.json">
<title>炒饭 - 世界那么大</title>
<script>
var _hmt = _hmt || [];
</script>
<style>
.description{height: 0;overflow: hidden;}
</style>
</head>
<body>
<h1 id="description" class="description">炒饭 - 兴趣聚合的优质内容社区, <span id="dsc">世界那么大 每个兴趣都值得被尊重</span></h1>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
<script>
if ('serviceWorker' in navigator) {
// load 事件完成之后才注册 service worker
window.addEventListener('load', function () {
// 注册 sw.js
navigator.serviceWorker.register('/sw.js')
.then(function (registration) {
// 注册成功
console.log('sw.js 注册成功', registration.scope);
})
.catch(function (err) {
// 注册失败:(
console.log('sw.js 注册失败 ', err);
});
});
}
var _hmt = _hmt || [];
(function() {
// var hm = document.createElement("script");
// hm.src = "https://hm.baidu.com/hm.js?5c729b6c481ec66bfc756ecb6b099f8c";
// var s = document.getElementsByTagName("script")[0];
// s.parentNode.insertBefore(hm, s);
try{
var bp = document.createElement('script');
if (window.location.protocol == 'https:'){
bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
}
else{
bp.src = 'http://push.zhanzhang.baidu.com/push.js';
}
s.parentNode.insertBefore(bp, s);
}catch(e){
}
document.getElementById('description').innerHTML = document.title;
// var bps = document.createElement('script');
// bps.src = 'https://s.ssl.qhres2.com/ssl/ab77b6ea7f3fbf79.js';
// bps.id = 'sozz';
// s.parentNode.insertBefore(bps, s);
// document.write('<script src="' + src + '" id="sozz"><\/script>');
document.addEventListener('mousewheel', function (e) {
e = e || window.event;
if ((e.wheelDelta && event.ctrlKey) || e.detail) {
event.preventDefault();
}
}, {
capture: false,
passive: false
});
document.addEventListener('keydown', function (event) {
if ((event.ctrlKey === true || event.metaKey === true)
&& (event.keyCode === 61 || event.keyCode === 107
|| event.keyCode === 173 || event.keyCode === 109
|| event.keyCode === 187 || event.keyCode === 189)) {
event.preventDefault();
}
}, false);
})();
</script>
</html>