-
Notifications
You must be signed in to change notification settings - Fork 0
/
s1.html
executable file
·471 lines (420 loc) · 17.7 KB
/
s1.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
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>第一话:碟中谍 一线生机 - 小喵心语 CatTalk</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="《那些年的校园与我们》主线篇第一话:碟中谍一线生机。" />
<meta name="keywords" content="小喵心语, CatTalk, 那些年的校园与我们, 原创, 漫画, 校园, 青春, 表情包, 人物, 初中, 主线" />
<meta name="author" content="小喵心语 CatTalk" />
<!-- Favicons -->
<link rel='apple-touch-icon' href='apple-touch-icon.png' sizes='180x180'>
<link rel='icon' type='image/png' href='favicon.png' sizes='128x128'>
<link rel='shortcut icon' href='favicon.ico'>
<meta name='theme-color' content='#FFFFFF'>
<!-- Color CSS Define -->
<style id="switch-theme-color"></style>
<!-- Add PWA Support -->
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="#FFE8E6">
<link rel="manifest" href="manifest.json">
<script type="text/javascript">
if (navigator.serviceWorker != null) {
navigator.serviceWorker.register('sw.js')
.then(function(registration) {
console.log('Registered events at scope: ', registration.scope);
});
}
</script>
<!-- Loading -->
<script>
function loading() {
let lightstyle = ":root {--color-1: #828282;--color-2: #ffffff;--color-3: #1d2f3b;--color-4: #000;--color-5: #FFE8E6;--color-6: #00000090;--color-7: #000;--color-8: #fff;--color-9: #1d2f3b;--color-10: #000;--color-11: #fff;--color-12: #efefef;--color-13: rgba(0, 0, 0, 0.5);--color-14: #fff;}";
let darkstyle = ":root {--color-1: #FDF0E9;--color-2: #272625;--color-3: #F4B1AE;--color-4: #fff;--color-5: #141413;--color-6: #FDF0E990;--color-7: #FDF0E9;--color-8: #FDE8E6;--color-9: #FDF0E9;--color-10: #E68476;--color-11: #141413;--color-12: #141413;--color-13: rgba(255, 255, 255, 0.5);--color-14: #000;}";
var checked = localStorage.getItem("theme");
console.log(checked)
if (checked == "light") {
document.getElementById("dark-theme-toggle").checked = false;
document.getElementById("switch-theme-color").innerHTML = lightstyle;
console.log('成功获取配置文件:浅色模式');
} else if (checked == "dark") {
document.getElementById("dark-theme-toggle").checked = true;
document.getElementById("switch-theme-color").innerHTML = darkstyle;
console.log('成功获取配置文件:深色模式');
} else {
const themeMedia = window.matchMedia("(prefers-color-scheme: light)");
if (themeMedia.matches) {
document.getElementById("dark-theme-toggle").checked = false;
document.getElementById("switch-theme-color").innerHTML = lightstyle;
console.log('根据系统颜色选择:浅色模式');
} else {
document.getElementById("dark-theme-toggle").checked = true;
document.getElementById("switch-theme-color").innerHTML = darkstyle;
console.log('根据系统颜色选择:深色模式');
}
}
}
</script>
<!-- Facebook and Twitter integration -->
<meta property="og:title" content="第一话:碟中谍一线生机" />
<meta property="og:image" content="http://cattalk.nousbuild.org/assets/images/cattalk-logo.jpg" />
<meta property="og:url" content="http://cattalk.nousbuild.org/" />
<meta property="og:site_name" content="小喵心语 CatTalk" />
<meta property="og:description" content="《那些年的校园与我们》主线篇第一话:碟中谍一线生机。" />
<meta name="twitter:title" content="第一话:碟中谍一线生机" />
<meta name="twitter:image" content="http://cattalk.nousbuild.org/assets/images/cattalk-logo.jpg" />
<meta name="twitter:url" content="http://cattalk.nousbuild.org/" />
<meta name="twitter:card" content="《那些年的校园与我们》主线篇第一话:碟中谍一线生机。" />
<link href="https://fonts.googleapis.com/css?family=Josefin+Slab:400,600,700" rel="stylesheet">
<link href="https://fonts.googleapis.com/css?family=Sacramento" rel="stylesheet">
<!-- Bootstrap -->
<link rel="stylesheet" href="assets/css/bootstrap.css">
<!-- Theme Style -->
<link rel="stylesheet" id="main-css" href="assets/css/style.css" />
<!-- Music -->
<link href="assets/css/APlayer.min.css" rel="stylesheet">
<!-- Modernizr JS -->
<script src="assets/js/modernizr-2.6.2.min.js"></script>
<!-- Lozad JS -->
<script type="text/javascript" src="assets/js/lozad.min.js"></script>
<!-- Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-137231556-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag('js', new Date());
gtag('config', 'UA-137231556-1');
</script>
</head>
<body onload="onload()">
<div class="fh5co-loader"></div>
<div id="page">
<nav class="fh5co-nav" role="navigation">
<div class="container-fluid">
<div class="row">
<div class="top-menu">
<div class="container">
<div class="row">
<div class="col-sm-7 text-left menu-1">
<ul>
<li><a href="index.html">主页</a></li>
<li class="has-dropdown active">
<a href="#">主线篇</a>
<ul class="dropdown">
<li><a href="s3.html">第三话: <br>零食“战争”</a></li>
<li><a href="s2.html">第二话: <br>上课怎能睡觉</a></li>
<li><a href="s1.html">第一话: <br>碟中谍 一线生机</a></li>
</ul>
</li>
<li class="has-dropdown">
<a href="#">番外篇</a>
<ul class="dropdown">
<li><a href="sp1.html">特别篇: <br>意外“事故”</a></li>
<li><a href="e1.html">番外一: <br>去烧烤吧</a></li>
</ul>
</li>
<li><a href="about.html">关于</a></li>
</ul>
</div>
<div class="col-sm-5">
<ul class="fh5co-social-icons">
<li><a href="https://www.nousbuild.org/"><i class="icon-home3"></i></a></li>
<li><a href="mailto:[email protected]"><i class="icon-envelop"></i></a></li>
<li><a class="getminipp"><i style="cursor:pointer" class="icon-qrcode"></i></a>
</li>
<li><a href="https://pudding0503.github.io/get-cattalk/"><i
class="icon-github"></i></a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12 text-center menu-2">
<div id="fh5co-logo">
<h1>
<a href="index.html">
Cattalk<span>.</span>
<small>小喵心语</small>
</a>
</h1>
</div>
</div>
</div>
</div>
</nav>
<!-- 漫画内容 -->
<div id="fh5co-content" class="fh5co-no-pd-top">
<div class="container">
<div class="row animate-box">
<div class="col-md-12 col-md-offset-0 text-center fh5co-heading">
<h2><span>那些年的校园与我们</span></h2>
</div>
</div>
<div class="row">
<div class="col-md-9 col-padded-right">
<div class="row">
<div class="col-md-12">
<div class="fh5co-blog animate-box">
<div class="title title-pin text-center">
<span class="posted-on">2019年1月18日</span>
<h3><a href="#">碟中谍 一线生机</a></h3>
<span class="category">主线篇</span>
</div>
<script type="text/javascript">
for (var i = 1; i < 11; i++) {
(function (i) {
document.write('<img class="img-responsive lozad" data-src="https://img-1254235857.file.myqcloud.com/catcomics/s1/' + i + '.jpg" alt="漫画">')
})(i);
}
</script>
<div class="blog-text text-center">
<p>想要留言互动?想要给小喵写信?扫码打开小程序参与更多互动。<br>人物专属表情需要在小程序内获取。</p>
<ul class="fh5co-social-icons">
<li>分享</li>
<li><a
href="http://connect.qq.com/widget/shareqq/index.html?url=http://cattalk.nousbuild.org/s1.html&sharesource=qzone&title=碟中谍一线生机&pics=http://cattalk.nousbuild.org/assets/images/cover-s1.jpg&summary=主线篇第一话&desc=主线第一话更新了快来围观"><i
class="icon-qq qq"></i></a></li>
<li><a
href="https://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url=http://cattalk.nousbuild.org/s1.html&&sharesource=qzone&title=碟中谍一线生机&pics=http://cattalk.nousbuild.org/assets/images/cover-s1.jpg&summary=主线篇第一话"><i
class="icon-qzone"></i></a></li>
<li><a style="cursor:pointer" class="wechat"><i class="icon-wechat"></i></a>
</li>
</ul>
</div>
</div>
<!--<div class="fh5co-blog animate-box">
<div id="tcomment"></div>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/twikoo.all.min.js"></script>
<script>
twikoo.init({
envId: 'twikoo-0gjebtk1322faad2',
el: '#tcomment',
region: 'ap-shanghai',
path: 's1',
lang: 'zh-CN',
})
</script>
</div>-->
</div>
</div>
</div>
<aside id="sidebar">
<div class="col-md-3">
<!-- 音乐盒 -->
<div id="music" class="side animate-box">
<div class="col-md-12 col-md-offset-0 text-center fh5co-heading fh5co-heading-sidebar">
<h2><span>音乐盒 Music</span></h2>
</div>
<div class="row">
<div class="col-md-12">
<center>
<div id="player" class="aplayer"></div>
</center>
</div>
</div>
</div>
<!-- 小喵心语介绍 -->
<div class="side animate-box">
<div class="col-md-12 col-md-offset-0 text-center fh5co-heading fh5co-heading-sidebar">
<h2><span>关于 About</span></h2>
</div>
<div class="fh5co-staff">
<img src="assets/images/cattalk-logo.jpg" alt="CatTalk">
<h3>CatTalk</h3>
<strong class="role">小喵心语</strong>
<p>原创校园青春漫画<br>《那些年的校园与我们》<br>官方发行平台</p>
<ul class="fh5co-social-icons">
<li><a href="https://www.nousbuild.org/"><i class="icon-home3"></i></a></li>
<li><a href="mailto:[email protected]"><i class="icon-envelop"></i></a></li>
<li><a class="getminipp"><i style="cursor:pointer" class="icon-qrcode"></i></a>
</li>
<li><a href="https://pudding0503.github.io/get-cattalk/"><i
class="icon-github"></i></a></li>
</ul>
</div>
</div>
<!-- 深色模式 -->
<div class="side animate-box">
<div class="col-md-12 col-md-offset-0 text-center fh5co-heading fh5co-heading-sidebar">
<h2><span>主题 Theme</span></h2>
</div>
<input type="checkbox" id="dark-theme-toggle" onclick="saveDarkMode(this)" />
<label class="dark-button" for="dark-theme-toggle"></label>
<script type="text/javascript">loading();</script>
</div>
<!-- 作者介绍 -->
<div class="side animate-box">
<div class="col-md-12 col-md-offset-0 text-center fh5co-heading fh5co-heading-sidebar">
<h2><span>作者 Author</span></h2>
</div>
<div class="blog-entry">
<a href="#">
<img src="assets/images/author-1.jpg" class="img-responsive" alt="昊小宁">
<div class="desc">
<span class="date">作者</span>
<h3>昊小宁<br>编剧及绘画</h3>
</div>
</a>
</div>
<div class="blog-entry">
<a href="#">
<img src="assets/images/author-2.jpg" class="img-responsive" alt="村小山">
<div class="desc">
<span class="date">作者</span>
<h3>村小山<br>首席美术指导</h3>
</div>
</a>
</div>
<div class="blog-entry">
<a href="#">
<img src="assets/images/author-3.jpg" class="img-responsive" alt="马小陆">
<div class="desc">
<span class="date">作者</span>
<h3>马小陆<br>文字艺术设计</h3>
</div>
</a>
</div>
</div>
<div class="side animate-box">
<div class="col-md-12 col-md-offset-0 text-center fh5co-heading fh5co-heading-sidebar">
<h2><span>小程序 Minipp</span></h2>
</div>
<div class="row">
<div class="col-md-12">
<div class="insta"
style="background-image: url(assets/images/minipp-wxqr.jpg);">
</div>
<div class="insta"
style="background-image: url(assets/images/minipp-qqqr.jpg);">
</div>
</div>
</div>
</div>
</div>
</aside>
</div>
</div>
</div>
<footer id="fh5co-footer" role="contentinfo">
<div class="container">
<div class="row copyright">
<div class="col-md-12 text-center">
<p>
<small class="block">© <span id="footerYear">2019</span> <a
href="https://cattalk.nousbuild.org/">CatTalk</a>. All Rights Reserved.</small>
<small class="block">Special Thanks <a href="https://www.nousbuild.org/"
target="_blank">Scenery Architecture</a></small>
</p>
<p>
<ul class="fh5co-social-icons">
<li><a href="https://www.nousbuild.org/"><i class="icon-home3"></i></a></li>
<li><a href="mailto:[email protected]"><i class="icon-envelop"></i></a></li>
<li><a class="getminipp"><i style="cursor:pointer" class="icon-qrcode"></i></a></li>
<li><a href="https://pudding0503.github.io/get-cattalk/"><i class="icon-github"></i></a>
</li>
</ul>
</p>
</div>
</div>
</div>
</footer>
</div>
<div id="js-palymusic" style="cursor:pointer" class="ap-pause js-music" onclick="ap_toggle()">
<a class="js-palymusic"><i class="icon-music"></i></a>
</div>
<div class="gototop js-top">
<a href="#" class="js-gotop"><i class="icon-arrow-up2"></i></a>
</div>
<!-- jQuery -->
<script src="assets/js/jquery.min.js"></script>
<!-- jQuery Easing -->
<script src="assets/js/jquery.easing.1.3.js"></script>
<!-- Bootstrap -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- Waypoints -->
<script src="assets/js/jquery.waypoints.min.js"></script>
<!-- Flexslider -->
<script src="assets/js/jquery.flexslider-min.js"></script>
<!-- Magnific Popup -->
<script src="assets/js/jquery.magnific-popup.min.js"></script>
<script src="assets/js/magnific-popup-options.js"></script>
<!-- Main -->
<script src="assets/js/main.js"></script>
<!-- Music -->
<script src="assets/js/APlayer.min.js"></script>
<!-- Inside Scripts -->
<script type="text/javascript">
/* footerYeaer js */
document.getElementById('footerYear').innerHTML = new Date().getFullYear() + '';
/* on load */
function onload() {
const observer = lozad();
observer.observe();
}
/* save dark mode */
function saveDarkMode(checkbox) {
let lightstyle = ":root {--color-1: #828282;--color-2: #ffffff;--color-3: #1d2f3b;--color-4: #000;--color-5: #FFE8E6;--color-6: #00000090;--color-7: #000;--color-8: #fff;--color-9: #1d2f3b;--color-10: #000;--color-11: #fff;--color-12: #efefef;--color-13: rgba(0, 0, 0, 0.5);--color-14: #fff;}";
let darkstyle = ":root {--color-1: #FDF0E9;--color-2: #272625;--color-3: #F4B1AE;--color-4: #fff;--color-5: #141413;--color-6: #FDF0E990;--color-7: #FDF0E9;--color-8: #FDE8E6;--color-9: #FDF0E9;--color-10: #E68476;--color-11: #141413;--color-12: #141413;--color-13: rgba(255, 255, 255, 0.5);--color-14: #000;}";
if (checkbox.checked == true) {
console.log('手动设置深色模式,并保存配置')
localStorage.setItem("theme", "dark");
document.getElementById("switch-theme-color").innerHTML = darkstyle;
} else {
console.log('手动设置浅色模式,并保存配置')
localStorage.setItem("theme", "light");
document.getElementById("switch-theme-color").innerHTML = lightstyle;
}
}
/* APlayer */
const ap = new APlayer({
container: document.getElementById('player'),
mini: true,
audio: [{
name: 'Play With Me',
artist: 'Dan Salvato',
url: 'https://img-1254235857.file.myqcloud.com/catcomics/music/s1-bgm.mp3',
cover: 'assets/images/cd.png',
theme: '#ebd0c2'
}]
});
function ap_toggle() {
ap.toggle();
if (document.getElementById("js-palymusic").className == 'ap-pause js-music active') {
document.getElementById("js-palymusic").setAttribute("class", "ap-play js-music active");
} else if (document.getElementById("js-palymusic").className == 'ap-play js-music active') {
document.getElementById("js-palymusic").setAttribute("class", "ap-pause js-music active");
}
}
</script>
<!-- live2d -->
<script src="live2d/autoload.js"></script>
</body>
<script type="text/javascript" src="assets/js/sweetalert.min.js"></script>
<script type="text/javascript">
$(function () {
$(".getminipp").click(function () {
swal({
title: '<a style="color: #333333">小程序端</a>',
text: '<a style="color: #333333">获得更好体验,支持 QQ 和 微信小程序。<br><br><img src="assets/images/minipp-qr.jpg" width="320px" he1ght="160px"></a>',
imageUrl: "assets/images/my-minipp.jpg",
html: true
});
});
});
$(function () {
$(".wechat").click(function () {
swal({
title: '<a style="color: #4DB774">微信分享</a>',
text: '<a style="color: #4DB774">请使用微信扫描此二维码,然后再点击右上角分享。<br><br><img src="assets/images/qr/wechat-s1.png" width="160px" he1ght="160px"></a>',
imageUrl: "assets/images/my-wechat.jpg",
html: true
});
});
});
</script>
</html>