forked from xCss/Valine
-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathindex.html
171 lines (153 loc) · 5.8 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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="keywords" content="Valine,极简风,评论系统,极简风评论系统,comment system">
<meta name="description" content="Valine - 一款基于Leancloud的极简风评论系统">
<meta name="mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta content="telephone=no,email=no" name="format-detection">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,Chrome=1">
<title>Valine - A simple comment system based on Leancloud.</title>
<style>
html {
font-size: 14px;
}
body {
background-color: rgb(238, 238, 238);
margin: 0;
}
header {
background: #fff;
}
a {
color: #999;
text-decoration: none;
border-bottom: 1px dotted #dedede;
}
.logo {
display: inline-block;
height: 60px;
font-size: 24px;
line-height: 60px;
color: #4285f4;
vertical-align: base-line;
}
.sub {
font-size: 12px;
color: #9c9c9c;
padding: 0 5px;
}
.market {
background-color: #4285f4;
height: 398px;
position: absolute;
top: 60px;
width: 100%;
outline: none;
display: block;
z-index: -1;
}
.container {
padding: 0 80px;
}
.placeholder {
height: 56px;
}
@media screen and (max-width:720px) {
header {
text-align: center;
}
.sub {
display: block;
padding-bottom: 10px;
}
.container {
padding: 0;
}
.placeholder,
.market {
display: none;
}
.content {
padding: 10px;
}
}
.content {
background: #fff;
padding: 10px 30px 50px;
}
ul,
li {
list-style: none;
}
.prolist {
padding: 10px 20px 20px 20px;
font-weight: 400;
font-size: 12px;
font-family: -apple-system, BlinkMacSystemFont, 'Mirages Custom', 'Merriweather', 'Open Sans', "Segoe UI", Roboto, "PingFang SC", "Microsoft Yahei", "WenQuanYi Micro Hei", "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", Helvetica, Arial, sans-serif;
line-height: 1.5;
}
blockquote {
margin: 10px 0;
padding: 0 1em;
color: #6a737d;
border-left: 0.25em solid #dfe2e5;
}
#github {
padding: 20px 0;
}
.copy {
line-height: 60px;
text-align: center;
font-size: 12px;
color: #9c9c9c;
}
</style>
<script src="https://cdnjs.cat.net/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdn1.lncld.net/static/js/3.0.4/av-min.js"></script>
<script src="./dist/Valine.min.js"></script>
</head>
<body>
<div class="market"></div>
<header>
<div class="container">
<a href="./" class="logo">Valine</a>
<span class="sub">A simple comment system based on Leancloud.</span>
</div>
</header>
<div class="container">
<div class="placeholder"></div>
<div class="content">
<div id="github">
<iframe allowtransparency="true" frameborder="0" scrolling="0" width="98" height="20"></iframe>
<iframe allowtransparency="true" frameborder="0" scrolling="0" width="156" height="20"></iframe>
</div>
<div class="comment"></div>
</div>
</div>
<div class="copy">
© 2018 <a href="https://github.com/xCss" target="_blank">云淡风轻</a> Modified by <a href="https://github.com/DesertsP" target="_blank">Deserts</a>
</div>
<script>
new Valine({
av: AV,
el: '.comment',
emoticon_url: 'https://cloud.panjunwen.com/alu',
emoticon_list: ["吐.png","喷血.png","狂汗.png","不说话.png","汗.png","坐等.png","献花.png","不高兴.png","中刀.png","害羞.png","皱眉.png","小眼睛.png","中指.png","尴尬.png","瞅你.png","想一想.png","中枪.png","得意.png","肿包.png","扇耳光.png","亲亲.png","惊喜.png","脸红.png","无所谓.png","便便.png","愤怒.png","蜡烛.png","献黄瓜.png","内伤.png","投降.png","观察.png","看不见.png","击掌.png","抠鼻.png","邪恶.png","看热闹.png","口水.png","抽烟.png","锁眉.png","装大款.png","吐舌.png","无奈.png","长草.png","赞一个.png","呲牙.png","无语.png","阴暗.png","不出所料.png","咽气.png","期待.png","高兴.png","吐血倒地.png","哭泣.png","欢呼.png","黑线.png","喜极而泣.png","喷水.png","深思.png","鼓掌.png","暗地观察.png"],
app_id: 'BNpgDs8pijTCrki1l50W3W9e-gzGzoHsz',
app_key: '0f9WD97PmD9KtQsOfXHlili1',
placeholder: 'Write a Comment'
});
</script>
<script>
window.onload = function() {
var iframes = document.querySelectorAll('iframe');
iframes[0].setAttribute('src', 'https://ghbtns.com/github-btn.html?user=DesertsP&repo=Valine-Admin&type=watch&count=true');
iframes[1].setAttribute('src', 'https://ghbtns.com/github-btn.html?user=DesertsP&type=follow&count=true');
}
</script>
</body>
</html>