-
Notifications
You must be signed in to change notification settings - Fork 75
/
index.html
380 lines (372 loc) · 12.6 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
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>舔狗日记</title>
<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
<meta name="copyright" content="aHR0cHM6Ly93ZS5kb2c=">
<meta name="contact" content="eW5zQHFxLmNvbQ==">
<meta itemprop="name" content="舔狗日记">
<meta name="description" itemprop="description" content="舔狗舔狗,舔到最后一无所有。">
<meta itemprop="image" content="assets/images/logo.jpg">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link rel="icon" type="image/png" href="assets/images/logo.jpg">
<link rel="icon" type="image/png" sizes="144x144" href="assets/images/logo.jpg">
<link rel="apple-touch-icon" type="image/png" href="assets/images/logo.jpg">
<style>
@font-face {
font-family: 'MFShangYa';
src: url('./assets/font/MFShangYa.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
@font-face {
font-family: 'HYTiaoTiao';
src: url('./assets/font/HYTiaoTiao.ttf?20201105') format('truetype');
font-weight: normal;
font-style: normal;
}
.border-1 {
border-bottom-left-radius: 15px 255px;
border-bottom-right-radius: 225px 15px;
border-top-left-radius: 255px 15px;
border-top-right-radius: 15px 225px
}
.border-2 {
border-bottom-left-radius: 185px 25px;
border-bottom-right-radius: 20px 205px;
border-top-left-radius: 125px 25px;
border-top-right-radius: 10px 205px
}
.border-3 {
border-bottom-left-radius: 225px 15px;
border-bottom-right-radius: 15px 255px;
border-top-left-radius: 15px 225px;
border-top-right-radius: 255px 15px
}
.border-4 {
border-bottom-left-radius: 25px 115px;
border-bottom-right-radius: 155px 25px;
border-top-left-radius: 15px 225px;
border-top-right-radius: 25px 150px
}
.border-5 {
border-bottom-left-radius: 20px 115px;
border-bottom-right-radius: 115px 20px;
border-top-left-radius: 250px 15px;
border-top-right-radius: 25px 80px
}
.border-6 {
border-bottom-left-radius: 15px 225px;
border-bottom-right-radius: 20px 205px;
border-top-left-radius: 28px 125px;
border-top-right-radius: 100px 30px
}
html,body {margin:0;padding:0;height:100%;width:100%;color:#333;}
html {font-size: 13.3333vw;}
body {
display: flex;
flex-direction: column;
font-family:-apple-system,'Helvetica Neue','Helvetica','Tahoma','Arial','PingFang SC',STHeiTi,'Microsoft Yahei';
font-size: 16px;
background-color: #f4f5fd;
color: #03081a;
}
mark {
background-color: transparent;
background-image: -webkit-linear-gradient(#ffe21d, #ffe21d);
background-image: -o-linear-gradient(#ffe21d, #ffe21d);
background-image: linear-gradient(#ffe21d, #ffe21d);
background-position: 0 85%;
background-size: 100% 20%;
background-repeat: no-repeat;
}
header {
display: flex;
align-items: center;
padding: .2rem .4rem;
margin: 0 0 .45rem;
flex-shrink: 0;
background-color: #fff;
box-shadow: 0 0 10px rgba(0,0,0,.1);
}
header img {width:.72rem;height: .72rem;}
header h1 {margin:.1rem 0 0;font-size: .64rem;line-height: 105%;font-family: "MFShangYa";font-weight: normal;}
header p {font-size: .32rem;margin: .08rem 0 0 auto;font-family: "HYTiaoTiao"}
section {
font-family: "HYTiaoTiao";
margin: auto .4rem;
border-width: 2px 5px 4px 3px;
border-style: solid;
border-color: #03081a;
overflow-y: scroll;
display: flex;
flex-direction: column;
background-color: #fff;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: none;
}
article img {display: none;}
article {
font-size: .45rem;
margin: 0;
padding: .4rem;
letter-spacing: 2px;
text-align: justify;
flex: 1;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
-ms-overflow-style: none;
}
section::-webkit-scrollbar,
article::-webkit-scrollbar {display: none;}
address {
display: flex;
align-items: center;
flex-shrink: 0;
height: .8rem;
margin: 0 .4rem;
font-style: normal;
color: #8c8c8c;
font-size: .32rem;
}
address time {margin-right: auto;}
footer {
display: flex;
justify-content: center;
align-items: center;
flex-shrink: 0;
padding: 0 0 .5rem;
padding-bottom: calc(constant(safe-area-inset-bottom) + .5rem);
padding-bottom: calc(env(safe-area-inset-bottom) + .5rem);
margin: .45rem 0 0;
position: relative;
}
button {
border: 0 none;
margin: 0 .3rem;
padding: 0;
background-color: #fff;
width: 1rem;
height: 1rem;
color: transparent;
border-radius: 100%;
background-image: url(./assets/images/refresh.gif);
background-size: cover;
background-position: 50% 50%;
background-repeat: no-repeat;
box-shadow: 0 0 0.2rem rgba(0,21,110,.1);
cursor: pointer;
outline: 0;
}
footer a,
footer a:active,
footer a:visited {
vertical-align: middle;
text-decoration: none;
font-size: .32rem;
color: #3078e6;
padding: .2rem;
}
footer a:hover {
color: #03081a;
}
footer a.home-link {
position: absolute;
bottom: 160%;
left: auto;
right: auto;
background-color: #ffe21d;
box-shadow: 0 0 .2rem rgba(0,21,110,.1);
padding: .1rem .3rem;
border-radius: 1rem;
color: initial;
font-size: .28rem;
}
footer a.home-link:hover {
background-color: #ffbf1d;
}
footer a.home-link::after {
content: "\8214\72d7\4e4b\5bb6\5df2\4e0a\7ebf\a\6b22\8fce\8214\72d7\4eec\5165\9a7b";
position: absolute;
white-space: pre-wrap;
left: 0;right: 0;
text-align: center;
top: 110%;
font-size: .14rem;
color: rgba(0,21,110,.3);
}
tips {
display: none;
position: absolute;
left: 50%;
top: 50%;
transform: translate(-50%,-50%);
background-color: rgba(0,0,0,.5);
border-radius: .04rem;
font-size: .32rem;
padding: .12rem .24rem;
color: #fff;
}
@media (min-width: 750px) {
html {font-size: 100px;}
section {
margin: auto;
max-width: 80%;
border: 0 none;
background-color: transparent;
border-radius: none;
}
article {padding:0 .4rem;}
address {justify-content: flex-end;}
address time {margin-right: .15rem;}
}
@media (orientation : landscape) and (min-width: 750px) {
header {padding: 10px 20px;}
header img {width: 36px;height: 36px;}
header h1 {font-size: 32px;margin-top:5px;}
header p {font-size: 18px;margin:0 0 0 auto;}
}
</style>
<script src="./assets/js/jquery.js"></script>
<script>
function getOS() {
var userAgent = window.navigator.userAgent,
platform = window.navigator.platform,
macosPlatforms = ['Macintosh', 'MacIntel', 'MacPPC', 'Mac68K'],
windowsPlatforms = ['Win32', 'Win64', 'Windows', 'WinCE'],
iosPlatforms = ['iPhone', 'iPad', 'iPod'],
os = null;
if (macosPlatforms.indexOf(platform) !== -1) {
os = 'Mac OS';
} else if (iosPlatforms.indexOf(platform) !== -1) {
os = 'iOS';
} else if (windowsPlatforms.indexOf(platform) !== -1) {
os = 'Windows';
} else if (/Android/.test(userAgent)) {
os = 'Android';
} else if (!os && /Linux/.test(platform)) {
os = 'Linux';
}
return os;
}
var os = getOS();
if(os !== 'iOS' || os !== 'Android') {
// 非移动端平台下才设置动态favicon
var favicon_images = [
'./assets/images/favicon/0.jpg',
'./assets/images/favicon/1.jpg',
'./assets/images/favicon/2.jpg',
'./assets/images/favicon/3.jpg',
'./assets/images/favicon/4.jpg',
'./assets/images/favicon/5.jpg'
],
image_counter = 0; // To keep track of the current image
setInterval(function() {
$("link[rel='icon']").remove();
$("link[rel='shortcut icon']").remove();
$("head").append('<link rel="icon" href="' + favicon_images[image_counter] + '" type="image/jpeg">');
// If last image then goto first image
// Else go to next image
if(image_counter == favicon_images.length -1)
image_counter = 0;
else
image_counter++;
}, 80);
}
</script>
</head>
<body>
<header>
<img src="./assets/images/logo.gif" alt="logo">
<h1>舔狗日记</h1>
<p>我们是狗,舔狗</p>
</header>
<section class="border-1">
<article>
昨天你领完红包就把我删了,我陷入久久地沉思。我想这其中一定有什么含义,原来你是在欲擒故纵,嫌我不够爱你。无理取闹的你变得更加可爱了,我会<mark>坚守我对你的爱</mark>的。你放心好啦!今天发工资了,发了1850,给你微信转了520,支付宝1314,还剩下16。给你发了很多消息你没回。剩下16块我在小卖部买了你爱吃的老坛酸菜牛肉面,给你寄过去了。希望你保护好食欲,我去上班了爱你~~
</article>
<address></address>
</section>
<footer>
<a class="home-link" href="https://fuck.dog/">舔狗之家</a>
<a href="https://docs.qq.com/form/fill/DR1VHTXpjTkJ3SG9z?_w_tencentdocx_form=1" target="_blank">投稿</a>
<button title="点击刷新,再来一篇" onclick="randomSoul()">再来一篇</button><a href="javascript:;" data-btn="copy" data-clipboard-target="article">复制</a>
</footer>
<tips>已复制</tips>
<script src="./assets/js/index.js?20201105"></script>
<script src="https://cdn.bootcss.com/clipboard.js/2.0.6/clipboard.min.js"></script>
<script>
var content = '';
randomSoul();
$('meta[name="description"]').attr('content',content.replace(/\*\*(.*?)\*\*/g,''));
var clipboard = new ClipboardJS('a[data-btn="copy"]');
clipboard.on('success', function(e) {
$('tips').show(
setTimeout(function() {
$('tips').hide()
}, 1500)
);
e.clearSelection();
});
function randomNumBoth(min,max){
var range = max - min;
var rand = Math.random();
var num = min + Math.round(rand * range);
return num;
}
// var date = new Date();
// var year = date.getFullYear().toString();
// var month = (date.getMonth() + 1).toString();
// var day = date.getDate().toString();
// var city = localStorage.getItem('city') || '';
// var cloud = localStorage.getItem('cloud') || '';
// var cond = localStorage.getItem('cond') || '';
// var dateStart = new Date(localStorage.getItem('date') || new Date());
// var dayDiff = date.getDate() - dateStart.getDate();
// var weatherKeys = ['fbb7fed63979495f88fc1ddc7296f497','f3488e987bce466d8ae6b523becf278f','95cf38cd40b84df9beae340c610e8550','3cad9669ecba42c39ebfd73cdb566329','6ec2f3eef9bc448ba8a72e815dd86f12'];
// if(city == '' || dayDiff >= 1) {
// var weather = {};
// for(var i=0;i < weatherKeys.length; i++) {
// weather = getWeather(weatherKeys[i]);
// console.log(weatherKeys[i]+':'+weather.status)
// if (weather.status == 'ok') { break };
// }
// city = weather.basic.parent_city || '';
// cloud = weather.now.fl || ''
// cond = weather.now.cond_txt || ''
// localStorage.setItem('city',city);
// localStorage.setItem('cloud',cloud);
// localStorage.setItem('cond',cond);
// localStorage.setItem('date',new Date());
// }
// renderWeather();
// function getWeather(key) {
// var weatherData = {};
// $.ajax({
// url: 'https://free-api.heweather.net/s6/weather/now?location=auto_ip&key='+key,
// type: 'get',
// async: false,
// success : function(data){
// weatherData = data.HeWeather6[0];
// }
// });
// return weatherData;
// }
// function renderWeather(){
// var weatherHTML = '<time>'+ year+'-'+month+'-'+day+'</time><span>'+city+'·'+cond+'·'+cloud+'℃</span>'
// $('address').html(weatherHTML);
// }
</script>
<script>
var _hmt = _hmt || [];
(function() {
var hm = document.createElement("script");
hm.src = "https://hm.baidu.com/hm.js?a3bfaec321165f405968b4625458d552";
var s = document.getElementsByTagName("script")[0];
s.parentNode.insertBefore(hm, s);
})();
</script>
</body>
</html>