当前位置:   article > 正文

7zky.cn app.html,H5-ReadApp/index.html at 687afed52d93e9ee65d40610b95a0552fa9c91e1 · wenhuiyang-luck...

egpf zzky

html {

width: 100%;

height: 100%;

/*overflow: hidden;*/

}

body {

text-align: left;

width: 100%;

/*overflow: hidden;*/

background-color: #e9dfc7;

}

/*content css*/

.m-read-content {

font-size: 14px;

color: #555;

line-height: 30px;

padding: 15px;

}

.m-read-content h4 {

font-size: 20px;

color: #736357;

border-bottom: 1px solid #736357;

letter-spacing: 2px;

margin: 0 0 0.8em;

}

.m-read-content p {

text-indent: 2em;

margin: 0.5em 0;

letter-spacing: 0px;

line-height: 24px;

}

/*tab css*/

.u-tab {

height: 34px;

text-align: center;

margin: 10px auto;

line-height: 34px;

border-radius: 8px;

border: 1px solid #858382;

font-size: 12px;

background-color: #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-right: none;

}

.m-button-bar {

width: 70%;

max-width: 800px;

padding: 5px;

margin: 10px auto;

}

/*top-nav css*/

.top-nav {

position: fixed;

top: 0;

height: 50px;

width: 100%;

z-index: 9999;

background: #000;

}

.icon-back {

position: absolute;

top: 14px;

left: 10px;

width: 23px;

height: 23px;

background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG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ztGDSZBTlxEQOUwPIZBF9FFIBQ+H3PywQC8LfYsFThPQlEwF79W8zY8RQI9KYX6M4DJrdCJ/jCDbMKpWJv85DFOr0uzLbsjEn8PokRDTU/0vwACwczOmB6btAwAAAABJRU5ErkJggg==);

background-size: contain;

}

.nav-title {

position: absolute;

top: 16px;

left: 42px;

color: #d5d5d6;

}

/*bottom-nav css*/

.bottom-nav {

position: fixed;

bottom: 0;

height: 70px;

width: 100%;

background: none;

color: #d5d5d6;

z-index: 10000;

}

.bottom-nav-bk {

background: #000;

opacity: 0.9;

z-index: 9999;

}

.bottom-nav-item {

display: inline-block;

width: 32%;

margin: 14px 0;

font-size: 12px;

text-align: center;

}

.item-wrap {

width: 100%;

}

.icon,

.icon-active {

width: 16px;

margin: 0 auto 4px;

}

.catalog-icon {

height: 12px;

background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADUAAAAoCAYAAABerrI1AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChNYWNpbnRvc2gpIiB4bXBNTTpJbnN0YW5jZUlEPSJ4bXAuaWlkOkNFN0E3M0IwMjc4NDExRTU5RkYxQjg1Rjk2QkEyNzBEIiB4bXBNTTpEb2N1bWVudElEPSJ4bXAuZGlkOkNFN0E3M0IxMjc4NDExRTU5RkYxQjg1Rjk2QkEyNzBEIj4gPHhtcE1NOkRlcml2ZWRGcm9tIHN0UmVmOmluc3RhbmNlSUQ9InhtcC5paWQ6N0M1ODVCRkYyNzg0MTFFNTlGRjFCODVGOTZCQTI3MEQiIHN0UmVmOmRvY3VtZW50SUQ9InhtcC5kaWQ6N0M1ODVDMDAyNzg0MTFFNTlGRjFCODVGOTZCQTI3MEQiLz4gPC9yZGY6RGVzY3JpcHRpb24+IDwvcmRmOlJERj4gPC94OnhtcG1ldGE+IDw/eHBhY2tldCBlbmQ9InIiPz5uTX6PAAAA0UlEQVR42uyXsQrCMBRFX4p0V39Pv8FJcekHFJe6d+v3NY6CDvUFooQ0AcEllnPhlgz3QU6bBq6ZnvdaRC7qndqoB/VR/ZC5wuxGytLtvXejUJ0uDlGgVZ8Tg6lsaWod1Jh461a9TQyMBX6hWLaSBary5zBWn8kPf8DUr/Rx8hfEPth4kxkIs+tCL4rG/VOLPH5AAQUUUEABBRRQv0O54nf1tcL6dZ3Jh9mpMH/2TkmkJFISKYmURKCAAgoooIACCihKIiWRkkhJpCR+XxJfAgwA/ROhOlYvoWQAAAAASUVORK5CYII=);

background-size: contain;

}

