-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
38 lines (36 loc) · 1.58 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<!-- 该meta标签的作用是让当前布局视口的宽度等于设备的宽度,同时不允许用户手动缩放 -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no" />
<!-- 头条认证 -->
<meta name="bytedance-verification-code" content="02dzOGwHtxIIn6r5vxY2" />
<title>HuiYong</title>
<!-- 导入全局变量 -->
<script src="/HuiYongConfig.js"></script>
<!-- 谷歌广告 -->
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-6279231291346240" crossorigin="anonymous"></script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.ts"></script>
</body>
<script>
var current_url = window.location.href
// 限制只收录首页,与博客详情页
if(current_url == 'https://huiyong.online/' || current_url.startsWith('https://huiyong.online/blogDetail?blogId=')){
// console.log("需要收录" + current_url)
// 百度收录
// var xhr = new XMLHttpRequest();
// xhr.open("POST", 'https://data.zz.baidu.com/urls?site=https://huiyong.online&token=86Nyyk3vlpLwPfxV', true);
// xhr.setRequestHeader("Content-Type", "text/plain");
// xhr.onreadystatechange = function() {
// if (this.readyState === XMLHttpRequest.DONE && this.status === 200) {
// }
// }
// xhr.send(current_url);
}
</script>
</html>