-
Notifications
You must be signed in to change notification settings - Fork 10
/
promise.html
678 lines (622 loc) · 39.9 KB
/
promise.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
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
<!DOCTYPE html>
<html ng-app="app">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=no,minimal-ui">
<meta name="format-detection" content="telephone=no">
<link rel="stylesheet" href="css/reset.css">
<style type="text/css">
html {
width: 100%;
height: 100px;
overflow-x: hidden;
}
body {
text-align: left;
width: 100%;
overflow: hidden;
background: #f7eee5;
}
.m-read-content {
font-size: 14px;
color: #555555;
line-height: 31px;
padding: 15px;
}
.m-read-content h4 {
font-size: 20px;
color: #736357;
border-bottom: solid 1px #736357;
letter-spacing: 2px;
margin: 0 0 1em 0;
}
.m-read-content p {
text-indent: 2em;
margin: 0.5em 0;
letter-spacing: 0px;
line-height: 24px;
}
.m-button-bar {
width: 70%;
max-width: 800px;
padding: 5px;
margin: 0 auto;
}
.u-tab {
height: 34px;
margin: 10px auto;
line-height: 34px;
border-radius: 8px;
border: 1px solid #858382;
font-size: 12px;
background: #000;
opacity: 0.9;
}
.u-tab li {
display: inline-block;
width: 49%;
border-right: 1px solid #858382;
text-align: center;
color: #fff;
}
.u-tab li:nth-child(2) {
border: none;
}
.top-nav {
position: fixed;
top: 0px;
height: 50px;
width: 100%;
z-index: 999;
background: #000;
}
.icon-back {
position: absolute;
top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gLA/WPMwC9Ucof4w6H6vmWU+SgaSK0DzBLrohWMbfEmC4ZnkE9Usc9adqn4AIqMPtsH3MRLRIg/YtZgAm8my1bGsreIjm5HfED6i1ttldFkXVlm9nbCaWMIymbQn28XnNt9cEu8gJQjiYklJvFNOeIvpLANeIIl3jFUS4ny+nZCgIQmpn64Q3kMtNM01+VgZn5pJPrZborU526+fZycfQ+Kdh15kmm/6u1dlfBf3X6rvJPrp7+bQr33KGvvvFcfp72xDoPFNGU1qGKcEjLjXbyTP9YlBpQDt5uC7IyLwsDEQiTQimQLUttWMXpiZPSxrQwwNkzBhJKHFFCTyHCzhdwN8sAXb0usqDXI/h0TYb3s1YHDYw4bZs2dkfMUZIslIY3BEIp4G2bZSvukyE3F3sQl18vxenteZztGDSZBTlxEQOUwPIZBF9FFIBQ+H3PywQC8LfYsFThPQlEwF79W8zY8RQI9KYX6M4DJrdCJ/jCDbMKpWJv85DFOr0uzLbsjEn8PokRDTU/0vwACwczOmB6btAwAAAABJRU5ErkJggg==);
background-size: contain;
}
.nav-title {
position: absolute;
top: 16px;
left: 42px;
color: #d5d5d6;
}
.bottom-nav-bk {
position: fixed;
bottom: 0px;
height: 70px;
background: #000;
width: 100%;
opacity: 0.9;
z-index: 998;
}
.bottom-nav {
position: fixed;
bottom: 0px;
height: 70px;
width: 100%;
background: none;
z-index: 999;
margin: 0 auto;
text-align: center;
}
.item {
display: inline-block;
width: 32%;
color: #fff;
text-align: center;
margin: 0 auto;
}
.item-warp {
width: 26px;
margin: 0 auto;
position: relative;
}
.icon {
position: absolute;
top: 3px;
left: 2px;
width: 18px;
height: 13px;
background-size: contain;
}
.icon-menu {
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAAoCAYAAABerrI1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzV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qjGWW0pC56X9czw42DtCv7xvig7VyKP5vsL9gfQvY7Syymw2S/4thUJFEM65tNisO1I4+8EZjnkWj2ixFFLHQUH4b0ordY+6+En+knwvzElDoaCmeb4mK2JUQT78vGHPZeWhLOL3M/D55k/ntptyOy724l0WyMFpE1jO3NrEyLDVk6E1lIrvU4fgxFGkv/UsWSQnxHK5dhC/3QGqe/dHy1+a8AAwCKR08FSRIHxQAAAABJRU5ErkJggg==);
background-size: contain;
}
.current .icon-ft {
top: 2px;
left: 0px;
width: 22px;
height: 15px;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAAA0CAYAAAAg5t6HAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0Y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26YzZVo+jcMb+R7vXC/PQObm2bidMFw874bry5QTn6N6IfC50Rjwr0xMLFmAebzLLR8AbGjChdd34gfz2OlRyhH5WH1JBulZSB4otoeSlNPozRxlOf7oYfDM/WVy4Y0c5I+PVTdZeD5S2gcU6px/exc2PTRMtT2c7UjrBSuzJIiLXTujy+UOkNRewLl7v8Yq8rbnH09RnxFAjiWHdETKnuSzhhle5txFNJm3wg6fRuXqQzgueaEcT0qLU8oCfePLg6ji8UwovvXMBfU0I+89kk3NdoaffZ0Ia0s5CpOX4n0CvlW7qnC2yhR1ENy4MbxtQ5eXfAoLjDclTuhf75ti5MlA9flNikZtxZUhY2eJx5OPe/J8eF7i5wljqRKyn78Gn5Y58K5OshVNW8tRlLESy0Z/gG/EUQWNFueq78cAmuJWOQqJ85Iw2Cw5KKbgNvCz/SjZVmHbV9Rtsz5p+Y+zOpw8tP05jdEjx4vTrYjZewKn3s1XwPEy4mEwHRDhY6N3JiCWYEIkeVVLYFf4+3RCZ7ZNtGoayMvWHjyFagLeFRQHH5Xssau0QtbYB4HL5pY+kzXhClCaDAkcEMOGLFEeK3L5HSU2BatFwnS8k7ocPbwuB7E7YTsYa8ZgbGyXe9p2OaBS4THjHMCBzwXrxDtI+SJREQXXDwbyOOthO2VYKj5GtYAO5k0RhjHr9PG9LoH+40TOnCsfx9WnnmIO1WIOzg6XJIj6seKFORXEsKEBbSemK0Rf7PXc/nPq/wgwAHlvUwHlIWIoAAAAAElFTkSuQmCC);
background-size: contain;
}
.icon-night {
left: 4px;
width: 16px;
height: 16px;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1s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cdEmb7L3edOq5zzz1nn332Pvdfv5e5Z9Zd666711577etIKYUGjQILwRwwDOwDfcKAamP873CwBawDrcABP8ACU87/FWUgIk3gKMjL/7VfwV4sojxcCw6AL9JfD0DGdABhv0KTwAUwO+CZvaBfGFaYAJaDyyAb8Mwt0CksKFPh9W3gWgXnSSeFJTkBZXQrOM3VJUi9oJErUGoysBKcCuE86YYt58sF0MILtiakjTvCojI+i/o876Zh9ThNARysUCr99NpmAN5FTAvxBRgS0QZlK5+GDLQrOC9sOu/NADVm70LU+9RmYJOi8yLigk8sgPUxbEy0HUATH0RUNdV2AG0hd9xyarMdwNyYNhaDOpsBTI5pYwRYYTMAHYtwh80ARmqws1ShBdEWwGAdGyI4HrMYKAegawFSMdhlo5XIK/ZAfvoO5oFukxn4oNHeID5DjzUZwCvNNsn5DjDOVADPErA7BdwF0xP2v4YCyCVknDJwjxe2k8AHT4O0VTSeawD9Mll1glZN48T5IMc+N7p/7JJm1AFWg4ERna4Da8F1j62cdzZKY5RZBtbcEuYzuAlugyfgOSjwyS7LJ8QJYJoojuuX+RycLnqPlPXgLZfBalCB11iveyL7CM6K6tEZURxp/jNWGc2pzFbBp98M3peOVXrA4Sr49I+4zpdmgDSA94UZKXX+ITeNP8sFIDg9XWBoypyni0O6THzqN1bx6iXYCH6nyHnyZXOp8+UCIF0Fe1LiPH1FdoMr/q8G74DbwS9pT/TeO+Nes64JuFpNUl+5fdByT9wMHhl0vhu06L7opobqEPiWoON9oJ0v1bXf1LuMAcdAQbPjJ6g9juqPE+PXKvVcbjeAmQqHFsmb5iVwzu1tVKYSOkpdA1jEU246To4XxZ/gZLlUU5v8CbzhI+x9bqV74r7xHwEGAPDRVwnecW5KAAAAAElFTkSuQmCC);
background-size: contain;
}
.icon-day {
width: 19px;
height: 18px;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAA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ea4m2CZEk61mrOQyYDiJjUpzFpqb5nad8olkjsfvG6RC7oIRsBsSY62SN9H6Lopd3MtyvmorcCM4gD0dkxnk7eiHARHEWg84RWkUXPinZEQeSXsCa8wOYXQqxIi31aAQN3R/rTEAv1lqCNs3taSTqoEmclmqf2FIFlCm3cGvBeBzoOt4I7vraqgJvW+awPF9B0MgJ9RRZYz+5a+75qKTEWmIstuFfm+q7RJve8ayH4LMACaxEJEaXs23AAAAABJRU5ErkJggg==);
background-size: contain;
}
.icon-text {
position: absolute;
top: 25px;
font-size: 10px;
}
.nav-pannel-bk {
position: fixed;
bottom: 70px;
height: 135px;
width: 100%;
opacity: 0.9;
background: #000;
z-index: 998;
}
.nav-pannel {
position: fixed;
bottom: 70px;
height: 135px;
width: 100%;
background: none;
z-index: 999;
color: #fff;
}
.child-mod {
padding: 5px 10px;
margin: 15px;
}
.child-mod span {
display: inline-block;
padding-right: 20px;
padding-left: 10px;
}
.font-size-button {
background: none;
border: 1px solid #8c8c8c;
color: #fff;
border-radius: 16px;
padding: 5px 40px;
}
.font-size-button:focus {
background: none;
border: 1px solid #8c8c8c;
color: #fff;
border-radius: 16px;
padding: 5px 40px;
}
.child-mod button:nth-child(2) {
margin-right: 10px;
}
.bk-container {
position: relative;
vertical-align: -14px;
width: 30px;
height: 30px;
border-radius: 15px;
background: #fff;
display: inline-block;
margin-left: 7px;
}
.bk-container-white {
background: #f7eee5;
}
.bk-container-paple {
background: #e9dfc7;
}
.bk-container-grey {
background: #a4a4a4;
}
.bk-container-green {
background: #cdefce;
}
.bk-container-blue {
background: #283548;
}
.bk-container-current {
position: absolute;
top: -2px;
left: -2px;
width: 32px;
height: 32px;
border-radius: 16px;
border: 1px solid #ff7800;
display: inline-block;
}
.artical-action-mid {
position: fixed;
z-index: 997;
width: 100%;
height: 40%;
top: 30%;
}
</style>
</head>
<body>
<div id="root" class="container">
<div class="m-artical-action">
<div class="artical-action-mid" id="action_mid"></div>
</div>
<div id="top_nav" class="top-nav" style="display: none;">
<div class="icon-back"></div>
<div class="nav-title">返回书架</div>
</div>
<div id="fition_chapter_title"></div>
<div id="fiction_container" class="m-read-content">
</div>
<div id="" class="m-button-bar">
<ul class="u-tab">
<li id="prev_button">上一章</li>
<li id="next_button">下一章</li>
</ul>
</div>
<div class="nav-pannel-bk font-container" style="display: none;"></div>
<div class="nav-pannel font-container" id="font-container" style="display: none;">
<div class="child-mod">
<span>字号</span>
<button id="large-font" class="font-size-button">大</button>
<button id="small-font" class="font-size-button">小</button>
</div>
<div class="child-mod">
<span>背景</span>
<div id="first_day" class="bk-container bk-container-white" data-background="#f7eee5">
<div class="bk-container-current" style="display: none;"></div>
</div>
<div class="bk-container bk-container-paple" data-background="#e9dfc7">
<div class="bk-container-current" style="display: none;"></div>
</div>
<div class="bk-container bk-container-grey" data-background="#a4a4a4">
<div class="bk-container-current" style="display: none;"></div>
</div>
<div class="bk-container bk-container-green" data-background="#cdefce">
<div class="bk-container-current" style="display: none;"></div>
</div>
<div id="last_night" class="bk-container bk-container-blue" data-background="#283548">
<div class="bk-container-current" style="display: none;"></div>
</div>
</div>
</div>
<div class="bottom-nav-bk bottom_nav" style="display: none;"></div>
<div class="bottom-nav bottom_nav" style="display: none;">
<div class="item" id="menu_button">
<div class="item-warp">
<div class="icon icon-menu"></div>
<div class="icon-text">
目录
</div>
</div>
</div>
<div class="item" id="font-button">
<div class="item-warp">
<div class="icon icon-ft"></div>
<div class="icon-text">
字体
</div>
</div>
</div>
<div class="item" id="night-day-button">
<div class="item-warp" style="display:none" id="day_icon">
<div class="icon icon-day"></div>
<div class="icon-text">
白天
</div>
</div>
<div class="item-warp" style="display:none" id="night_icon">
<div class="icon icon-night"></div>
<div class="icon-text">
夜间
</div>
</div>
</div>
</div>
</div>
<script src="lib/zepto.min.js"></script>
<script>
window.jQuery = $;
</script>
<script src="js/jquery.base64.js"></script>
<script src="js/jquery.jsonp.js"></script>
<script>
(function () {
'use strict'
var Util = (function () {
//本地存储 加prefix区别
var prefix = 'html5_reader_'
var StorageGetter = function (key) {
return localStorage.getItem(prefix + key);
}
var StorageSetter = function (key, val) {
return localStorage.setItem(prefix + key, val)
}
//jsonp方法
var getJSONP = function (url, callback) {
return $.jsonp({
url: url,
cache: true,
callback: 'duokan_fiction_chapter',
success: function (result) {
var data = $.base64.decode(result);
var json = decodeURIComponent(escape(data));
callback(json);
}
})
}
//暴露方法
return {
getJSONP: getJSONP,
StorageGetter: StorageGetter,
StorageSetter: StorageSetter
}
})();
var Dom = {
top_nav: $('#top_nav'),
bottom_nav: $('.bottom_nav'),
font_container: $('.font-container'),
font_button: $('#font-button'),
bk_container: $('.bk-container'),
bk_container_current: $('.bk-container-current'),
day_icon: $('#day_icon'),
night_icon: $('#night_icon'),
}
var Win = $(window);
var Doc = $(document);
var readerModel;//闭包内的全局方法
var readerUI;//闭包内的全局方法
//本地存储字体大小
var RootContainer = $('#fiction_container');
var initFontSize = Util.StorageGetter('font_size');
initFontSize = parseInt(initFontSize);
if (!initFontSize) {
initFontSize = 14;
}
RootContainer.css('font-size', initFontSize);
//本地存储背景颜色
var Body = $('body');
var initBackground = Util.StorageGetter('background');
if (!initBackground) {
initBackground = '#f7eee5';
}
if (initBackground == '#283548') {
$('#night_icon').show();
} else {
$('#day_icon').show();
}
$('[data-background="' + initBackground + '"]').children('.bk-container-current').css('display', 'block');
Body.css('background', initBackground);
/*todo 入口函数*/
function main() {
readerModel = ReaderModel();
readerUI = ReaderBaseFrame(RootContainer);
readerModel.init(function (data) {
readerUI(data);
});
EventHanlder();
}
/*todo 实现和阅读器相关的数据交互的方法*/
function ReaderModel() {
var Chapter_id;
var ChapterTotal;
var init = function (UIcallback) {
/*getFictionInfo(function () {
getCurChapterContent(Chapter_id, function (data) {
UIcallback && UIcallback(data);
});
})*/
getFictionInfoPromise().then(function (d) {
return getCurChapterContentPromise();
}).then(function (data) {
UIcallback && UIcallback(data);
})
}
//获得章节信息
var getFictionInfo = function (callback) {
$.get('data/chapter.json', function (data) {
Chapter_id = Util.StorageGetter('last_chapter_id');
if (Chapter_id == null) {
Chapter_id = data.chapters[0].chapter_id;
}
ChapterTotal = data.chapters.length;
callback && callback();
}, 'json');
}
var getFictionInfoPromise = function () {
return new Promise (function (resolve, reject) {
$.get('data/chapter.json', function (data) {
if(data.result == 0){
Chapter_id = Util.StorageGetter('last_chapter_id');
if (Chapter_id == null) {
Chapter_id = data.chapters[0].chapter_id;
}
ChapterTotal = data.chapters.length;
//callback && callback();
resolve(data);
}else {
resolve();
}
}, 'json');
})
}
//获取文章内容
var getCurChapterContent = function (chapter_id, callback) {
$.get('data/data' + chapter_id + '.json', function (data) {
if (data.result == 0) {
var url = data.jsonp;
Util.getJSONP(url, function (data) {
callback && callback(data);
});
}
}, 'json');
}
var getCurChapterContentPromise = function () {
return new Promise(function (resolve, reject) {
$.get('data/data' + Chapter_id + '.json', function (data) {
if (data.result == 0) {
var url = data.jsonp;
Util.getJSONP(url, function (data) {
//callback && callback(data);
resolve(data);
});
}else {
reject({msg:'fail'});
}
}, 'json');
})
}
var prevChapter = function (UIcallback) {
Chapter_id = parseInt(Chapter_id, 10);
if (Chapter_id == 0) {
alert('模拟数据到头了!程序猿正在改提示框!');
return;
}
Chapter_id -= 1;
getCurChapterContent(Chapter_id, UIcallback);
Util.StorageSetter('last_chapter_id', Chapter_id);
}
var nextChapter = function (UIcallback) {
Chapter_id = parseInt(Chapter_id, 10);
if (Chapter_id == ChapterTotal - 1) {
alert('模拟数据到头了!程序猿正在改提示框!');
return;
}
Chapter_id += 1;
getCurChapterContent(Chapter_id, UIcallback);
Util.StorageSetter('last_chapter_id', Chapter_id);
}
return {
init: init,
prevChapter: prevChapter,
nextChapter: nextChapter
}
}
/*todo 渲染基本的UI结构*/
function ReaderBaseFrame(container) {
function parseChapterData(jsonData) {
var jsonObj = JSON.parse(jsonData);
var html = '<h4>' + jsonObj.t + '</h4>';
for (var i = 0; i < jsonObj.p.length; i++) {
html += '<p>' + jsonObj.p[i] + '</p>'
}
return html;
}
return function (data) {
container.html(parseChapterData(data));
}
}
/*todo 交互的事件绑定*/
function EventHanlder() {
$('#action_mid').click(function () {
if (Dom.top_nav.css('display') == 'none') {
Dom.bottom_nav.show();
Dom.top_nav.show();
} else {
Dom.bottom_nav.hide();
Dom.top_nav.hide();
Dom.font_container.hide();
Dom.font_button.removeClass('current');
}
});
Dom.font_button.click(function () {
if (Dom.font_container.css('display') == 'none') {
Dom.font_container.show();
Dom.font_button.addClass('current');
} else {
Dom.font_container.hide();
Dom.font_button.removeClass('current');
}
})
$('#night-day-button').click(function () {
//todo 触发背景切换事件
if (Dom.day_icon.css('display') == 'none') {
//黑变白
Dom.day_icon.show();
Dom.night_icon.hide();
Dom.bk_container_current.css('display', 'none');
$('#first_day').children('.bk-container-current').css('display', 'block');
initBackground = '#f7eee5';
Body.css('background', initBackground);
Util.StorageSetter('background', initBackground);
} else {
//白变黑
Dom.day_icon.hide();
Dom.night_icon.show();
Dom.bk_container_current.css('display', 'none');
$('#last_night').children('.bk-container-current').css('display', 'block');
initBackground = '#283548';
Body.css('background', initBackground);
Util.StorageSetter('background', initBackground);
}
})
$('#large-font').click(function () {
if (initFontSize > 20) {
alert('字号不能更大了!程序猿正在改提示框!')
return;
}
initFontSize += 1;
RootContainer.css('font-size', initFontSize);
Util.StorageSetter('font_size', initFontSize);
});
$('#small-font').click(function () {
if (initFontSize < 12) {
alert('字号不能更小了!程序猿正在改提示框!')
return;
}
initFontSize -= 1;
RootContainer.css('font-size', initFontSize);
Util.StorageSetter('font_size', initFontSize);
});
Dom.bk_container.click(function () {
if ($(this).children('.bk-container-current').css('display') == 'none') {
Dom.bk_container_current.css('display', 'none');
$(this).children('.bk-container-current').css('display', 'block');
initBackground = $(this).attr('data-background');
Body.css('background', initBackground);
Util.StorageSetter('background', initBackground);
if (initBackground == '#283548') {
$('#night_icon').show();
$('#day_icon').hide();
} else {
$('#night_icon').hide();
$('#day_icon').show();
}
}
});
Win.scroll(function () {
Dom.bottom_nav.hide();
Dom.top_nav.hide();
Dom.font_container.hide();
Dom.font_button.removeClass('current');
});
$('#prev_button').click(function (data) {
readerModel.prevChapter(function (data) {
readerUI(data);
$("body").scrollTop(0);
});
})
$('#next_button').click(function (data) {
readerModel.nextChapter(function (data) {
readerUI(data);
$("body").scrollTop(0);
})
})
}
main();//调用入口函数
})()//闭包不影响全局
</script>
</body>
</html>