.font-icon {

width: 21px;

height: 12px;

padding: 2px;

background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEYAAAAuCAYAAACViW+zAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZ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ZymvKDMxa9yViK1Kue0xkwlXyLmy1M/jw6pO08RcFiPp/PeOmiRt5CorcvWEbgePDrzmbpYld7gsxiXMpeALRXSGl4Evei6XpWw0JcEf7CN9Bn4Ivs4H0pVUmDXghCIK0+xxvT70UeMd+yXx+5RhfDOrbXH68u5rV47SwFsYcWBfFrDJVKP0arRmlw2tKyj4GnwYfJY5TtKaSRUm4wihtigi1LspWcc6zme3AnKFbnGs1yo/ai4bV00BogyM8+xRVBi9ab3ApNer7XI0t7Qmezemm+zm9f3gbQmddhQnJBFGKtiDrTFZa8tS9inLlAJQrnux4/gJSu10T573MD6JMFqmuyKH8wrFLkfUc7Ujhlvbn1Cc4DTF6O/GVGFGgOMczaZCQFtO4xQTzzBM21acD+rjcqBMzNNqYQ+kEJB5P/eon6RssD8jGWb0z9t8cBj4oE9aLZDPNaZ5PtU0oTWxtM9LWqxtyZTPD7ievO9abbIb9JHeQUcmKsxUxVxlDS8vsDDLFV/R32R/2LhSOfdJ4/8VhfRdZoEfmz3fomoRbXBUGG0ZPWMK/yVUGxOzuOW0mGm9nYes531eQCvqXl7lrNrr2QuSNmajZYm/gjco1x7RnfkOdZT9o1lbFBqjGWW0pC56X9czw42DtCv7xvig7VyKP5vsL9gfQvY7Syymw2S/4thUJFEM65tNisO1I4+8EZjnkWj2ixFFLHQUH4b0ordY+6+En+knwvzElDoaCmeb4mK2JUQT78vGHPZeWhLOL3M/D55k/ntptyOy724l0WyMFpE1jO3NrEyLDVk6E1lIrvU4fgxFGkv/UsWSQnxHK5dhC/3QGqe/dHy1+a8AAwCKR08FSRIHxQAAAABJRU5ErkJggg==

);

background-size: contain;

}

.icon-active {

width: 20px;

height: 12px;

background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEwAAAA0CAYAAAAg5t6HAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWd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e2k8AHT4O0VTSeawD9Mll1glZN48T5IMc+N7p/7JJm1AFWg4ERna4Da8F1j62cdzZKY5RZBtbcEuYzuAlugyfgOSjwyS7LJ8QJYJoojuuX+RycLnqPlPXgLZfBalCB11iveyL7CM6K6tEZURxp/jNWGc2pzFbBp98M3peOVXrA4Sr49I+4zpdmgDSA94UZKXX+ITeNP8sFIDg9XWBoypyni0O6THzqN1bx6iXYCH6nyHnyZXOp8+UCIF0Fe1LiPH1FdoMr/q8G74DbwS9pT/TeO+Nes64JuFpNUl+5fdByT9wMHhl0vhu06L7opobqEPiWoON9oJ0v1bXf1LuMAcdAQbPjJ6g9juqPE+PXKvVcbjeAmQqHFsmb5iVwzu1tVKYSOkpdA1jEU246To4XxZ/gZLlUU5v8CbzhI+x9bqV74r7xHwEGAPDRVwnecW5KAAAAAElFTkSuQmCC

);

background-size: contain;

}

.day-icon {

height: 16px;

background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADkAAAA5CAYAAACMGIOFAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyNpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2J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z6jczvuuoXa/93UHilnxmjoMVV8ZWyJ9IbFICz4FVV9ZWyW9FiDwGfmmCnQIXQBuoBxvobxuVT2nqen57khbpPYNFRYBzoNtiPnXod3MKP0VqJxGRjmaQGQXVAf1VUz3VYOQkIbJLEdADkA3pM0v1OetKQuQ4E8gHUBXxEfDqzzC+x+MW2aL4b+eFRuu8wn9LGH9hN82dTNlrMCa02xgjf347GmdmoJ0puyu8rbrHlB2MU2QrUzYuLLJg2a6VyA7KbLsMi3Tdb9sVuwRJ+2TZrjF+b+4pTd2rkk/1hky4Z+vBapkz7lzW3Ri/ze3KpTqKTNlmYYG1TNlKmJRJpiSDxpkqq/aVKdsrLHIPU/ZFkwFUxu/dYk8M3c3ZNNjnKzsEXgmKPKxo12/G+MOOri+YslPCPXnSst2yTSEjTNkBkBcSmCd/Nu1aDF/hl15cDmdGYO26SXrtGuUs5AZT1kQrn2xIn1la6TQx1/rDT0TR9pMFxUL6fogeraJ6nBWS2k+uZQZUyauPtOO38dNNv1cltZqTzvH0WOZ49oMaqlND321yPCfSbF2ad5UXufaMFiIKLER9BqOK9Ea4m2CZEk61mrOQyYDiJjUpzFpqb5nad8olkjsfvG6RC7oIRsBsSY62SN9H6Lopd3MtyvmorcCM4gD0dkxnk7eiHARHEWg84RWkUXPinZEQeSXsCa8wOYXQqxIi31aAQN3R/rTEAv1lqCNs3taSTqoEmclmqf2FIFlCm3cGvBeBzoOt4I7vraqgJvW+awPF9B0MgJ9RRZYz+5a+75qKTEWmIstuFfm+q7RJve8ayH4LMACaxEJEaXs23AAAAABJRU5ErkJggg==);

