-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
64 lines (55 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
58
59
60
61
62
63
64
<!doctype html>
<html lang="zh-Hans">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
<title>Klog</title>
<meta name="description" content="Share everything.">
<meta charset="utf-8">
<base href="{{GLOBAL_BASE}}">
<!-- Web App -->
<meta name="mobile-web-app-capable" content="yes">
<meta name="theme-color" content="#212121" id="themeColor">
<link rel="manifest" href="manifest.json">
<!-- For Apple -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="application-name" content="Klog">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<meta name="apple-mobile-web-app-title" content="Klog">
<link rel="shortcut icon" href="static/favicon.ico" />
<link rel="bookmark" href="static/favicon.ico" type="image/x-icon" />
<link rel="apple-touch-icon" href="static/img/klog/klogapple.png">
<link rel="apple-touch-icon-precomposed" href="static/img/klog/klogapple.png">
<!-- For Android -->
<link rel="manifest" href="manifest.json">
<!--Style-->
<style>
html {
height: 100%;
width: 100%;
background-color: #000;
scroll-behavior: smooth;
}
body {
margin: 0;
font-family: -apple-system, Roboto, "Nimbus Sans L", "Liberation Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Wenquanyi Micro Hei", "WenQuanYi Zen Hei", "ST Heiti", SimHei, "WenQuanYi Zen Hei Sharp", sans-serif;
font-size: 14px;
line-height: 1.7;
min-height: 100%;
width: 100%;
overscroll-behavior-y: none;
}
body[unresolved] klog-app {
display: none;
}
</style>
<script src="./node_modules/@webcomponents/webcomponentsjs/custom-elements-es5-adapter.js" async></script>
<script src="./node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js" async></script>
<script src="https://code.bdstatic.com/npm/[email protected]/dist/av-min.js"></script>
<script type="module">
window.klogVersion = '{{GLOBAL_VERSION}}'; const appId = '{{GLOBAL_APPID}}'; const appKey = '{{GLOBAL_APPKEY}}'; AV.init({ appId, appKey, serverURL: "https://lc.klog.app" }); import ('./src/framework/klog-app.js');
</script>
</head>
<body>
<klog-app></klog-app>
</body>
</html>