-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (66 loc) · 1.75 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/logo.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Spiro</title>
<style>
@media screen and (min-width: 718px) {
.container {
max-width: 800px;
margin-left: auto;
margin-right: auto;
}
}
.head {
margin-bottom: 25px;
margin-top: 15px;
}
.head h1 {
display: inline;
margin: 0px;
color: rgb(22, 22, 22);
}
.head .read_count_box {
color:rgb(104, 104, 104);
font-size: 12px;
margin-top: 8px;
padding-bottom: 8px;
border-bottom: 1px rgb(161, 161, 161) solid;
width: 250px;
}
.head .logo {
height: 36px;
margin-right: 10px;
}
.head .title {
display: flex;
align-items: center;
margin-top: 23px;
margin-bottom: 20px;
}
</style>
</head>
<body>
<div class="container">
<div class="head">
<div class="title">
<img class="logo" src="./logo.svg" />
<h1>Spiro Demo</h1>
</div>
<div class="read_count_box">Read Count: <span id="read_count"></span></div>
</div>
<div id="app"></div>
</div>
</body>
<script type="module">
import { SpiroConfig, mountSpiro, updateReadCount } from "./src/spiro.ts";
SpiroConfig.server_addr = "http://127.0.0.1:5000";
SpiroConfig.article_uuid = "0";
SpiroConfig.readcountinfo.article_name = "Spiro Demo";
SpiroConfig.readcountinfo.article_link = window.location.href;
mountSpiro('app');
updateReadCount("read_count");
</script>
</html>