background-size: contain;

}

/*bottom-pannel css*/

.nav-pannel {

position: fixed;

bottom: 70px;

height: 135px;

width: 100%;

background: none;

color: #fff;

z-index: 10000;

}

.nav-pannel-bk {

background: #000;

opacity: 0.9;

z-index: 9999;

}

.child-mod {

padding: 5px 10px;

margin: 15px;

}

.child-mod span{

display: inline-block;

padding: 0 20px 0 10px;

}

.font-size-btn {

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;

width: 30px;

height: 30px;

border-radius: 50%;

background: #fff;

display: inline-block;

vertical-align: middle;

margin-right: 8px;

}

.bk-container-active {

position: absolute;

width: 32px;

height: 32px;

border-radius: 50%;

border: 1px solid #ff7800;

display: block;

top: -2px;

left: -2px;

}

.bg-1 {

background-color: #e9dfc7;

}

.bg-2 {

background-color: #C7EDCC;

}

.bg-3 {

background-color: #fff;

}

.bg-4 {

background-color: rgba(0, 0, 0, 0.8);

}

.article-action-mid {

position: fixed;

z-index: 10001;

width: 100%;

height: 35%;

top: 30%;

}

  • 上一章
  • 下一章

目录

字体

白天

夜间

window.jQuery = $;

