-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathindex.html
executable file
·45 lines (42 loc) · 1.39 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
<!DOCTYPE html>
<!--
作者: liquidliang
开源协议: MIT
项目地址 https://github.com/swblog/swblog.github.io
-->
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title></title>
<script>
window.global_isDebug = 1;
if ("serviceWorker" in navigator) {
navigator.serviceWorker
.register("./sw.js", { scope: "./" })
.then(function (registration) {
// Registration was successful
console.log(
"[client] ServiceWorker registration successful with scope: ",
registration.scope
);
})
.catch(function (err) {
// registration failed :(
console.log("[client] ServiceWorker registration failed: ", err);
});
} else {
console.log("[client] ServiceWorker is not supported in this browser.");
}
</script>
<link rel="stylesheet" href="./source/lib/assets/css/amazeui.min.css" />
<link rel="shortcut icon" href="./favicon/favicon.ico" />
<script src="./source/lib/jquery.min.js"></script>
<script src="./source/lib/jquery.tip.js"></script>
<script src="./source/lib/assets/js/amazeui.min.js"></script>
<script src="./source/lib/bcd.min.js"></script>
</head>
<body>
<script src="./source/dist/index.js"></script>
</body>
</html>