(function() {

'use strict'

var Util = (function() {

var prefix = 'html5_reader_';

var StorageGetter = function(key) {

return localStorage.getItem(prefix + key);

}

var StorageSetter = function(key, val) {

return localStorage.setItem(prefix + key, val);

}

var getBSONP = function(url, callback) {

return $.jsonp({

url: url,

cache: true,

callback: 'duokan_fiction_chapter',

success: function(result){

// debugger

var data = $.base64.decode(result);

var json = decodeURIComponent(escape(data));

callback(json);

}

});

}

return {

getBSONP: getBSONP,

StorageGetter: StorageGetter,

StorageSetter: StorageSetter

}

})();

var Dom = {

top_nav: $('#top_nav'),

bottom_nav: $('.bottom-nav'),

nav_pannel: $('.nav-pannel'),

font_btn: $('#font_btn'),

font_icon: $('.font-icon'),

bk_container: $('.bk-container')

}

var Win = $(window);

var Doc = $(document);

var readerModel;

var readerUI;

var RootContainer = $('#fiction_container');

// debugger

var initFontSize = parseInt(Util.StorageGetter('font_size'));

if(!initFontSize) {

initFontSize = 14;

}

RootContainer.css('font-size', initFontSize);

var initBgColor = Util.StorageGetter('background_color');

if(!initBgColor) {

initBgColor = '#e9dfc7';

}

// 项目的入口函数

function main() {

readerModel = ReaderModel();

readerUI = ReaderBaseFrame(RootContainer);

readerModel.init(function(data) {

readerUI(data);

});

EventHandler();

}

// 实现和阅读器相关的数据交互的方法

function ReaderModel() {

var Chapter_id;

var ChapterTotal;

var init = function(UIcallback) {

getFictionInfo(function() {

getCurChapterContent(Chapter_id, function(data) {

// 数据层

UIcallback && UIcallback(data);

});

<<<<<<< HEAD

=======

});

>>>>>>> c87d1f73123e7a0f39caa493f1b302f1fb04337a

var getFictionInfo = function(callback) {

$.get('data/chapter.json', function(data) {

// 获得章节信息之后的回调

Chapter_id = Util.StorageGetter('last_chapter_id');

ChapterTotal = data.chapters.length;

console.log(ChapterTotal)

if(Chapter_id == null) {

Chapter_id = data.chapters[1].chapter_id;

}

callback && callback();

}, 'json');

}

var getCurChapterContent = function(chapter_id, callback) {

$.get('data/data' + chapter_id + '.json', function(data){

// 获得章节内容之后的回调

if(data.result == 0) {

var url = data.jsonp;

Util.getBSONP(url, function(data) {

// debugger

callback && callback(data);

});

}

},'json');

}

var prevChapter = function(UIcallback) {

// chapter_id = parseInt(Chapter_id,10);

if(Chapter_id == 1) {return;}

Chapter_id -= 1;

Util.StorageSetter('last_chapter_id', Chapter_id);

getCurChapterContent(Chapter_id, UIcallback);

}

var nextChapter = function(UIcallback) {

// chapter_id = parseInt(Chapter_id,10);

if(Chapter_id == 4) {return;}

Chapter_id += 1;

Util.StorageSetter('last_chapter_id', Chapter_id);

getCurChapterContent(Chapter_id, UIcallback);

}

return {

init: init,

prevChapter: prevChapter, // 上翻页接口

nextChapter: nextChapter // 下翻页接口

}

}

// 渲染基本的UI结构

function ReaderBaseFrame(container) {

function parseChapterData(jsonData) {

var jsonObj = JSON.parse(jsonData);

var html = '

' + jsonObj.t + '
';

for (var i = 0; i < jsonObj.p.length; i++) {

html += "

" + jsonObj.p[i] + "

";

}

return html;

}

return function(data) {

container.html(parseChapterData(data));

container.css('background_color', initBgColor);

}

}

// 交互的事件绑定

function EventHandler() {

$('#catalog_btn').click(function() {

location.href = "http://dushu.xiaomi.com/fiction/chapter/306450";

});

$('#action_mid').click(function(){

if(Dom.top_nav.css('display') == 'none') {

// alert(1)

Dom.top_nav.show();

Dom.bottom_nav.show();

}else {

Dom.bottom_nav.hide();

Dom.top_nav.hide();

Dom.nav_pannel.hide();

Dom.font_icon.removeClass('icon-active');

}

});

// 字体面板的显示隐藏及字体图标的变化

Dom.font_btn.click(function() {

if(Dom.nav_pannel.css('display') == 'none') {

Dom.nav_pannel.show();

Dom.font_icon.addClass('icon-active');

}else{

Dom.nav_pannel.hide();

Dom.font_icon.removeClass('icon-active');

}

});

// 白天夜间转换即触发背景切换事件

$('#night_day_switch_btn').click(function() {

if($('#day_icon').css('display') == 'none') {

$('#day_icon').show();

$('#night_icon').hide();

RootContainer.css('background-color', 'rgba(0, 0, 0, 0.8)');

Dom.bk_container.html('');

$('.bk-container:last-child').html('

}else{

$('#day_icon').hide();

$('#night_icon').show();

RootContainer.css('background-color', '#e9dfc7');

Dom.bk_container.html('');

$('.bk-container:first-of-type').html('

}

});

// 背景切换

Dom.bk_container.click(function() {

Dom.bk_container.html('');

$(this).html('

//alert($(this).css('background-color'))

initBgColor = $(this).css('background-color');

RootContainer.css('background-color', initBgColor);

Util.StorageSetter('background_color', initBgColor);

});

// 字体切换

$('#large-font').click(function() {

// alert(1)

if(initFontSize >= 20) {return;}

initFontSize += 1;

RootContainer.css('font-size', initFontSize);

Util.StorageSetter('font_size', initFontSize);

});

$('#small-font').click(function() {

// alert(1)

if(initFontSize <= 12) {return;}

initFontSize -= 1;

RootContainer.css('font-size', initFontSize);

Util.StorageSetter('font_size', initFontSize);

});

Win.scroll(function() {

Dom.bottom_nav.hide();

Dom.top_nav.hide();

Dom.nav_pannel.hide();

Dom.font_icon.removeClass('icon-active');

});

// 获得章节的翻页数据 -> 把数据拿出来渲染

$('#prev_btn').click(function() {

readerModel.prevChapter(function(data) {

readerUI(data);

});

Win.scrollTop(0);

});

$('#next_btn').click(function() {

readerModel.nextChapter(function(data) {

readerUI(data);

});

Win.scrollTop(0);

});

}

main();

})();

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/很楠不爱3/article/detail/144296
推荐阅读
相关标签
  

闽ICP备14008679号