var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.arrayIteratorImpl=function(b){var c=0;return function(){return c>>0,$jscomp.propertyToPolyfillSymbol[g]=$jscomp.IS_SYMBOL_NATIVE? $jscomp.global.Symbol(g):$jscomp.POLYFILL_PREFIX+d+"$"+g),$jscomp.defineProperty(f,$jscomp.propertyToPolyfillSymbol[g],{configurable:!0,writable:!0,value:c})))};$jscomp.initSymbol=function(){}; $jscomp.polyfill("Symbol",function(b){if(b)return b;var c=function(h,k){this.$jscomp$symbol$id_=h;$jscomp.defineProperty(this,"description",{configurable:!0,writable:!0,value:k})};c.prototype.toString=function(){return this.$jscomp$symbol$id_};var d="jscomp_symbol_"+(1E9*Math.random()>>>0)+"_",f=0,g=function(h){if(this instanceof g)throw new TypeError("Symbol is not a constructor");return new c(d+(h||"")+"_"+f++,h)};return g},"es6","es3"); $jscomp.polyfill("Symbol.iterator",function(b){if(b)return b;b=Symbol("Symbol.iterator");for(var c="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),d=0;d=g}},"es6","es3"); $jscomp.polyfill("Array.prototype.fill",function(b){return b?b:function(c,d,f){var g=this.length||0;0>d&&(d=Math.max(0,g+d));if(null==f||f>g)f=g;f=Number(f);0>f&&(f=Math.max(0,g+f));for(d=Number(d||0);d=h}},"es6","es3"); $jscomp.polyfill("String.prototype.repeat",function(b){return b?b:function(c){var d=$jscomp.checkStringArgs(this,null,"repeat");if(0>c||1342177279>>=1)d+=d;return f}},"es6","es3"); $jscomp.polyfill("Array.prototype.flat",function(b){return b?b:function(c){c=void 0===c?1:c;for(var d=[],f=0;fd&&(d=Math.max(d+g,0));d$.browser.version},isPad=function(){return $.browser.device==$.browser.DEVICE_PAD||$.browser.device==$.browser.DEVICE_PC&&$.system.name==$.system.ANDROID?!0:!1},isIpad=function(){var b= navigator.userAgent.toLowerCase();return 0$.browser.version},isWeChat=function(){return $.browser.wechat}, isAndroidDefault=function(){return $.system.name==$.system.ANDROID&&$.browser.safari},isPhoneBook=function(){if($.system.name==$.system.ANDROID&&$.browser.uc)return!0;var b=window.location.search;return(isPhone()||isPad())&&$.system.name==$.system.ANDROID&&4>parseInt($.system.version)||0<=b.toLowerCase().indexOf("phonebook=true")||(isPhone()||isPad())&&"slide"==bookConfig.FlipStyle.toLowerCase()?!0:!1},isHigherThanIOS8=function(){return $.system.name==$.system.IOS&&8<=$.system.version},isInTheFrame= function(){return window.top!=window};function isBelowIE9(){return $.browser.msie?9>$.browser.version?!0:!1:!1}function isBelowIE8(){return $.browser.msie?8>$.browser.version?!0:!1:!1}function isBelowIE10(){return $.browser.msie?10>$.browser.version?!0:!1:!1}var global=function(){return this||(0,eval)("(this)")}(),virtual_function=function(){}; function getPackageByName(b){if(void 0==b||""==b)return global;var c=global;b=b.split(".");for(var d=0;dc?this.substr(0,b)+"...":this.toString()},remove:function(b){if("string"!=typeof b||!b)return this;var c=this.indexOf(b);if(0>c)return this;b=b.length;return this.substring(0,c)+this.substring(c+b,this.length)+""},removeStartFrom:function(b){if("string"==typeof b&&b)return b= this.indexOf(b),0>b?this:this.substring(0,b)+""},cycleToLength:function(b){if(!isNaN(b)){for(var c=parseInt(b/this.length),d=this;0this.length?this:this.substring(0,1).toUpperCase()+this.substring(1)},firstLowerCase:function(){return 1>this.length?this:this.substring(0,1).toLowerCase()+this.substring(1)},extract:function(){if(0==this.length||0==arguments.length)return[];for(var b=[],c=this.toString(),d=0;d=g?d.push(b.charAt(c)):128<=g&&2047>=g?d.push(String.fromCharCode(192|g>>6&31),String.fromCharCode(128|g&63)):2048<=g&&65535>=g&&d.push(String.fromCharCode(224|g>>12&15),String.fromCharCode(128|g>>6&63),String.fromCharCode(128|g&63))}return d.join("")},parseUtf8:function(b){if(!b)return"";var c,d=[],f=b.length;for(c=0;c>7&255))d.push(b.charAt(c));else if(6==(g[0]>>5&255)){g.push(b.charCodeAt(++c)); var h=[];h.push(g[0]&31);h.push(g[1]&63);d.push(String.fromCharCode(h[0]<<6|h[1]))}else 14==(g[0]>>4&255)&&(g.push(b.charCodeAt(++c)),g.push(b.charCodeAt(++c)),h=[],h.push(g[0]<<4|g[1]>>2&15),h.push((g[1]&3)<<6|g[2]&63),d.push(String.fromCharCode(h[0]<<8|h[1])))}return d.join("")}}}); Array.expand({remove:function(b){return isNaN(b)||b>this.length?!1:this.splice(b,1)[0]},indexOf:function(b){for(var c=0;cc&&(b=c);return b},isBetween:function(b,c,d){if(isNaN(c)||isNaN(d)||isNaN(b))return!1;var f=Math.max(c,d);return b>=Math.min(c,d)&&b<=f?!0:!1},fixed:function(b,c){if(isNaN(b))return b;isNaN(c)&&(c=0);c=Math.pow(10,c);return Math.round(b*c)/c},decimals:function(b){if(isNaN(b))return-1;b=Number(b).toString();var c=b.indexOf(".");return-1==c?0:b.length-c-1},random:function(b, c,d){if(isNaN(b)||isNaN(c))return 0;void 0==d&&Number.decimals(b)==Number.decimals(c)&&(d=Number.decimals(b));var f=Math.min(b,c);b=f+(Math.max(b,c)-f)*Math.random();return!d||0>d||isNaN(d)?Math.floor(b):Number.fixed(b,d)}}}); var Color=function(b){b&&"object"==typeof b&&b.toString&&(b=b.toString());return{value:ColorTable.value(b),toString:function(){function c(f,g,h){if(f.lengthg)for(;f.lengthd?Number(0):d;d=d.toString(16);8=c.length?"0"+c:c;g=1>=g.length?"0"+g:g;d=1>=d.length?"0"+d:d;f=1>=f.length?"0"+f:f;return"FF"==f?"#"+c+g+d:"#"+f+c+g+d},reduce:function(c){return this.add("object"==typeof c?c:{r:-c,g:-c,b:-c,a:1})},rgba:function(c){var d=this.split();c=void 0==c||""===c?d.a:parseFloat(c);1=d.length?"0"+ d:d;f=1>=f.length?"0"+f:f;g=1>=g.length?"0"+g:g;c=1>=c.length?"0"+c:c;return"FF"==c?"#"+d+f+g:"#"+c+d+f+g}}};function colorSplit(b){return Color(b).split()}function colorAdd(b,c){return Color(b).add(c)}function colorDiv(b,c){return Color(b).reduce(c)}function equals(b,c){return 1E-7>Math.abs(b-c)} var Point=function(b,c){return{x:b,y:c,isNearTo:function(d,f){if(!d)return!1;void 0==f&&(f=5);return Math.abs(this.x-d.x)d/f)if(bd/f){var g=d,h=d/b*c;c=0;f=(f-h)/2}else h=f,g=f/c*b,c=(d-g)/2,f=0;return{scale:b/g,width:g,height:h,left:c,top:f}} function getInverseItem(b,c,d){b=JSON.parse(JSON.stringify(b));var f=b.location;if(window.articleConfig&&window.articleConfig.hotArea){var g=window.articleConfig.hotArea;b.overColor=g.overColor;b.downColor=g.downColor;b.outColor=g.outColor;b.overAlpha=g.overAlpha;b.downAlpha=g.downAlpha;b.outAlpha=g.outAlpha}if(f.pageWidth>c||f.pageHeight>d)c=getContainSizeRate(f.pageWidth,f.pageHeight,c,d),d=(1-c.height)/2,b.location.x=b.location.x*c.width+(1-c.width)/2,b.location.y=b.location.y*c.height+d,b.location.width*= c.width,b.location.height*=c.height;return b}function getOffset(b){for(var c=b.target,d=0,f=0;c;)d+=c.offsetLeft,f+=c.offsetTop,c=c.offsetParent;return{X:window.pageXOffset+b.clientX-d,Y:window.pageYOffset+b.clientY-f}} function getPositionFromEvt(b){b=b.originalEvent&&b.originalEvent.changedTouches?b.originalEvent.changedTouches:b.changedTouches?b.changedTouches:[b];return{x:(b[0].pageX||b[0].clientX)+(document.documentElement.scrollLeft||document.body.scrollLeft),y:(b[0].pageY||b[0].clientY)+(document.documentElement.scrollTop||document.body.scrollTop)}} function getDeString(b){"[object String]"!==Object.prototype.toString.call(b)||b.match(/^[\[\{]/)||(b=window.Module._DeString(window.allocateUTF8(b)),b=window.UTF8ToString(b));return b}function judgeHasPageEditor(){if(window.pageEditor){var b=window.pageEditor;b instanceof Array||(b=b.pageAnnos);for(var c=0;c

");$("body").append(this.$text)},text:function(b){this.$text.find("span").html(b);this.animateShow();this.delay&&window.clearTimeout(this.delay);this.delay=window.setTimeout(function(){this.animateHide();this.delay=null}.bind(this),2E3)},animateShow:function(){this.$text.css({opacity:1,display:"block"})},animateHide:function(){this.$text.animate({opacity:"0"},1E3,function(){this.$text.hide()}.bind(this))}}); bdor[30]=function(b,c){return bdor[b]-c}; Class("RangeSlider",{create:function(b,c){this.slider=b;this.min=0;this.max=c.max?c.max:1;isNaN(this.max)&&(this.max=100);this.onChange=c.onChange;this.init();void 0==c.range||isNaN(c.range)?(this.currentRange=0,this.setRange(0)):(this.currentRange=c.range,this.setRange(c.range))},init:function(){this.slider_total=$('
');this.slider_range=$('
');this.slider_hander=$('
');this.slider_range.css("pointer-events", "none");this.slider_hander.css("pointer-events","none");this.slider.append(this.slider_total);this.slider.append(this.slider_range);this.slider.append(this.slider_hander);this.initEvents()},initEvents:function(){this.isMouseDown=!1;this.slider_total.bind(_event._down,function(b){this.isMouseDown=!0;b=isTouch?b.originalEvent?b.originalEvent.changedTouches:b.changedTouches:[b];this.onChangeRange(b);return!1}.bind(this));this.slider_total.bind(_event._move,function(b){if(this.isMouseDown)return b=isTouch? b.originalEvent?b.originalEvent.changedTouches:b.changedTouches:[b],this.onChangeRange(b),!1}.bind(this));this.slider_total.bind(_event._up,function(b){return this.isMouseDown=!1}.bind(this));this.slider_total.bind(_event._leave,function(b){this.isMouseDown=!1}.bind(this));this.slider_hander.bind(_event._down,function(b){b=isTouch?b.originalEvent?b.originalEvent.changedTouches:b.changedTouches:[b];this.onChangeRange(b);return!1}.bind(this))},setMax:function(b){this.max=b},setRange:function(b){if(void 0!= b){this.range=parseFloat(b);this.animation&&this.animation.stop();var c=this.currentRange,d=this.range;this.animation=function(f,g){this.currentRange=$.easing.swing(null,f,c,d-c,g);this.moveToRange(this.currentRange);this.currentRange==this.range&&this.animation&&this.animation.stop()}.animation(this,200)}},onChangeRange:virtual_function,moveToRange:virtual_function}); Class("VerticalSlider",{onChangeRange:function(b){b=b[0];if(void 0!=b){var c=$(b.target),d=b.offsetY;void 0==d&&(d=b.pageY-c.offset().top);b=(c.height()-d)/this.slider_total.height()*this.max;this.setRange(b);if(this.onChange)this.onChange(b)}},moveToRange:function(b){this.slider_total.offset();this.slider.offset();var c=parseInt(this.slider_range.css("bottom").replace("px","")),d=this.slider_hander.width(),f=this.slider_total.height()-d;b=Math.floor(b*f/this.max);b=Math.min(b,f);d=b+d/2;this.slider_hander.css({bottom:b+ c});this.slider_range.css({height:d})}}).extend("RangeSlider"); Class("HorizontalSlider",{onChangeRange:function(b){b=b[0];if(void 0!=b){var c=$(b.target),d=b.offsetX;void 0==d&&(d=b.pageX-c.offset().left);b=d/this.slider_total.width()*this.max;this.setRange(b);if(this.onChange)this.onChange(b)}},moveToRange:function(b){var c=this.slider_total.offset().left-this.slider.offset().left;parseInt(this.slider_range.css("bottom").replace("px",""));var d=this.slider_hander.width(),f=this.slider_total.width()-d;b=Math.floor(b*f/this.max);b=Math.min(b,f);d=b+d/2;this.slider_hander.css({left:b+ c});this.slider_range.css({width:d})}}).extend("RangeSlider");(function(b){b.fn.slider=function(c){if(c)return this.empty(),"horizontal"==c.direction?new HorizontalSlider(this,c):new VerticalSlider(this,c)}})(jQuery); (function(b){var c="object"==typeof exports&&exports,d="object"==typeof module&&module&&module.exports==c&&module,f="object"==typeof global&&global;if(f.global===f||f.window===f)b=f;var g=function(l){this.message=l};g.prototype=Error();g.prototype.name="InvalidCharacterError";var h={encode:function(l){l=String(l);if(/[^\0-\xFF]/.test(l))throw new g("The string to be encoded contains characters outside of the Latin1 range.");for(var m=l.length%3,n="",p=-1,q,r,u,y=l.length-m;++p>18&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(q>>12&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(q>>6&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(q&63);2==m?(q=l.charCodeAt(p)<<8,r=l.charCodeAt(++p),q+=r,n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(q>> 10)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(q>>4&63)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(q<<2&63)+"="):1==m&&(q=l.charCodeAt(p),n+="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(q>>2)+"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".charAt(q<<4&63)+"==");return n},decode:function(l){l=String(l);for(var m=l.length,n=0,p,q,r="",u=-1;++u>(-2*n&6)));return r},version:"0.1.0"};if("function"==typeof define&&"object"==typeof define.amd&&define.amd)define(function(){return h});else if(c&&!c.nodeType)if(d)d.exports=h;else for(var k in h)h.hasOwnProperty(k)&&(c[k]=h[k]);else b.base64=h})(this);function parsHexToNormalString(b){for(var c="";2<=b.length;)c+=String.fromCharCode(parseInt(b.substring(0,2),16)),b=b.substring(2,b.length);return c} function parseHexString(b){for(var c=[];2<=b.length;)c.push(parseInt(b.substring(0,2),16)),b=b.substring(2,b.length);return c}function byteArray2String(b){for(var c="",d=0;dg;g++)d[g]=g,f[g]=b.charCodeAt(g%b.length);for(g=b=0;256>g;g++){b=b+d[g]+f[g]&255;var h=d[g];d[g]=d[b];d[b]=h}b=f=0;h="";for(g=0;g>>32-I,z)}function f(x,z,B,H,F,I,E){x=c(x,c(c(z&H|B&~H,F),E));return c(x<>>32-I,z)}function g(x,z,B,H,F,I,E){x=c(x,c(c(z^B^H,F),E));return c(x<>>32-I,z)}function h(x,z,B,H,F,I,E){x= c(x,c(c(B^(z|~H),F),E));return c(x<>>32-I,z)}function k(x){var z="",B;for(B=0;3>=B;B++){var H=x>>>8*B&255;H="0"+H.toString(16);z+=H.substr(H.length-2,2)}return z}var l=[],m;l=function(x){var z=x.length;var B=z+8;for(var H=16*((B-B%64)/64+1),F=Array(H-1),I,E=0;E>>29;return F}(this);var n=1732584193;var p=4023233417;var q=2562383102;var r=271733878;for(m=0;mb||this.moduleCount<=b||0>c||this.moduleCount<=c)throw Error(b+","+c);return this.modules[b][c]},getModuleCount:function(){return this.moduleCount},make:function(){if(1>this.typeNumber){var b;for(b=1;40>b;b++){for(var c=QRRSBlock.getRSBlocks(b,this.errorCorrectLevel),d=new QRBitBuffer,f=0,g=0;g=d;d++)if(!(-1>=b+d||this.moduleCount<=b+d))for(var f=-1;7>=f;f++)-1>=c+f||this.moduleCount<=c+f||(this.modules[b+d][c+f]=0<=d&&6>=d&&(0==f||6==f)||0<=f&&6>= f&&(0==d||6==d)||2<=d&&4>=d&&2<=f&&4>=f?!0:!1)},getBestMaskPattern:function(){for(var b=0,c=0,d=0;8>d;d++){this.makeImpl(!0,d);var f=QRUtil.getLostPoint(this);if(0==d||b>f)b=f,c=d}return c},createMovieClip:function(b,c,d){b=b.createEmptyMovieClip(c,d);this.make();for(c=0;c=h;h++)for(var k=-2;2>=k;k++)this.modules[f+h][g+k]=-2==h||2==h||-2==k||2==k||0==h&&0==k?!0:!1}},setupTypeNumber:function(b){for(var c= QRUtil.getBCHTypeNumber(this.typeNumber),d=0;18>d;d++){var f=!b&&1==(c>>d&1);this.modules[Math.floor(d/3)][d%3+this.moduleCount-8-3]=f}for(d=0;18>d;d++)f=!b&&1==(c>>d&1),this.modules[d%3+this.moduleCount-8-3][Math.floor(d/3)]=f},setupTypeInfo:function(b,c){c=QRUtil.getBCHTypeInfo(this.errorCorrectLevel<<3|c);for(var d=0;15>d;d++){var f=!b&&1==(c>>d&1);6>d?this.modules[d][8]=f:8>d?this.modules[d+1][8]=f:this.modules[this.moduleCount-15+d][8]=f}for(d=0;15>d;d++)f=!b&&1==(c>>d&1),8>d?this.modules[8][this.moduleCount- d-1]=f:9>d?this.modules[8][15-d-1+1]=f:this.modules[8][15-d-1]=f;this.modules[this.moduleCount-8][8]=!b},mapData:function(b,c){for(var d=-1,f=this.moduleCount-1,g=7,h=0,k=this.moduleCount-1;0l;l++)if(null==this.modules[f][k-l]){var m=!1;h>>g&1));QRUtil.getMask(c,f,k-l)&&(m=!m);this.modules[f][k-l]=m;g--;-1==g&&(h++,g=7)}f+=d;if(0>f||this.moduleCount<=f){f-=d;d=-d;break}}}};QRCode.PAD0=236;QRCode.PAD1=17; QRCode.createData=function(b,c,d){c=QRRSBlock.getRSBlocks(b,c);for(var f=new QRBitBuffer,g=0;g8*b)throw Error("code length overflow. ("+f.getLengthInBits()+">"+8*b+")");for(f.getLengthInBits()+4<=8*b&&f.put(0,4);0!=f.getLengthInBits()%8;)f.putBit(!1);for(;!(f.getLengthInBits()>=8*b);){f.put(QRCode.PAD0,8);if(f.getLengthInBits()>= 8*b)break;f.put(QRCode.PAD1,8)}return QRCode.createBytes(f,c)}; QRCode.createBytes=function(b,c){for(var d=0,f=0,g=0,h=Array(c.length),k=Array(c.length),l=0;l>>=1;return c},getPatternPosition:function(b){return QRUtil.PATTERN_POSITION_TABLE[b-1]},getMask:function(b,c,d){switch(b){case QRMaskPattern.PATTERN000:return 0==(c+d)% 2;case QRMaskPattern.PATTERN001:return 0==c%2;case QRMaskPattern.PATTERN010:return 0==d%3;case QRMaskPattern.PATTERN011:return 0==(c+d)%3;case QRMaskPattern.PATTERN100:return 0==(Math.floor(c/2)+Math.floor(d/3))%2;case QRMaskPattern.PATTERN101:return 0==c*d%2+c*d%3;case QRMaskPattern.PATTERN110:return 0==(c*d%2+c*d%3)%2;case QRMaskPattern.PATTERN111:return 0==(c*d%3+(c+d)%2)%2;default:throw Error("bad maskPattern:"+b);}},getErrorCorrectPolynomial:function(b){for(var c=new QRPolynomial([1],0),d=0;d< b;d++)c=c.multiply(new QRPolynomial([1,QRMath.gexp(d)],0));return c},getLengthInBits:function(b,c){if(1<=c&&10>c)switch(b){case QRMode.MODE_NUMBER:return 10;case QRMode.MODE_ALPHA_NUM:return 9;case QRMode.MODE_8BIT_BYTE:return 8;case QRMode.MODE_KANJI:return 8;default:throw Error("mode:"+b);}else if(27>c)switch(b){case QRMode.MODE_NUMBER:return 12;case QRMode.MODE_ALPHA_NUM:return 11;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 10;default:throw Error("mode:"+b);}else if(41>c)switch(b){case QRMode.MODE_NUMBER:return 14; case QRMode.MODE_ALPHA_NUM:return 13;case QRMode.MODE_8BIT_BYTE:return 16;case QRMode.MODE_KANJI:return 12;default:throw Error("mode:"+b);}else throw Error("type:"+c);},getLostPoint:function(b){for(var c=b.getModuleCount(),d=0,f=0;f=l;l++)if(!(0>f+l||c<=f+l))for(var m=-1;1>=m;m++)0>g+m||c<=g+m||(0!=l||0!=m)&&k==b.isDark(f+l,g+m)&&h++;5b)throw Error("glog("+ b+")");return QRMath.LOG_TABLE[b]},gexp:function(b){for(;0>b;)b+=255;for(;256<=b;)b-=255;return QRMath.EXP_TABLE[b]},EXP_TABLE:Array(256),LOG_TABLE:Array(256)},i=0;8>i;i++)QRMath.EXP_TABLE[i]=1<i;i++)QRMath.EXP_TABLE[i]=QRMath.EXP_TABLE[i-4]^QRMath.EXP_TABLE[i-5]^QRMath.EXP_TABLE[i-6]^QRMath.EXP_TABLE[i-8];for(i=0;255>i;i++)QRMath.LOG_TABLE[QRMath.EXP_TABLE[i]]=i; function QRPolynomial(b,c){if(void 0==b.length)throw Error(b.length+"/"+c);for(var d=0;dthis.getLength()-b.getLength())return this;for(var c=QRMath.glog(this.get(0))-QRMath.glog(b.get(0)),d=Array(this.getLength()),f=0;f>>7-b%8&1)},put:function(b,c){for(var d=0;d>>c-d-1&1))},getLengthInBits:function(){return this.length},putBit:function(b){var c=Math.floor(this.length/8);this.buffer.length<=c&&this.buffer.push(0);b&&(this.buffer[c]|=128>>>this.length%8);this.length++}}; (function(b){b.fn.qrcode=function(c){"string"===typeof c&&(c={text:c});c=b.extend({},{render:"canvas",width:256,height:256,typeNumber:-1,correctLevel:QRErrorCorrectLevel.H,background:"#ffffff",foreground:"#000000"},c);var d=function(){var f=new QRCode(c.typeNumber,c.correctLevel);f.addData(c.text);f.make();var g=document.createElement("canvas");g.width=c.width;g.height=c.height;for(var h=g.getContext("2d"),k=c.width/f.getModuleCount(),l=c.height/f.getModuleCount(),m=0;m").css("width",c.width+"px").css("height",c.height+"px").css("border","0px").css("border-collapse", "collapse").css("background-color",c.background),h=c.width/f.getModuleCount(),k=c.height/f.getModuleCount(),l=0;l").css("height",k+"px").appendTo(g),n=0;n").css("width",h+"px").css("background-color",f.isDark(l,n)?c.foreground:c.background).appendTo(m);f=g}else f=d(),g=new Image,g.src=f.toDataURL("image/png"),f=g;else f=d();jQuery(f).appendTo(this)})}})(jQuery); !function(b,c,d,f){function g(t,v,w){return setTimeout(n(t,w),v)}function h(t,v,w){return Array.isArray(t)?(k(t,w[v],w),!0):!1}function k(t,v,w){var A;if(t)if(t.forEach)t.forEach(v,w);else if(t.length!==f)for(A=0;A\s*\(/gm, "{anonymous}()@"):"Unknown Stack Trace";var J=b.console&&(b.console.warn||b.console.log);return J&&J.call(b.console,A,G),t.apply(this,arguments)}}function m(t,v,w){var A=v.prototype;v=t.prototype=Object.create(A);v.constructor=t;v._super=A;w&&la(v,w)}function n(t,v){return function(){return t.apply(v,arguments)}}function p(t,v){return typeof t==Za?t.apply(v?v[0]||f:f,v):t}function q(t,v,w){k(y(v),function(A){"undefined"!=typeof window.addEventListener?t.addEventListener(A,w,!1):t.attachEvent(A,w)})} function r(t,v,w){k(y(v),function(A){"undefined"!=typeof window.removeEventListener?t.removeEventListener(A,w,!1):t.detachEvent(A,w)})}function u(t,v){for(;t;){if(t==v)return!0;t=t.parentNode}return!1}function y(t){return t.trim().split(/\s+/g)}function D(t,v,w){if(t.indexOf&&!w)return t.indexOf(v);for(var A=0;AD(G,O)&&A.push(t[J]);G[J]=O;J++}return w&&(A=v?A.sort(function(V,ha){return V[v]>ha[v]}):A.sort()),A}function z(t,v){if(v&&v[0]){for(var w,A,G=v[0].toUpperCase()+v.slice(1),J=0;Jna(O)?G:O;A?(G=A.pointers,G=T(J[0],J[1],Aa)/T(G[0], G[1],Aa)):G=1;w.scale=G;A?(A=A.pointers,J=X(J[1],J[0],Aa)+X(A[1],A[0],Aa)):J=0;w.rotation=J;w.maxPointers=v.prevInput?w.pointers.length>v.prevInput.maxPointers?w.pointers.length:v.prevInput.maxPointers:w.pointers.length;O=v.lastInterval||w;J=w.timeStamp-O.timeStamp;w.eventType!=da&&(J>bb||O.velocity===f)?(G=w.deltaX-O.deltaX,O=w.deltaY-O.deltaY,V=G/J||0,ha=O/J||0,J=V,A=ha,V=na(V)>na(ha)?V:ha,G=U(G,O),v.lastInterval=w):(V=O.velocity,J=O.velocityX,A=O.velocityY,G=O.direction);w.velocity=V;w.velocityX= J;w.velocityY=A;w.direction=G;v=t.element;u(w.srcEvent.target,v)&&(v=w.srcEvent.target);w.target=v;t.emit("hammer.input",w);t.recognize(w);t.session.prevInput=w}function E(t){for(var v=[],w=0;wG;)w+=t[G].clientX,A+=t[G].clientY, G++;return{x:qa(w/v),y:qa(A/v)}}function U(t,v){return t===v?Ba:na(t)>=na(v)?0>t?ta:ua:0>v?va:wa}function T(t,v,w){w||(w=Qa);var A=v[w[0]]-t[w[0]];t=v[w[1]]-t[w[1]];return Math.sqrt(A*A+t*t)}function X(t,v,w){w||(w=Qa);return 180*Math.atan2(v[w[1]]-t[w[1]],v[w[0]]-t[w[0]])/Math.PI}function K(){this.evEl=cb;this.evWin=db;this.pressed=!1;H.apply(this,arguments)}function M(){this.evEl=Ra;this.evWin=Sa;H.apply(this,arguments);this.store=this.manager.session.pointerEvents=[]}function S(){this.evTarget= eb;this.evWin=fb;this.started=!1;H.apply(this,arguments)}function P(){this.evTarget=gb;this.targetIds={};H.apply(this,arguments)}function Y(t,v){var w=C(t.touches),A=this.targetIds;if(v&(ca|oa)&&1===w.length)return A[w[0].identifier]=!0,[w,w];var G;t=C(t.changedTouches);var J=[],O=this.target;if(G=w.filter(function(V){return u(V.target,O)}),v===ca)for(w=0;wO&&(v.push(t),O=v.length-1):A&(W|da)&&(w=!0);0>O||(v[O]=t,this.callback(this.manager,A,{pointers:v,changedPointers:[t],pointerType:G,srcEvent:t}),w&&v.splice(O,1))}});var rb={touchstart:ca,touchmove:oa,touchend:W,touchcancel:da},eb="touchstart",fb="touchstart touchmove touchend touchcancel";m(S,H,{handler:function(t){var v=rb[t.type];if(v===ca&&(this.started=!0),this.started){var w= C(t.touches);var A=C(t.changedTouches);A=(v&(W|da)&&(w=x(w.concat(A),"identifier",!0)),[w,A]);v&(W|da)&&0===A[0].length-A[1].length&&(this.started=!1);this.callback(this.manager,v,{pointers:A[0],changedPointers:A[1],pointerType:"touch",srcEvent:t})}}});var sb={touchstart:ca,touchmove:oa,touchend:W,touchcancel:da},gb="touchstart touchmove touchend touchcancel";m(P,H,{handler:function(t){var v=sb[t.type],w=Y.call(this,t,v);w&&this.callback(this.manager,v,{pointers:w[0],changedPointers:w[1],pointerType:"touch", srcEvent:t})}});var hb=2500;m(Z,H,{handler:function(t,v,w){var A="touch"==w.pointerType,G="mouse"==w.pointerType;if(!(G&&w.sourceCapabilities&&w.sourceCapabilities.firesTouchEvents)){if(A)v&ca?(this.primaryTouch=w.changedPointers[0].identifier,N.call(this,w)):v&(W|da)&&N.call(this,w);else{if(A=G)a:{A=w.srcEvent.clientX;G=w.srcEvent.clientY;for(var J=0;J=Math.abs(A-O.x)&&25>=V){A=!0;break a}}A=!1}if(A)return}this.callback(t, v,w)}},destroy:function(){this.touch.destroy();this.mouse.destroy()}});var Xa=z(kb.style,"touchAction"),Ya=Xa!==f,Ta="auto",Ia="manipulation",ra="none",Ca="pan-x",Da="pan-y";Q.prototype={set:function(t){"compute"==t&&(t=this.compute());Ya&&this.manager.element.style&&(this.manager.element.style[Xa]=t);this.actions=t.toLowerCase().trim()},update:function(){this.set(this.manager.options.touchAction)},compute:function(){var t=[];return k(this.manager.recognizers,function(v){p(v.options.enable,[v])&& (t=t.concat(v.getTouchAction()))}),xa(t.join(" "))},preventDefaults:function(t){if(!Ya){var v=t.srcEvent,w=t.offsetDirection;if(!this.manager.session.prevented){void v.preventDefault();var A=this.actions,G=-1t.distance,V=250>t.deltaTime;if(1===t.pointers.length&&O&&V)return}if(!A||!J)return G||J&&w&fa||A&&w&pa?this.preventSrc(v):void 0}}},preventSrc:function(t){this.manager.session.prevented=!0;t.preventDefault()}};var Ea=1,ea=2,sa= 4,ma=8,ka=ma,za=16;R.prototype={defaults:{},set:function(t){return la(this.options,t),this.manager&&this.manager.touchAction.update(),this},recognizeWith:function(t){if(h(t,"recognizeWith",this))return this;var v=this.simultaneous;return t=ia(t,this),v[t.id]||(v[t.id]=t,t.recognizeWith(this)),this},dropRecognizeWith:function(t){return h(t,"dropRecognizeWith",this)?this:(t=ia(t,this),delete this.simultaneous[t.id],this)},requireFailure:function(t){if(h(t,"requireFailure",this))return this;var v=this.requireFail; return t=ia(t,this),-1===D(v,t)&&(v.push(t),t.requireFailure(this)),this},dropRequireFailure:function(t){if(h(t,"dropRequireFailure",this))return this;t=ia(t,this);t=D(this.requireFail,t);return-1A&&v(w.options.event+ya(A));v(w.options.event);t.additionalEvent&& v(t.additionalEvent);A>=ma&&v(w.options.event+ya(A))},tryEmit:function(t){return this.canEmit()?this.emit(t):void(this.state=32)},canEmit:function(){for(var t=0;tJ?ta:ua,w=J!=this.pX,A=Math.abs(t.deltaX)):(G=0===O?Ba:0>O?va:wa,w=O!=this.pY,A=Math.abs(t.deltaY))),t.direction=G,w&&A>v.threshold&&G&v.direction},attrTest:function(t){return ba.prototype.attrTest.call(this,t)&&(this.state&ea||!(this.state&ea)&&this.directionTest(t))},emit:function(t){this.pX=t.deltaX;this.pY=t.deltaY;var v=aa(t.direction);v&&(t.additionalEvent=this.options.event+v);this._super.emit.call(this, t)}});m(Ja,ba,{defaults:{event:"pinch",threshold:0,pointers:2},getTouchAction:function(){return[ra]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.scale-1)>this.options.threshold||this.state&ea)},emit:function(t){1!==t.scale&&(t.additionalEvent=this.options.event+(1>t.scale?"in":"out"));this._super.emit.call(this,t)}});m(Ka,R,{defaults:{event:"press",pointers:1,time:251,threshold:9},getTouchAction:function(){return[Ta]},process:function(t){var v=this.options,w=t.pointers.length=== v.pointers,A=t.distancev.time;if(this._input=t,!A||!w||t.eventType&(W|da)&&!G)this.reset();else if(t.eventType&ca)this.reset(),this._timer=g(function(){this.state=ka;this.tryEmit()},v.time,this);else if(t.eventType&W)return ka;return 32},reset:function(){clearTimeout(this._timer)},emit:function(t){this.state===ka&&(t&&t.eventType&W?this.manager.emit(this.options.event+"up",t):(this._input.timeStamp=Ha(),this.manager.emit(this.options.event,this._input)))}});m(La,ba,{defaults:{event:"rotate", threshold:0,pointers:2},getTouchAction:function(){return[ra]},attrTest:function(t){return this._super.attrTest.call(this,t)&&(Math.abs(t.rotation)>this.options.threshold||this.state&ea)}});m(Ma,ba,{defaults:{event:"swipe",threshold:10,velocity:.3,direction:fa|pa,pointers:1},getTouchAction:function(){return Fa.prototype.getTouchAction.call(this)},attrTest:function(t){var v,w=this.options.direction;return w&(fa|pa)?v=t.overallVelocity:w&fa?v=t.overallVelocityX:w&pa&&(v=t.overallVelocityY),this._super.attrTest.call(this, t)&&w&t.offsetDirection&&t.distance>this.options.threshold&&t.maxPointers==this.options.pointers&&na(v)>this.options.velocity&&t.eventType&W},emit:function(t){var v=aa(t.offsetDirection);v&&this.manager.emit(this.options.event+v,t);this.manager.emit(this.options.event,t)}});m(Ga,R,{defaults:{event:"tap",pointers:1,taps:1,interval:300,time:250,threshold:9,posThreshold:10},getTouchAction:function(){return[Ia]},process:function(t){var v=this.options,w=t.pointers.length===v.pointers,A=t.distance=u){g.animateInterval.stop();g.parameters.left=g.parameters.naturalLeft+50*(g.parameters.naturalWidth- g.parameters.width*h)/100;g.parameters.top=g.parameters.naturalTop+50*(g.parameters.naturalHeight-g.parameters.height*h)/100;g.parameters.width*=h;g.parameters.height*=h;g.css({width:g.parameters.width+"px",height:g.parameters.height+"px",left:g.parameters.left+"px",top:g.parameters.top+"px"});for(y=0;y=g.parameters.width*g.parameters.scale/g.parameters.naturalWidth&& g.zoomOut(g)}}.animation(this,320)}};this.panForMove=function(g,h,k,l){g.css({left:g.parameters.left+h+"px",top:g.parameters.top+k+"px"})};var c=!1,d=0,f=0;bookConfig.SupportOperatePageZoom&&this.dblclick(function(g){g.pointers=[{pageX:g.pageX,pageY:g.pageY}];this.onDoubleTap(g)}.bind(this));this.bind(_event._down,function(g){c=!0;d=g.pageX;f=g.pageY}.bind(this));this.bind(_event._move,function(g){g.pointers=[{pageX:g.pageX,pageY:g.pageY}];c&&(g.deltaX=g.pageX-d,g.deltaY=g.pageY-f,this.onPan(g))}.bind(this)); this.bind(_event._end,function(g){c=!1;this.parameters.left+=g.pageX-d;this.parameters.top+=g.pageY-f}.bind(this))}; jQuery.fn.zoom=function(b,c){this.options=b;this.isBook=c;this.parameters={width:$(this).width()||0,height:$(this).height()||0,naturalWidth:$(this).width()||0,naturalHeight:$(this).height()||0,left:$(this).offset().left-0||0,top:$(this).offset().top-0||0,toScale:1,scale:1,rotate:0,tran:{x:0,y:0},origin:{x:50,y:50},zoomFlag:!1,zoomming:!1,zoomOut:!1,resize:!1,eventCancel:!1,zoomDelay:!1,onPan:!1,onSwipe:!1,onDoubleTap:!1,onPinch:!1,zoomArea:{left:0,top:0,right:0,bottom:0}};this.onPan=function(d){if(!this.parameters.resize&& !this.parameters.eventCancel&&!this.parameters.zoomming&&d&&d.pointers&&1==d.pointers.length&&(this.swipeInterval&&this.swipeInterval.stop(),this.animateInterval&&this.animateInterval.stop(),this.parameters.zoomFlag)){"panstart"==d.type&&(this.parameters.onPan=!0);var f=this.getDelta(d);f=this.panForMove(this,f.deltaX,f.deltaY,!0);if(this.options&&this.options.onPan)this.options.onPan();if("panend"==d.type||"pancancel"==d.type)this.parameters.onPan=!1,this.setZoomParameters(this,f),this.restrictInBoundary(this)}}; this.onSwipe=function(d){if(!this.parameters.resize&&!this.parameters.eventCancel&&!this.parameters.zoomming)if(this.parameters.zoomFlag){var f=this.parameters.tran,g=this.tranLimit(this,this.parameters.scale,this.parameters.tran);if(g.x==parseInt(f.x)&&g.y==parseInt(f.y)){this.animateInterval&&this.animateInterval.stop();this.swipeInterval&&this.swipeInterval.stop();var h=0,k=0;d=this.getVelocity(d);h=d.velocityX;k=d.velocityY;this.swipeInterval=function(l,m){var n=this.parameters.tran,p=this.tranLimit(this, this.parameters.scale,this.parameters.tran);p.x!=parseInt(n.x)||p.y!=parseInt(n.y)?(this.swipeInterval.stop(),this.restrictInBoundary(this)):(n=(m-l)/m,n=this.panForMove(this,h*n*16.7,k*n*16.7,!0),this.setZoomParameters(this,n),l>=m&&(this.swipeInterval.stop(),this.restrictInBoundary(this)))}.animation(this,320)}}else d=this.getDirection(d),this.options&&this.options.swipeend&&this.options.swipeend(d)};this.getDirection=function(d){var f,g=bookConfig.upsideOnMobile();d.direction&Hammer.DIRECTION_RIGHT&& !g&&(f="right");d.direction&Hammer.DIRECTION_LEFT&&!g&&(f="left");d.direction&Hammer.DIRECTION_UP&&!g&&(f="up");d.direction&Hammer.DIRECTION_DOWN&&!g&&(f="down");d.direction&Hammer.DIRECTION_RIGHT&&g&&(f="down");d.direction&Hammer.DIRECTION_LEFT&&g&&(f="up");d.direction&Hammer.DIRECTION_UP&&g&&(f="left");d.direction&Hammer.DIRECTION_DOWN&&g&&(f="right");return f};this.getVelocity=function(d){var f=0,g=0,h=bookConfig.upsideOnMobile();0==d.velocityX||h||(f=d.velocityX);0==d.velocityY||h||(g=d.velocityY); 0!=d.velocityX&&h&&(f=d.velocityY);0!=d.velocityY&&h&&(g=-d.velocityX);return{velocityX:f,velocityY:g}};this.getDelta=function(d){var f=0,g=0,h=bookConfig.upsideOnMobile();0==d.deltaX||h||(f=d.deltaX);0==d.deltaY||h||(g=d.deltaY);0!=d.deltaX&&h&&(f=d.deltaY);0!=d.deltaY&&h&&(g=-d.deltaX);return{deltaX:f,deltaY:g}};this.onDoubleTap=function(d){if(!(BookInfo.getBook().status_resize||BookInfo.getBook().flipping||(BookInfo.getBook().endFlip(),global.windowTapInterval&&window.clearTimeout(global.windowTapInterval), this.parameters.resize||this.parameters.zoomming)))if(BookInfo.getBook().unSelect(),this.status_zoom=!0,!this.parameters.zoomFlag)BookEvent.trigger("zoomIn",["double tap",BookInfo.getCurrentPages().join("-")]),this.zoomIn(this),this.parameters.origin=this.mathOrigin(this,d),this.originObj(this,this.parameters.origin),this.parameters.zoomOut=!1,this.animateToScale(this,this.middleScale,d);else if(this.parameters.zoomFlag){this.beforeZoomOut(this);BookEvent.trigger("zoomOut",["double tap",BookInfo.getCurrentPages().join("-")]); var f=this.parameters.naturalWidth/this.parameters.width;this.parameters.zoomOut=!0;this.animateToScale(this,f,d)}};this.onPinch=function(d){"pinchstart"==d.type&&(this.pinchStart=!0);if(!(this.parameters.resize||this.parameters.zoomming||!this.parameters.zoomFlag&&1>=d.scale)&&d&&d.pointers){BookInfo.getBook().unSelect();this.animateInterval&&this.animateInterval.stop();this.swipeInterval&&this.swipeInterval.stop();var f=function(){this.pinchStart=!1;this.parameters.zoomFlag||(this.parameters.zoomOut= !1,this.zoomIn(this));BookEvent.trigger("zoomIn",["pinch",BookInfo.getCurrentPages().join("-")]);this.scale=this.parameters.toScale;this.parameters.origin=this.mathOrigin(this,d);this.originObj(this,this.parameters.origin);this.pinchMoveIn(this,parseFloat(this.scale)*parseFloat(d.scale),d,this.parameters.origin)}.bind(this);"pinchstart"==d.type&&(this.parameters.onPinch=!0,f(d));"pinchend"==d.type&&(this.parameters.scale=this.parameters.toScale,this.parameters.onPinch=!1,this.exceedScale(this,d), this.pinchStart=!1);"pinchmove"==d.type&&(this.pinchStart&&f(d),this.pinchMoveIn(this,parseFloat(this.scale)*parseFloat(d.scale),d,this.parameters.origin));"pinchcancel"==d.type&&(this.parameters.scale=this.parameters.toScale,this.parameters.onPinch=!1,this.exceedScale(this,d),this.pinchStart=!1)}};this.exceedScale=function(d,f){var g=d.parameters.width*d.parameters.toScale/d.parameters.naturalWidth,h=d.parameters.width*d.parameters.toScale,k=d.parameters.height*d.parameters.toScale,l=d.parameters.naturalWidth* d.maxScale/d.parameters.width,m=d.parameters.naturalWidth/d.parameters.width,n=d.parameters.toScale;g>d.maxScale&&(n=l);if(1>g||hwindowWidth){var r=windowWidth-p-m+k*f*d.parameters.zoomArea.right/100;m=-m-k*f*d.parameters.zoomArea.left/ 100}else r=-m-k*f*d.parameters.zoomArea.left/100,m=windowWidth-p-m+k*f*d.parameters.zoomArea.right/100;q>windowHeight?(k=windowHeight-q-n+l*f*d.parameters.zoomArea.bottom/100,d=-n-l*f*d.parameters.zoomArea.top/100):(k=-n-l*f*d.parameters.zoomArea.top/100,d=windowHeight-q-n+l*f*d.parameters.zoomArea.bottom/100);h=Number.between(h,r,m);g=Number.between(g,k,d);return{x:parseInt(h),y:parseInt(g)}}};this.pinchMoveIn=function(d,f,g){if(!d.parameters.eventCancel&&!d.parameters.zoomming&&g&&g.pointers&&2== g.pointers.length){var h={};h.scale=f;h.tran=d.mathTran(d,g,d.parameters.origin);d.transformSetting(d,h);d.parameters.toScale=f}};this.mathTran=function(d,f,g){if(!f||!f.pointers||0>=f.pointers.length||!g)return{x:0,y:0};f=this.getPageXY(f);pageX=f.pageX;pageY=f.pageY;var h=d.parameters.width;f=d.parameters.height;var k=d.parameters.left;d=d.parameters.top;k=(g.x*h/100+k).toFixed(2);g=(g.y*f/100+d).toFixed(2);tranX=pageX-parseFloat(k);tranY=pageY-parseFloat(g);return{x:parseFloat(tranX.toFixed(2)), y:parseFloat(tranY.toFixed(2))}};this.mathOrigin=function(d,f){if(!f||!f.pointers||0>=f.pointers.length)return{x:50,y:50};f=this.getPageXY(f);pageX=f.pageX;pageY=f.pageY;var g=d.parameters.width;f=d.parameters.height;var h=this.getBookOffset(d);g=(pageX-parseInt(h.left))/(g*d.parameters.scale);d=(pageY-parseInt(h.top))/(f*d.parameters.scale);return{x:(100*g).toFixed(2),y:(100*d).toFixed(2)}};this.getPageXY=function(d){var f=bookConfig.upsideOnMobile();if(1==d.pointers.length){var g=d.pointers[0].pageX; var h=d.pointers[0].pageY}1=p)d.animateInterval.stop(),BookInfo.getBook().bookAttachments&&BookInfo.getBook().bookAttachments.Items.find("ZoomMap").each(function(u){u.refreshArea()}), f&&"function"==typeof f&&f()}.animation(this,320)}}};this.transformSetting=function(d,f){d.setZoomParameters(d,f);f=transformCSS(f);d.css(f)};this.panForMove=function(d,f,g,h){var k=d.parameters?d.parameters.tran:{x:0,y:0};h=d.parameters?d.parameters.scale:1;k||(k={x:0,y:0});h||0==h||(h=1);f=parseInt(k.x+f);g=parseInt(k.y+g);g={x:f,y:g};f=transformCSS({tran:g,scale:h});d.css(f);return{tran:g,scale:h}};this.originObj=function(d,f){d.css({"-webkit-transform-origin":f.x+"% "+f.y+"%","-moz-transform-origin":f.x+ "% "+f.y+"%","-ms-transform-origin":f.x+"% "+f.y+"%","-o-transform-origin":f.x+"% "+f.y+"%"})};this.setZoomParameters=function(d,f){function g(l){return void 0!==l&&null!==l}function h(l){return g(f[l])&&!isNaN(f[l])?f[l]:d.parameters[l]}function k(l){return g(f[l])?f[l]:d.parameters[l]}d&&d.parameters&&f&&(d.parameters={width:h("width"),height:h("height"),naturalWidth:h("naturalWidth"),naturalHeight:h("naturalHeight"),left:h("left"),top:h("top"),scale:h("scale"),rotate:h("rotate"),toScale:h("toScale"), tran:k("tran"),origin:k("origin"),zoomFlag:k("zoomFlag"),zoomming:k("zoomming"),zoomOut:k("zoomOut"),resize:k("resize"),eventCancel:k("eventCancel"),zoomArea:k("zoomArea"),zoomDelay:k("zoomDelay"),onPan:k("onPan"),onSwipe:k("onSwipe"),onDoubleTap:k("onDoubleTap"),onPinch:k("onPinch")})};this.animateToTransform=function(d,f,g){if(!this.parameters.eventCancel&&!this.parameters.zoomming){this.options&&this.options.zoomStart&&this.options.zoomStart();this.parameters.zoomming=!0;var h=this.getBookOffset($(this)); this.parameters.tran=getTransform(this[0]);this.parameters.left=h.left-this.parameters.tran.x;this.parameters.top=h.top-this.parameters.tran.y;this.parameters.width=$(this).width();this.parameters.height=$(this).height();this.parameters.naturalWidth=$(this).width();this.parameters.naturalHeight=$(this).height();this.setZoomSize();var k={};k.origin=this.parameters.origin;k.scale=d;k.tran=f;k.origin=g;this.zoomTran=k;f=transformCSS(k);this.originObj(this,k.origin);animateOnce(this,f,300,function(){getTransform(this[0]); this.transformSetting(this,k);this.parameters.scale=d;this.parameters.toScale=d;this.parameters.zoomming=!1;if(this.options.onZoomed)this.options.onZoomed(k)}.bind(this),"%stransform","cubic-bezier(0.2150, 0.610, 0.3550, 1)")}};this.animateToScale=function(d,f,g,h){if(!d.parameters.eventCancel&&!d.parameters.zoomming){d.options&&d.options.zoomStart&&d.options.zoomStart();d.parameters.zoomming=!0;var k={};k.origin=d.parameters.origin;k.scale=f;k.tran=this.mathTran(d,g,k.origin);k.tran=this.tranLimit(d, f,k.tran);this.zoomTran=k;this.animation(d,f,k,h)}};this.animation=function(d,f,g,h){var k=transformCSS(g);d.originObj(d,g.origin);animateOnce(d,k,void 0==h?600:h,function(){getTransform(d[0]);d.transformSetting(d,g);d.parameters.scale=f;d.parameters.toScale=f;d.parameters.zoomming=!1;var l=(d.parameters.width*d.parameters.toScale).toFixed(2),m=(d.parameters.height*d.parameters.toScale).toFixed(2),n=d.parameters.naturalWidth,p=d.parameters.naturalHeight;if(Number.isBetween(l,n-1,n+1)||Number.isBetween(m, p-1,p+1)){d.timeout&&(d.timeout=void 0,window.clearTimeout(d.timeout));d.parameters.zoomDelay=!1;if(d.options.onZoomed)d.options.onZoomed(d.zoomTran);d.zoomOut(d)}else if(d.options.onZoomed)d.options.onZoomed(d.zoomTran)}.bind(d),"%stransform","cubic-bezier(0.2150, 0.610, 0.3550, 1)")};this.delayExecuteOnZoomed=function(d){d.timeout=window.setTimeout(function(){if(d.parameters.zoomFlag&&!d.parameters.onPinch&&!d.parameters.zoomming)d.options.onZoomed(d.zoomTran);d.parameters.zoomDelay=!1;window.clearTimeout(d.timeout); d.timeout=void 0},3E3)};this.registerParamers=function(d){d&&(void 0!=d.width&&(this.parameters.width=d.width),void 0!=d.height&&(this.parameters.height=d.height),void 0!=d.left&&(this.parameters.left=d.left),void 0!=d.top&&(this.parameters.top=d.top),void 0!=d.scale&&(this.parameters.scale=d.scale),void 0!=d.tran&&(this.parameters.tran=d.tran),void 0!=d.origin&&(this.parameters.origin=d.origin))};this.setZoomSize=function(){var d=$(this).width(),f=$(this).height(),g=bookConfig.largePageHeight/bookConfig.largePageWidth, h=bookConfig.middleZoomWidth,k=h*g,l=getPageSize(BookInfo.getCurrentPageIndex(),"normal",bookConfig.totalPageCount);if(l&&1"))}, initControlBar:function(){this.content.addClass("video-player");this.controlBar=$('
');this.controlBorder=$('
');this.content.append(this.controlBar);this.controlBar.append(this.controlBorder);this.btnPlay=$('
');this.bevel1=$('
');this.video_timer=$('
00:00
');this.video_seek=$('
');this.bevel2=$('
'); this.volume_seek=$('
');this.btnVolume=$('
');this.btnFullscreen=$('
');this.controlBar.append(this.btnPlay);this.controlBar.append(this.bevel1);this.controlBar.append(this.btnFullscreen);this.controlBar.append(this.video_timer);this.controlBar.append(this.video_seek);this.controlBar.append(this.bevel2);this.controlBar.append(this.volume_seek);this.controlBar.append(this.btnVolume);this.createVideoSeekSlider(); this.createVolumeSeekSlider();this.btnCenter=$('
');this.content.append(this.btnCenter)},createVideoSeekSlider:function(){var b=this.html_video.$media[0].duration;b||(b=100);this.video_seek_slider=this.video_seek.slider({range:0,max:b,direction:"horizontal",onChange:function(c){try{this.html_video.$media[0].currentTime=parseFloat(c)}catch(d){}}.bind(this)})},createVolumeSeekSlider:function(){this.volume_value=1;this.volume_seek_slider=this.volume_seek.slider({range:1, max:1,direction:"vertical",onChange:function(b){b=parseFloat(b);try{this.volume_value=b,equals(b,0)?(this.html_video.$media[0].muted=!0,this.btnVolume.addClass("volume-mute")):(this.html_video.$media[0].muted=!1,this.btnVolume.removeClass("volume-mute")),this.html_video.$media[0].volume=b}catch(c){}}.bind(this)})},initEvents:function(){this.initControlBarEvents();this.initPlayEvents();this.initVolumeEvents();this.initFullscreenEvents()},initPrompt:function(b){if(b&&b.length){var c=this.html_video.$media[0].duration; this.video_seek.width();for(var d=0;d

");this.video_seek.append(f);this.promptEvent(f,b[d].time)}}},promptEvent:function(b,c){b.bind("mouseenter",function(d){b.css({background:"#2CA8D5"})}.bind(this));b.bind("mouseleave",function(d){b.css({background:"#fff"})}.bind(this));b.bind("click",function(d){this.html_video.$media[0].currentTime= c}.bind(this))},initControlBarEvents:function(){var b=function(){var d="visible";1==this.html_video.$media[0].paused&&(d="hidden");this.controlBar.css({visibility:d,opacity:1})}.bind(this),c=function(){this.controlBar.css({visibility:"hidden",opacity:0})}.bind(this);$.browser.device==$.browser.DEVICE_PC?(this.video.bind(_event._enter,b),this.video.bind(_event._leave,c),this.controlBar.bind(_event._enter,b),this.controlBar.bind(_event._leave,c)):(this.video.bind(_event._down,function(){b();this.hideControlbarFlag= !1}.bind(this)),this.video.bind(_event._move,function(){b();this.hideControlbarFlag=!1}.bind(this)),this.video.bind(_event._up,function(){this.hideControlbarFlag=!0;(function(){1==this.hideControlbarFlag&&c()}).delay(this,5E3)}.bind(this)))},initPlayEvents:function(){var b=function(d){d=(d=this.content.find("source").attr("src"))?d.slice(d.lastIndexOf("/")+1):"";0==this.html_video.$media[0].paused?(bookConfig.googleAnalyticsID&>ag("event","pause",{event_category:"Video",event_label:"Page"+BookInfo.getCurrentPages()[0]+ " "+d}),this.pause()):(bookConfig.googleAnalyticsID&>ag("event","play",{event_category:"Video",event_label:"Page"+BookInfo.getCurrentPages()[0]+" "+d}),this.play(),this.controlBar.css({visibility:"visible",opacity:1}));return!1},c=(new Date).getTime();this.video.bind(_event._click,b.bind(this));this.btnPlay.bind(_event._click,b.bind(this));this.btnCenter&&this.btnCenter.bind(_event._click,b.bind(this));this.video.bind("play",function(){c=(new Date).getTime();BookEvent.trigger("playMedia",["play", BookInfo.getCurrentPageIndex(),this.html_video.$media[0].currentSrc,"Video",0]);this.btnPlay.addClass("paused-button");this.btnCenter&&this.btnCenter.css("display","none")}.bind(this));this.video.bind("pause",function(){BookEvent.trigger("playMedia",["pause",BookInfo.getCurrentPageIndex(),this.html_video.$media[0].currentSrc,"Video",(new Date).getTime()-c]);this.btnPlay.removeClass("paused-button");this.btnCenter&&this.btnCenter.css("display","block")}.bind(this));this.video.bind("ended",function(){this.btnPlay.removeClass("paused-button"); this.btnCenter&&this.btnCenter.css("display","block")}.bind(this));this.video.bind("timeupdate",function(){var d=this.html_video.$media[0].currentTime,f=this.html_video.$media[0].duration;f||(f=100);this.video_seek_slider&&(this.video_seek_slider.setMax(f),this.video_seek_slider.setRange(d));this.video_timer.text(this.timeFormat(d))}.bind(this))},initVolumeEvents:function(){this.btnVolume.bind(_event._click,function(){1==this.html_video.$media[0].muted?(this.html_video.$media[0].muted=!1,this.volume_seek_slider.setRange(this.volume_value), this.btnVolume.removeClass("volume-mute")):(this.html_video.$media[0].muted=!0,this.volume_seek_slider.setRange(0),this.btnVolume.addClass("volume-mute"));return!1}.bind(this));this.btnVolume.bind("mouseenter",function(b){b=isTouch?b.originalEvent?b.originalEvent.changedTouches:b.changedTouches:[b];b=b[0].pageX-b[0].offsetX-this.controlBar.offset().left;b+=(this.btnVolume.width()-this.volume_seek.width())/2;this.volume_seek.css({left:b+"px"});this.volume_seek.css({visibility:"visible",opacity:"1"})}.bind(this)); this.btnVolume.bind("mouseleave",function(){this.volume_seek.css({visibility:"hidden",opacity:"0"})}.bind(this));this.volume_seek.bind("mouseenter",function(){this.volume_seek.css({visibility:"visible",opacity:"1"})}.bind(this));this.volume_seek.bind("mouseleave",function(){this.volume_seek.css({visibility:"hidden",opacity:"0"})}.bind(this))},initFullscreenEvents:function(){this.btnFullscreen.bind(_event._click,function(){fullScreenApi.supportsFullScreen?fullScreenApi.isFullScreen()?fullScreenApi.cancelFullScreen(): $.browser.safari?this.initSafariFullscreen(this.html_video.$media[0]):fullScreenApi.requestFullScreen(this.html_video.$media[0]):this.html_video.$media[0].webkitSupportsFullscreen?this.html_video.$media[0].webkitEnterFullscreen():alert(getLanguage("proFullScreenWarn","Current browser does not support full-screen,Please use Chrome for best results"));return!1}.bind(this));this.video.bind(fullScreenApi.fullScreenEventName,function(){fullScreenApi.isFullScreen()?(this.html_video.play(),this.btnFullscreen.addClass("player-exit-fullscreen")): this.btnFullscreen.removeClass("player-exit-fullscreen")}.bind(this))},initSafariFullscreen:function(b){this.appendDomToDocument('',"safari-fullscreen-video");!window.playBackgroundSound&&window.currentMedia&&(window.currentMedia.pauseMedia(),window.currentMedia=null);var c=document.getElementsByClassName("safari-fullscreen-video");c[0].webkitRequestFullscreen(); c[0].src=b.children[0].src;c[0].load();c[0].volume=b.volume;c[0].addEventListener("canplay",function g(f){c[0].play();c[0].addEventListener("play",function l(k){c[0].currentTime=b.currentTime;c[0].removeEventListener(k.type,l)});c[0].removeEventListener(f.type,g)});this.safariFullscreenEvent(c[0],b)},appendDomToDocument:function(b,c){0===document.getElementsByClassName(c).length&&(b=document.createRange().createContextualFragment(b),document.body.appendChild(b))},safariFullscreenEvent:function(b, c){var d=!1;b.addEventListener("enterpictureinpicture",function h(g){d=!0;c.currentTime=b.currentTime;c.volume=b.volume;b.paused?c.play():c.pause();b.removeEventListener(g.type,h)});b.addEventListener("leavepictureinpicture",function k(h){d=!1;c.currentTime=b.currentTime;c.volume=b.volume;b.paused?c.pause():c.play();b.removeEventListener(h.type,k);b.remove()});document.addEventListener("webkitfullscreenchange",function l(k){!b||document.webkitIsFullScreen||d||(c.currentTime=b.currentTime,c.volume= b.volume,b.paused?c.pause():c.play(),b.remove(),document.removeEventListener(k.type,l))})},timeFormat:function(b){var c=10>Math.floor(b/60)?"0"+Math.floor(b/60):Math.floor(b/60);return c+":"+(10>Math.floor(b-60*c)?"0"+Math.floor(b-60*c):Math.floor(b-60*c))},initSkin:virtual_function,onResize:function(){var b=this.controlBar.width();b||(b=this.content.width());var c=Math.max(0,b-this.seekWidth);0>=c?this.video_seek.css({display:"none"}):(this.video_seek.css({width:c,display:"block"}),this.video_seek_slider.setRange(this.html_video.$media[0].currentTime)); c=this.btnVolume.position().left+this.controlBar.position().left+(this.btnVolume.width()-this.volume_seek.width())/2;bb?this.video_timer.css("display","none"):this.video_timer.css("display","block")},initSkin:function(){this.content.addClass("round")}}).extend("VideoSkin"); Class("ClassicVideoSkin",{create:function(b,c){this.seekWidth=195;this.volumeWidth=135;this.fullscreenWidth=70;this.initEventMonitor();this._super(b,c);this.btnCenter&&this.btnCenter.css("display","none")},initSkin:function(){this.content.addClass("classic")},initEventMonitor:function(){this.eventTime;var b=function(){void 0==this.eventTime?b.stop():5E3');this.btnBack=$('
');this.btnForward=$('
'); this.volume_seek=$('
');this.btnVolume=$('
');this.btnVolumeUp=$('
');this.btnVolumeDown=$('
');this.audio_timer=$('
00:00/00:00
');this.audio_seek=$('
');this.audio_name=$('
');this.content.append(this.btnPlay); this.content.append(this.btnBack);this.content.append(this.btnForward);this.content.append(this.volume_seek);this.content.append(this.btnVolume);this.content.append(this.btnVolumeUp);this.content.append(this.btnVolumeDown);this.content.append(this.audio_timer);this.content.append(this.audio_seek);this.content.append(this.audio_name);this.createAudioSeekSlider();this.createVolumeSeekSlider()},createAudioSeekSlider:function(){var b=this.html_audio.$media[0].duration;b||(b=100);this.audio_seek_slider= this.audio_seek.slider({range:0,max:b,direction:"horizontal",onChange:function(c){try{this.html_audio.setCurrentTime(parseFloat(c))}catch(d){}}.bind(this)})},createVolumeSeekSlider:function(){this.volume_value=1;this.volume_seek_slider=this.volume_seek.slider({range:1,max:1,direction:this.volumeDirection,onChange:function(b){b=parseFloat(b);try{this.volume_value=b,0==b?(this.html_audio.$media[0].muted=!0,this.volume_btn.addClass("volume-mute")):(this.html_audio.$media[0].muted=!1,this.html_audio.$media[0].volume= b,this.volume_btn.removeClass("volume-mute"))}catch(c){}}.bind(this)})},initEvents:function(){this.initPlayEvents();this.initVolumeEvents()},initPlayEvents:function(){var b=(new Date).getTime();this.btnPlay.bind(_event._click,function(c){if(this.resources[0])return c=this.resources[0].slice(this.resources[0].lastIndexOf("/")+1),0==this.html_audio.$media[0].paused?(bookConfig.googleAnalyticsID&>ag("event","pause",{event_category:"audio",event_label:"Page"+BookInfo.getCurrentPages()[0]+" "+c}),this.html_audio.pause()): (bookConfig.googleAnalyticsID&>ag("event","play",{event_category:"audio",event_label:"Page"+BookInfo.getCurrentPages()[0]+" "+c}),this.html_audio.play()),!1}.bind(this));this.audio.bind("play",function(){b=(new Date).getTime();this.btnPlay.addClass("paused-button");BookEvent.trigger("playMedia",["play",BookInfo.getCurrentPageIndex(),this.resources[this.audioIndex],"Audio",0])}.bind(this));this.audio.bind("pause",function(){this.btnPlay.removeClass("paused-button");BookEvent.trigger("playMedia", ["pause",BookInfo.getCurrentPageIndex(),this.resources[this.audioIndex],"Audio",(new Date).getTime()-b])}.bind(this));this.audio.bind("ended",function(){this.btnPlay.removeClass("paused-button");this.audioIndexb&&(b+=this.resources.length),b%=this.resources.length,this.changeMusic(b),this.html_audio.play())},changeMusic:function(b){this.audioIndex=b;b=this.resources[b];this.html_audio.$media[0].src=b;this.audio_name.text(this.getAudioTitle(b))}, getAudioTitle:function(b){if(""==b)return"";var c=-1==b.indexOf("\\")?b.lastIndexOf("/"):b.lastIndexOf("\\");iNameEnd=b.lastIndexOf(".");return fileTitle=b.substr(c+1,iNameEnd-c-1)},initVolumeEvents:function(){this.btnVolume.bind(_event._click,function(b){1==this.html_audio.$media[0].muted?(this.html_audio.$media[0].muted=!1,this.volume_seek_slider.setRange(this.volume_value),this.btnVolume.removeClass("volume-mute")):(this.html_audio.$media[0].muted=!0,this.volume_seek_slider.setRange(0),this.btnVolume.addClass("volume-mute")); return!1}.bind(this));this.btnVolumeUp.bind(_event._click,function(){this.changeVolumeByStep(.1)}.bind(this));this.btnVolumeDown.bind(_event._click,function(){this.changeVolumeByStep(-.1)}.bind(this))},changeVolumeByStep:function(b){this.volume_value=this.html_audio.$media[0].volume+b;this.volume_value=Math.max(0,this.volume_value);this.volume_value=Math.min(1,this.volume_value);this.html_audio.$media[0].volume=this.volume_value},timeFormat:function(b){var c=10>Math.floor(b/60)?"0"+Math.floor(b/60): Math.floor(b/60);return c+":"+(10>Math.floor(b-60*c)?"0"+Math.floor(b-60*c):Math.floor(b-60*c))},initSkin:virtual_function,onResize:function(){if(this.audioSeek){var b=parseInt(this.content.width());b=Math.max(0,b-this.audioSeek);0>=b?this.audio_seek.css({display:"none"}):(this.audio_seek.css({width:b,display:"block"}),this.audio_seek_slider.setRange(this.html_audio.$media[0].currentTime))}0==this.html_audio.$media[0].muted?this.volume_seek_slider.setRange(this.volume_value):this.volume_seek_slider.setRange(0); b=this.volumeWidth;void 0!=b&&(this.content.width()");this.pnlListBackground=$("
");this.pnlList=$("
");this.content.append(this.btnList);this.content.append(this.pnlListBackground);this.pnlListBackground.append(this.pnlList);this.addAudioItems();this.listVisible=!1;this.items[0]&&this.items[0].addClass("selected");1==this.resources.length&&(this.btnList.css("display","none"),this.pnlListBackground.css("display", "none"))},addAudioItems:function(){this.items=[];for(var b=0;b");this.items[b].text(c);this.pnlList.append(this.items[b])}},initEvents:function(){this._super();this.initListEvents()},initListEvents:function(){this.btnList.bind(_event._click,function(){this.listVisible?this.hideListPanel():this.showListPanel();this.listVisible=!this.listVisible; return!1}.bind(this));for(var b=0;bMusic On");this.content.append(this.volume_status)},initPlayEvents:function(){this._super();this.volume_status.bind(_event._click,function(b){0==this.html_audio.$media[0].paused?this.html_audio.pause():this.html_audio.play();return!1}.bind(this));this.audio.bind("play",function(){this.volume_status.text("Music Off")}.bind(this)); this.audio.bind("pause",function(){this.volume_status.text("Music On")}.bind(this))},initSkin:function(){this.content.addClass("turnonoff")}}).extend("AudioSkin");Class("FadeAudioSkin",{create:function(b,c,d){this.volumeDirection="horizontal";this._super(b,c,d)},initSkin:function(){this.content.addClass("fade")}}).extend("AudioSkin");Class("BackgroundAudioSkin",{create:function(b,c,d){this.volumeDirection="horizontal";this._super(b,c,d)},initSkin:function(){this.content.addClass("background")}}).extend("AudioSkin"); Class("Skin1AudioSkin",{create:function(b,c,d){this.volumeDirection="horizontal";this.audioSeek=130;this._super(b,c,d)},initSkin:function(){this.content.addClass("skin1")}}).extend("AudioSkin");Class("Skin2AudioSkin",{create:function(b,c,d){this.volumeDirection="horizontal";this.audioSeek=80;this._super(b,c,d)},initSkin:function(){this.content.addClass("skin2")}}).extend("AudioSkin");bdor[7]="m"; (function(b){b.fn.addVideoSkin=function(c,d){switch(c){case "round":c=new RoundVideoSkin(this,d);break;case "classic":c=new ClassicVideoSkin(this,d);break;case "smallblack":c=new SmallBlackVideoSkin(this,d);break;default:c=new ClassicVideoSkin(this,d)}return c};bdor.i=function(c){return bdor[c]};bdor.f="f";b.fn.addAudioSkin=function(c,d){var f=null;(c=global[c.firstUpperCase()+"AudioSkin"])&&(f=new c(this,this.audioResources,d));f||(f=new DefaultAudioSkin(this,this.audioResources,d));return f};this.skin= this.bdor})(jQuery);var audioThemeNames={GlassAudioPlayer:"",SimpleAudioPlayer:"",StandardAudioPlayer:"",StandardAudioPlayer02:"",StandardAudioPlayer03:"",StandardAudioPlayer04:"",StandardAudioPlayer05:"",StandardAudioPlayer06:""};bdor[8]="o"; (function(b,c,d){function f(m,n){var p=(m[0]||0)-(n[0]||0);return 0'].join(""));var u=q.join("");n.innerHTML=["",u,""].join("");return n.firstChild}};b.fn[c]=function(m){var n= this.find("object").andSelf().filter("object");/string|object/.test(typeof m)&&this.each(function(){var p=b(this),q;m="object"==typeof m?m:{swf:m};m.fallback=this;if(q=b[c].create(m))p.children().remove(),p.html(q)});"function"==typeof m&&n.each(function(){var p=this;p.jsInteractionTimeoutMs=p.jsInteractionTimeoutMs||0;660>p.jsInteractionTimeoutMs&&(p.clientWidth||p.clientHeight?m.call(p):setTimeout(function(){b(p)[c](m)},p.jsInteractionTimeoutMs+66))});return n}})(jQuery,"flash",navigator.plugins["Shockwave Flash"]|| window.ActiveXObject);jQuery.easing.jswing=jQuery.easing.swing; jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(b,c,d,f,g){return jQuery.easing[jQuery.easing.def](b,c,d,f,g)},easeInQuad:function(b,c,d,f,g){return f*(c/=g)*c+d},easeOutQuad:function(b,c,d,f,g){return-f*(c/=g)*(c-2)+d},easeInOutQuad:function(b,c,d,f,g){return 1>(c/=g/2)?f/2*c*c+d:-f/2*(--c*(c-2)-1)+d},easeInCubic:function(b,c,d,f,g){return f*(c/=g)*c*c+d},easeOutCubic:function(b,c,d,f,g){return f*((c=c/g-1)*c*c+1)+d},easeInOutCubic:function(b,c,d,f,g){return 1>(c/=g/2)?f/2*c*c*c+d: f/2*((c-=2)*c*c+2)+d},easeInQuart:function(b,c,d,f,g){return f*(c/=g)*c*c*c+d},easeOutQuart:function(b,c,d,f,g){return-f*((c=c/g-1)*c*c*c-1)+d},easeInOutQuart:function(b,c,d,f,g){return 1>(c/=g/2)?f/2*c*c*c*c+d:-f/2*((c-=2)*c*c*c-2)+d},easeInQuint:function(b,c,d,f,g){return f*(c/=g)*c*c*c*c+d},easeOutQuint:function(b,c,d,f,g){return f*((c=c/g-1)*c*c*c*c+1)+d},easeInOutQuint:function(b,c,d,f,g){return 1>(c/=g/2)?f/2*c*c*c*c*c+d:f/2*((c-=2)*c*c*c*c+2)+d},easeInSine:function(b,c,d,f,g){return-f*Math.cos(c/ g*(Math.PI/2))+f+d},easeOutSine:function(b,c,d,f,g){return f*Math.sin(c/g*(Math.PI/2))+d},easeInOutSine:function(b,c,d,f,g){return-f/2*(Math.cos(Math.PI*c/g)-1)+d},easeInExpo:function(b,c,d,f,g){return 0==c?d:f*Math.pow(2,10*(c/g-1))+d},easeOutExpo:function(b,c,d,f,g){return c==g?d+f:f*(-Math.pow(2,-10*c/g)+1)+d},easeInOutExpo:function(b,c,d,f,g){return 0==c?d:c==g?d+f:1>(c/=g/2)?f/2*Math.pow(2,10*(c-1))+d:f/2*(-Math.pow(2,-10*--c)+2)+d},easeInCirc:function(b,c,d,f,g){return-f*(Math.sqrt(1-(c/=g)* c)-1)+d},easeOutCirc:function(b,c,d,f,g){return f*Math.sqrt(1-(c=c/g-1)*c)+d},easeInOutCirc:function(b,c,d,f,g){return 1>(c/=g/2)?-f/2*(Math.sqrt(1-c*c)-1)+d:f/2*(Math.sqrt(1-(c-=2)*c)+1)+d},easeInElastic:function(b,c,d,f,g){b=0;var h=f;if(0==c)return d;if(1==(c/=g))return d+f;b||(b=.3*g);hc?-.5*k*Math.pow(2,10*--c)*Math.sin(2*(c*g-b)*Math.PI/h)+d:k*Math.pow(2,-10*--c)*Math.sin(2*(c*g-b)*Math.PI/h)*.5+f+d},easeInBack:function(b,c,d,f,g,h){void 0==h&&(h=1.70158);return f*(c/=g)*c*((h+1)* c-h)+d},easeOutBack:function(b,c,d,f,g,h){void 0==h&&(h=1.70158);return f*((c=c/g-1)*c*((h+1)*c+h)+1)+d},easeInOutBack:function(b,c,d,f,g,h){void 0==h&&(h=1.70158);return 1>(c/=g/2)?f/2*c*c*(((h*=1.525)+1)*c-h)+d:f/2*((c-=2)*c*(((h*=1.525)+1)*c+h)+2)+d},easeInBounce:function(b,c,d,f,g){return f-jQuery.easing.easeOutBounce(b,g-c,0,f,g)+d},easeOutBounce:function(b,c,d,f,g){return(c/=g)<1/2.75?7.5625*f*c*c+d:c<2/2.75?f*(7.5625*(c-=1.5/2.75)*c+.75)+d:c<2.5/2.75?f*(7.5625*(c-=2.25/2.75)*c+.9375)+d:f*(7.5625* (c-=2.625/2.75)*c+.984375)+d},easeInOutBounce:function(b,c,d,f,g){return c=c.length&&(d(g),d=function(){})},k=function(l){var m=new Image;b(m).on("load",function(){g.push({url:l,img:m});h()}).on("error",function(){g.push(m);h()}).attr("src",l)};b.fn.loader=function(l,m,n){l&&b.extend(c,l);"function"==typeof m&&(d=m);for(l=0;l
');this.append(this.loadingDom)}.bind(this);this.createLoading=function(d){this.initLoadingHtml(d)}.bind(this);this.finishedLoading=function(){this.hideLoading()}.bind(this);this.initLoading=function(){}.bind(this);this.showLoading=function(){this.loadingDom&&this.loadingDom.show()}.bind(this);this.hideLoading= function(){this.loadingDom&&this.loadingDom.remove()}.bind(this);this.createLoading(b)}; (function(b){var c=function(){return Hammer.HAS_TOUCHEVENTS&&navigator.userAgent.match(Hammer.MOBILE_REGEX)};bdor[3]="f";var d=function(p){this.theButton=p;this.eventSource=p[0];c()?(p.bind("touchstart",this.mouseDown.bind(this)),p.bind("touchend",this.mouseUp.bind(this))):(p.bind("mouseenter",this.mouseEnter.bind(this)),p.bind("mouseleave",this.mouseLeave.bind(this)),p.bind("blur",this.mouseLeave.bind(this)),p.bind("mousedown",this.mouseDown.bind(this)),p.bind("mouseup",this.mouseUp.bind(this)))}; d.prototype.mouseEnter=function(){this.setAlpha(80)};d.prototype.mouseLeave=function(){this.setAlpha(100)};d.prototype.mouseDown=function(){this.setAlpha(60)};d.prototype.mouseUp=function(){this.setAlpha(80)};d.prototype.setAlpha=function(p){0>p&&(p=0);100<=p&&(p=100);this.theButton.css("opacity",p/100)};b.fn.asButton=function(){new d(this);return this};bdor[4]="h";var f=function(p,q){this.eventSource=p[0];this.origPicture=p[0].src;var r=this.origPicture.lastIndexOf("."),u=this.origPicture.substr(0, r);r=this.origPicture.substring(r);this.pictureDown=q?q:u+"_down"+r;c()?(p.bind("touchstart",this.mouseOver.bind(this)),p.bind("touchend",this.mouseLeave.bind(this))):(p.bind("mouseenter",this.mouseOver.bind(this)),p.bind("mousedown",this.mouseDown.bind(this)),p.bind("mouseup",this.mouseUp.bind(this)),p.bind("mouseleave",this.mouseLeave.bind(this)),p.bind("blur",this.mouseLeave.bind(this)))};f.prototype.mouseOver=function(){this.eventSource.src=this.pictureDown};f.prototype.mouseDown=function(){b(this.eventSource).css("opacity", .8)};f.prototype.mouseUp=function(){b(this.eventSource).css("opacity",1)};f.prototype.mouseLeave=function(){this.eventSource.src=this.origPicture};b.fn.asImageButton=function(p){new f(this,p);return this};var g=function(p,q){this.eventSource=p[0];this.origPicture=p[0].src;var r=this.origPicture.lastIndexOf("."),u=this.origPicture.substr(0,r);r=this.origPicture.substring(r);this.pictureDown=q?q:u+"_down"+r;c()?(p.bind("touchstart",this.mouseOver.bind(this)),p.bind("touchend",this.mouseUp.bind(this))): (p.bind("mouseenter",this.mouseOver.bind(this)),p.bind("mousedown",this.mouseDown.bind(this)),p.bind("mouseup",this.mouseUp.bind(this)),p.bind("mouseleave",this.mouseUp.bind(this)))};bdor[10]="l";g.prototype.mouseOver=function(){this.eventSource.src=this.pictureDown};g.prototype.mouseDown=function(){this.eventSource.src=this.pictureDown};g.prototype.mouseUp=function(){var p=this;window.setTimeout(function(){p.eventSource.src=p.origPicture},100)};b.fn.asImageChangeButton=function(){new g(this);return this}; var h=function(p){this.theButton=p;this.eventSource=p[0];var q=this.theButton.css("top");this.iOrigTop=parseInt(q.replace("px",""));this.iJumpTop=this.iOrigTop-5;p.bind("mouseenter",this.MouseEnter.bind(this));p.bind("mouseleave",this.MouseLeave.bind(this))};h.prototype.MouseEnter=function(){this.theButton.animate({top:this.iJumpTop},50)};h.prototype.MouseLeave=function(){this.theButton.animate({top:this.iOrigTop},50)};b.fn.mouseEnterJump=function(){new h(this);return this};b.fn.mouseOverCursor=function(){new k(this); return this};var k=function(p){p.bind("mouseover",function(){p.css({cursor:"pointer"})})},l=function(p){this.theButton=p;this.eventSource=p[0];var q=this.theButton.css("top");this.iOrigTop=parseInt(q.replace("px",""));q=this.theButton.css("left");this.iOrigLeft=parseInt(q.replace("px",""));this.iZoomTop=this.iOrigTop-3;this.iZoomLeft=this.iOrigLeft-1;p.bind("mouseenter",this.MouseEnter.bind(this));p.bind("mouseleave",this.MouseLeave.bind(this))};l.prototype.MouseDown=function(){this.theButton.css({left:this.iZoomLeft+ "px",top:this.iZoomTop+"px","-webkit-transform":"scale(1.1)","-moz-transform":"scale(1.1)",transform:"scale(1.1)","-ms-transform":"scale(1.1)","-o-transform":"scale(1.1)"})};l.prototype.MouseEnter=function(){this.theButton.css({left:this.iZoomLeft+"px",top:this.iZoomTop+"px","-webkit-transform":"scale(1.2)","-moz-transform":"scale(1.2)",transform:"scale(1.2)","-ms-transform":"scale(1.2)","-o-transform":"scale(1.2)"})};l.prototype.MouseLeave=function(){this.theButton.css({left:this.iOrigLeft+"px", top:this.iOrigTop+"px","-webkit-transform":"scale(1)","-moz-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)"})};var m=function(p){this.theButton=p;this.eventSource=p[0];var q=this.theButton.css("top");this.iOrigTop=parseInt(q.replace("px",""));q=this.theButton.css("left");this.iOrigLeft=parseInt(q.replace("px",""));this.iZoomTop=this.iOrigTop-1;this.iZoomLeft=this.iOrigLeft-1;p.bind("mouseenter",this.MouseEnter.bind(this));p.bind("mouseleave",this.MouseLeave.bind(this))}; m.prototype.MouseEnter=function(){this.theButton.css({"-webkit-transform":"scale(1.1)","-moz-transform":"scale(1.1)",transform:"scale(1.1)","-ms-transform":"scale(1.1)","-o-transform":"scale(1.1)"})};m.prototype.MouseLeave=function(){this.theButton.css({"-webkit-transform":"scale(1)","-moz-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)"})};b.fn.mouseEnterZoom=function(){new m(this);return this};b.fn.mouseEnterUp=function(){new n(this);return this};var n= function(p){this.theButton=p;this.eventSource=p[0];var q=this.theButton.css("bottom");this.iOrigTop=parseInt(q.replace("px",""));q=this.theButton.css("left");this.iOrigLeft=parseInt(q.replace("px",""));this.iZoomTop=this.iOrigTop-1;this.iZoomLeft=this.iOrigLeft-1;p.bind("mouseenter",this.MouseEnter.bind(this));p.bind("mouseleave",this.MouseLeave.bind(this))};n.prototype.MouseEnter=function(){this.theButton.css({bottom:this.iZoomTop+"px","-webkit-transform":"scale(1.1)","-moz-transform":"scale(1.1)", transform:"scale(1.1)","-ms-transform":"scale(1.1)","-o-transform":"scale(1.1)"})};n.prototype.MouseLeave=function(){this.theButton.css({bottom:this.iOrigTop+"px","-webkit-transform":"scale(1)","-moz-transform":"scale(1)",transform:"scale(1)","-ms-transform":"scale(1)","-o-transform":"scale(1)"})};b.fn.mouseZoomUp=function(){new l(this);return this};b.fn.mouseEnterLight=function(p){p||(p="#EEEEEE");var q=this;this.bind(_event._enter,function(){q.css({background:p})});this.bind(_event._down,function(){q.css({background:p})}); c()?this.bind(_event._end,function(){q.css({background:"transparent"})}):this.bind(_event._end,function(){q.css({background:p})});this.bind(_event._leave,function(){q.css({background:"transparent"})});return this};b.fn.mouseEnterShine=function(p,q,r){var u=this,y=colorDiv(p,10);this.bind(_event._enter,function(){u.css({background:y});u.css({border:""});u.css({"border-left":"1px solid "+r,"border-top":"1px solid "+r});u.css({"border-right":"1px solid "+q,"border-bottom":"1px solid "+q})});this.bind(_event._down, function(){u.css({background:y});u.css({border:""});u.css({"border-left":"1px solid "+q,"border-top":"1px solid "+q});u.css({"border-right":"1px solid "+r,"border-bottom":"1px solid "+r})});c()?this.bind(_event._end,function(){u.css({background:"transparent"});u.css({border:""})}):this.bind(_event._end,function(){u.css({background:y});u.css({border:""});u.css({"border-left":"1px solid "+r,"border-top":"1px solid "+r});u.css({"border-right":"1px solid "+q,"border-bottom":"1px solid "+q})});this.bind(_event._leave, function(){u.css({background:"transparent"});u.css({border:""})});return this};b.fn.mouseEnterGradient=function(p,q,r){var u=this,y=colorAdd(p,75),D="-webkit-gradient(linear,left top,left bottom,color-stop(0,"+y+"),color-stop(0.19,"+colorAdd(y,2)+"),color-stop(0.35,"+colorAdd(y,28)+"),color-stop(0.55, "+colorAdd(y,6)+"),color-stop(0.75,"+colorAdd(y,4)+"),color-stop(0.85,"+colorAdd(y,2)+"),color-stop(1, "+y+"))";this.bind(_event._enter,function(){u.css("background",D);u.css({border:""});u.css({"border-left":"1px solid "+ r,"border-top":"1px solid "+r});u.css({"border-right":"1px solid "+q,"border-bottom":"1px solid "+q})});this.bind(_event._down,function(){u.setGradient(y,!1);u.css({border:""});u.css({"border-left":"1px solid "+q,"border-top":"1px solid "+q});u.css({"border-right":"1px solid "+r,"border-bottom":"1px solid "+r})});c()?this.bind(_event._end,function(){u.css({background:"transparent"});u.css({border:""})}):this.bind(_event._end,function(){u.css("background",D);u[0].style.removeAttribute&&u[0].style.removeAttribute("filter"); u.css({border:""});u.css({"border-left":"1px solid "+r,"border-top":"1px solid "+r});u.css({"border-right":"1px solid "+q,"border-bottom":"1px solid "+q})});this.bind(_event._leave,function(){u[0].style.removeAttribute&&u[0].style.removeAttribute("filter");u.css({background:"transparent"});u.css({border:""})});return this};b.fn.dragToMove=function(p,q,r){var u=!1,y=0,D=0,C=0,x=0;b(this).bind(_event._down,function(z){var B=b(this)[0];B.setCapture?B.setCapture():window.captureEvents(Event.MOUSEMOVE| Event.MOUSEUP);z=isTouch?z.originalEvent.changedTouches:[z];u=!0;y=z[0].pageX;D=z[0].pageY;C=b(p).offset().left;x=b(p).offset().top});b(this).bind(_event._end,function(z){z=b(this)[0];z.releaseCapture?z.releaseCapture():window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);u=!1});b(this).bind(_event._move,function(z){z=isTouch?z.originalEvent.touches:[z];if(u){var B=C+(z[0].pageX-y);z=x+(z[0].pageY-D);void 0!=q&&(B=Math.max(q.x,B),B=Math.min(q.y,B));void 0!=r&&(z=Math.max(r.x,z),z=Math.min(r.y,z)); b(p).css({left:B+"px",top:z+"px"})}});b(this).bind("mouseleave",function(){return u=!1})};b.fn.slideFlipButtonShine=function(p){b(this).bind(_event._over,function(){b(this).css({cursor:"pointer"})});b(this).bind(_event._enter,function(){b(this).css({background:"#000000"})});b(this).bind(_event._leave,function(){b(this).css({background:"#888888"})})};bdor[31]=function(p,q){return bdor[p]-bdor[q]};b.fn.slideZoomButtonShine=function(p){b(this).bind(_event._enter,function(){b(this).css({cursor:"pointer"}); b(this).css({background:"#555555"})});b(this).bind(_event._leave,function(){b(this).css({background:""})})};b.fn.mouseEnterChange=function(p,q,r){var u=this;this.bind(_event._enter,function(){var y=b("");u.empty().append(y);u.css({background:q});u.changeButtonColor(p)});this.bind(_event._end,function(){var y=b("");u.empty().append(y);u.css({background:"transparent"});u.changeButtonColor(q)});this.bind(_event._leave,function(){var y=b("");u.empty().append(y); u.css({background:"transparent"});u.changeButtonColor(q)});return this};b.fn.clickExceptMove=function(p){var q=!1,r=!1,u=new Point(0,0);this.bind(_event._down,function(y){y=isTouch?y.originalEvent.touches:[y];q=!0;r=!1;u.x=y[0].pageX;u.y=y[0].pageY;1=Math.abs(y[0].pageX-u.x)&&1>=Math.abs(y[0].pageY-u.y)?!1:!0});this.bind(_event._end,function(y){q&&!r&&p();r=q=!1})};b.fn.enterToChange=function(p,q,r,u, y){var D=this.children();this.bind(_event._down,function(C){D.cssSprite(p,q+"_down",r,u,y)});this.bind(_event._enter,function(C){D.cssSprite(p,q+"_down",r,u,y)});this.bind(_event._leave,function(C){D.cssSprite(p,q,r,u,y)})};b.fn.addCssSprite=function(p,q,r,u,y){var D=b("
");D.cssSprite(p,q,r,u,y);this.append(D)};b.fn.changeCssSprite=function(p,q,r,u,y){this.children().cssSprite(p,q,r,u,y)};b.fn.cssSprite=function(p,q,r,u,y){if(y.iconInfo){for(var D=0,C=0;Cm+p&&(c=m+p-f.left-this.width()+g);f.top+l+this.height()>n+q&&(d=n+q-f.top-this.height()+h);f.left+kg?-50:50),g=this.getEffectiveLength(g), this.moveTo(g),f.stopPropagation(),!1}}.bind(this);this.getLeft=function(){return parseInt(this.swiper.css("left"))}.bind(this);this.getRight=function(){return parseInt(this.swiper.css("right"))}.bind(this);this.getBottom=function(){return parseInt(this.swiper.css("bottom"))}.bind(this);this.getTop=function(){return parseInt(this.swiper.css("top"))}.bind(this);this.animateToPosition=function(f){var g=this.getCurrentLength();f=this.getEffectiveLength(f);var h=function(k,l,m){m=(0,$.easing["easeOut"+ m])(null,k,g,f-g,l);k");this.addClass("main_dom");this.background.append(this);this.show=function(){this.background.show();this.background.animate({opacity:1},function(){$(this).show();b&&b()})}.bind(this);this.hide=function(){this.background.animate({opacity:0},function(){$(this).hide();c&&c()})}.bind(this);this.getDom=function(){return this.background}.bind(this);this.background.click(function(d){d.target==d.currentTarget&&this.hide()}.bind(this)); return this.background};jQuery.fn.onTap=function(b){if(isPhone()||isPad())this.click(function(d){d.stopPropagation();b(d)});else{var c=new Hammer.Manager(this[0]);c.add(new Hammer.Tap({event:"tap",taps:1,threshold:5,time:400}));c.on("tap",function(d){d.srcEvent.stopPropagation();b(d)})}};jQuery.fn.onDoubleTap=function(b){var c=new Hammer.Manager(this[0]);c.add(new Hammer.Tap({event:"doubletap",taps:2}));c.on("doubletap",b)};var flipping=!1; (function(b){bdor[5]="i";var c=function(d,f,g,h,k){if(void 0!=d&&null!=d){0>=h.length&&(k=b.extend({background:"green",cornersTop:!0,scale:"noresize"},k));d.prev();var l=0,m=!1,n=k.background,p=k.cornersTop,q=k.gradientColors||["#ddd","#eee","#fff"],r=k.scale,u=0,y=[];try{var D=d.clone();var C=D[0].getContext("2d");var x=d[0].getContext("2d");u=0}catch(K){x=C=D=null}this.images=h=h.each(function(K){if(!y[K]&&null!=x){var M=this;M.onload=function(){var S=1;if("noresize"!=r){var P=0==this.width?this.naturalWidth: this.width,Y=0==this.height?this.naturalHeight:this.height,Z=f/P,N=g/Y;"fit"==r&&(S=1>Z||1>N?Math.min(Z,N):1);"fill"==r&&(S=Math.min(Z,N))}b(M).data("flip.scale",S);y[K]=x.createPattern(M,"no-repeat");y[K].width=P;y[K].height=Y;u++;u!=h.length||m||(m=!0,X())};M.complete&&window.setTimeout(function(){M.onload()},10)}}).get();this.patterns=y;var z=f,B=g,H=b.browser.msie?d.offset():null,F,I,E,L;b.browser.msie&&function(){var K=b("
").width(f).height(g).css({position:"absolute",cursor:"default",zIndex:1}).appendTo(tmpContainer); 7==parseInt(b.browser.version)&&K.css({opacity:1E-6,background:"#FFF"});var M=function(){H=d.offset();return K.css({left:H.left+"px",top:H.top+"px"})};b(window).resize(M);return M()}();this.autoFlip=function(){window.clearInterval(F);I=(new Date).getTime();E=z;L=B/50;F=window.setInterval(U,0);l+=1;0>l&&(l=h.length-1);l==h.length&&(l=0)};this.timerFun=function(){this.timer=setInterval(this.autoFlip.bind(this),3E3)};this.timerFun();var U=this.flip=function(K){var M=(new Date).getTime()-I;700<=M?(window.clearInterval(F), K&&K?(h.unshift(h.pop()),y.unshift(y.pop())):(h.push(h.shift()),y.push(y.shift())),z=f,B=g):(z=E-2*f*M/700,B=L+2*g*M/700/3);X()},T=function(K,M){if(null!=x){var S=K*f+M,P=-M/K;b.browser.msie&&(S=Math.round(S),P=Math.round(P));x.beginPath();x.moveTo(f,Math.min(S,g));x.lineTo(f,0);x.lineTo(Math.max(P,0),0);0>P?(x.lineTo(0,Math.min(M,g)),MparseFloat(b.browser.version)){var R=C;R.clearRect(0,0,f,g);R.save();R.translate(1,0)}else R=x;Y=R.createLinearGradient(Y,Z,N,Q);Y.addColorStop(0,q[0]);Y.addColorStop(xa/M,q[1]);Y.addColorStop(1,q[2]);R.fillStyle=Y;R.beginPath();R.moveTo(-K/2,0);R.quadraticCurveTo((-K/2+z)/2+.02*z,B/2,z,B);R.quadraticCurveTo((f+z)/2,(2*f+K+B)/2-.02*(g-B),f,2*f+K);b.browser.mozilla&&1.9>parseFloat(b.browser.version)? (R.save(),R.clip(),R.fillRect(0,0,f,g),R.restore(),x.drawImage(D[0],0,0),R.restore()):R.fill();x.fillStyle=n;T(2,K);x.fill();T(2,K);b.browser.safari||b.browser.opera||x.restore();h[1]||(h[1]=h[0]);K=h[1];M=b(K).data("flip.scale");if(b.browser.msie)x.fillStyle=y[1],x.fillStyle.width2=x.fillStyle.width*M,x.fillStyle.height2=x.fillStyle.height*M,x.fill();else{x.save();x.clip();if(b.browser.safari||b.browser.opera)x.scale(1,1/S),x.translate(-0,-P);x.drawImage(K,(f-K.width*M)/2,(g-K.height*M)/2,K.width* M,K.height*M);x.restore();(b.browser.safari||b.browser.opera)&&x.restore()}}}}}};b.fn.jFlip=function(d,f,g,h,k,l){return this.each(function(){b(this).wrap("
");if("true"==l){if(1>=g.length)return;var m=b(""),n=b("");b(this).parent().append(m).append(n)}var p=b(this).find("img"),q=b(document.createElement("canvas")).attr({width:d,height:f}).css({margin:0,width:d+"px",height:f+"px"});b(this).css({position:"absolute",left:"-9000px",top:"-9000px",display:"none"}).after(q);var r=new c(b(this).next(),d||300,f||300,p,g);"true"!=l||1>=g.length||(m.bind("click",function(){r.flip(!0)}),n.bind("click",function(){r.flip()}))})}})(jQuery); function searchFromPages(b,c){var d=[];c=c.trim().toLowerCase();c=-1==c.indexOf(" ")?[c]:c.split(" ");var f;for(f=0;fm)m=u,n=u+c[q].length,h=g.substring(n),0==q&&(k=u),q==c.length-1&&(l=u+r);else{p=!1;break}}else{p=!1;break}}p&&(m=[],n=getHighlightRealPageIndex(f),0>n||(m.search_page=n+1,m.search_title="page "+(n+1), k=g.substring(0,k).lastIndexOf("."),-1==k?k=0:k++,n=g.substring(l),p=n.indexOf(".")+1,p=-1==p?n.length():l+p,g=g.substring(k,p),m.search_text=g,d.push(m)))}return d}function getSearchRealPageIndex(b){if(!window.search_pages||void 0==search_pages[b-1])return b;var c;(b=search_pages[b-1])&&(c=parseInt(b.index));return isNaN(c)||-1==c?-1:c+1} function getHighlightRealPageIndex(b){if(!window.search_pages)return b;for(var c=-1,d=0;d=b?b-1:this.next(c.substring(0,b));this.__times=0;this.__index=-1};bdor[10]="l"; KMP.prototype.next=function(b){for(var c=Math.ceil(b.length/2);0")[0];var k=h.getContext("2d")}catch(D){return}var l=g.width(),m=g.height(); g=g[0];void 0==c&&(c=!1);var n=getHost(g.src),p=getHost();if(n&&p!==n){if(h=g.src.replace(n,p),g.src=h,0==c)$(g).on("load",function(){try{f.changeButtonColor(b,!0,d)}catch(D){}})}else{h.width=l;h.height=m;try{k.drawImage(g,0,0,g.naturalWidth,g.naturalHeight,0,0,l,m);var q=k.getImageData(0,0,l,m),r=k.getImageData(0,0,l,m);if(1!=g.colorChanged&&q){var u=Color(b).split();l=0;for(var y=q.data.length;lbrowserType)){switch(browserType){case 1:this.css({"-webkit-transform":"rotate("+b+"deg)"});break;case 2:this.css({"-moz-transform":"rotate("+b+"deg)"});break;case 3:this.css({"-ms-transform":"rotate("+b+"deg)"});break;case 4:this.css({"-o-transform":"rotate("+b+"deg)"})}this.css({transform:"rotate("+b+"deg)"})}}; $.fn.scale=function(b,c){void 0==c&&(c="50% 50% 0");this.css({"-webkit-transform":"scale("+b+")","-moz-transform":"scale("+b+")","-ms-transform":"scale("+b+")","-o-transform":"scale("+b+")",transform:"scale("+b+")","-webkit-transform-origin":c,"-moz-transform-origin":c,"-ms-transform-origin":c,"-o-transform-origin":c,"transform-origin":c})}; $.fn.transition3D=function(){this.css({"-ms-transform":"translate3d(0,0,0)","-webkit-transform":"translate3d(0,0,0)","-moz-transform":"translate3d(0,0,0)","-o-transform":"translate3d(0,0,0)",transform:"translate3d(0,0,0)"});return this}; $.fn.speed=function(b){function c(r){r=void 0==r.originalEvent.touches?[r]:r.originalEvent.touches;if(1b.length)alert("A salt value could not be extracted from the encrypted message because it's length is too short. The message cannot be decrypted.");else if(null==c||0>=c.length)alert("Please enter a password with which to decrypt the message.");else{for(var d="",f=0;f"+c[g]+"");f.push(k)}""!==b&&f.push(b);return f.join("")},isHTML:function(b){return b?!!b.match(/^(<\w+>?).*((<\/\w+>)|(\/>))$/g):!1},toText:function(b){return"string"!=typeof b?"":b.replace(/<\/?\w+>/g,"")},toLabel:function(b){b=b.replaceAll("<","<");return b.replaceAll(">", ">")}},LanguageTool={isEnglish:function(b){return/[\x00-\xff]/.test(b)},isChinese:function(b){return/[\u4E00-\u9FBF]/.test(b)},isArabic:function(b){return/[\u0600-\u06FF]|[\u0750-\u077F]/.test(b)},isUrdu:function(b){return this.isArabic(b)||/[\uFE70-\uFEFF]/.test(b)},isHebrew:function(b){return/[\u0590-\u05FF]|[\uFB00-\uFB4F]/.test(b)},isFarsi:function(b){return this.isUrdu(b)},isTai:function(b){return/[\u0E00-\u0E7F]/.test(b)},isHindi:function(b){return/[\u0900-\u097F]/.test(b)},isTamil:function(b){return/[\u0B80-\u0BFF]/.test(b)}, isHimalayaRahm:function(b){return/[\u0D00-\u0D7F]/.test(b)},isRightToLeft:function(b){return this.isArabic(b)||this.isUrdu(b)||this.isHebrew(b)||this.isFarsi(b)||this.isHindi(b)||this.isHimalayaRahm(b)}},Directory={getFileName:function(b){b=b.replaceAll("\\","/",!0);if(""==Directory.getFileSuffix(b))return"index.html";var c=b.lastIndexOf("/");return-1==c?b:b.substr(c+1)},getFilePath:function(b){b=b.replaceAll("\\","/",!0);var c=b.lastIndexOf("/");return-1==c?"":b.substr(0,c+1)},getFileSuffix:function(b){b= b.replaceAll("\\","/",!0);var c=b.lastIndexOf(".");return-1==c?"":b.substr(c)},getFolderName:function(b){b=Directory.getFilePath(b);if(""==b)return"";b=Directory.removeSlash(b);var c=b.lastIndexOf("/");return-1==c?b:b.substr(c+1)},addSlash:function(b){b=b.replaceAll("\\","/",!0);return b.endsWith("/")?b:b+"/"},removeSlash:function(b){b=b.replaceAll("\\","/",!0);return b.endsWith("/")?b.substring(0,b.length-1):b},getUpperFilePath:function(b){b=b.replaceAll("\\","/",!0);var c=b.split("/"),d=c.length; return b=b.endsWith(".html")||b.endsWith("/")?b.remove(c[d-2]+"/"+c[d-1]):b.remove(c[d-1])}};function animateOnce(b,c,d,f,g,h){if(b&&c)if(void 0==d||0===d||isIE9())b.css(c),f&&f instanceof Function&&f();else{var k=!1;setAnimation(b,d,g,h);b.one("transitionend webkitTransitionEnd oTransitionEnd MSTransitionEnd",function(){1!=k&&(k=!0,setAnimation(b,0),f&&f instanceof Function&&f())});b.css(c)}} function setAnimation(b,c,d,f){if(b&&void 0!=c){100>c&&(c*=1E3);if(void 0==d||""==d)d="all";void 0==f&&(f="ease-in-out");f=d+" %dms "+f;0
"),this.logDiv.css({position:"absolute",width:"450px",height:"150px",top:"50px",overflow:"auto","z-index":"100000","background-color":"white"}),$("body")[0]&&$("body")[0].appendChild(this.logDiv[0]));b=$("

"+b+"

");b.css("color",c);this.logDiv.append(b); c=this.logDiv[0];c.scrollTop=c.scrollHeight},info:function(){if(this.isDebug()){$.browser&&$.browser.msie&&(arguments=[String.format.apply(this,arguments)]);try{console&&console.log&&console.log.apply(console,arguments)}catch(b){}this.logForPad(String.format.apply(this,arguments),"black")}},debug:function(){if(this.isDebug()&&!(3>this.level)){$.browser&&$.browser.msie&&(arguments=[String.format.apply(this,arguments)]);try{console&&console.debug&&console.debug.apply(console,arguments)}catch(b){}this.logForPad(String.format.apply(this, arguments),"blue")}},warn:function(){if(this.isDebug()&&!(2>this.level)){$.browser&&$.browser.msie&&(arguments=[String.format.apply(this,arguments)]);try{console&&console.warn&&console.warn.apply(console,arguments)}catch(b){}this.logForPad(String.format.apply(this,arguments),"#FFA042")}},error:function(){if(this.isDebug()&&!(4>this.level)){$.browser&&$.browser.msie&&(arguments=[String.format.apply(this,arguments)]);try{console&&console.error&&console.error.apply(console,arguments)}catch(b){}this.logForPad(String.format.apply(this, arguments),"red")}},print:function(){var b=String.format.apply(this,arguments),c=(new Date).format("hh:mm:ss.S");this.debug("[%s] %s",c,b)}}}),divHint=Class({create:function(b,c,d,f){this.instance=$("
");this.setText(b);void 0==f&&(f=$("body"));f.append(this.instance);this.instance.css({display:"none",opacity:0});this.moveto(c,d);this.animation=!1;this.className="hint"},setAnimate:function(b){this.animation=b;1==b&&this.instance.css({"-moz-transition":"all 0.2s ease-in-out", "-webkit-transition":"all 0.2s ease-in-out","-o-transition":"all 0.2s ease-in-out","-ms-transition":"all 0.2s ease-in-out",transition:"all 0.2s ease-in-out"})},setStyle:function(b){this.instance.removeClass(this.className);this.instance.addClass(b);this.className=b},setText:function(b){this.instance.html(b)},moveto:function(b,c){this.instance.css({left:b,top:c})},show:function(){this.instance.css({display:"block",opacity:1})},hide:function(){1==this.animation?this.instance.css({display:"none",opacity:0}): this.instance.css({display:"none",opacity:1})},destroy:function(){this.hide();this.instance.empty();this.instance.remove()},width:function(){return this.instance.width()+3*this.padding()},height:function(){return this.instance.height()+3*this.padding()},padding:function(){var b=this.instance.css("padding");return void 0==b||null==b||""==b?0:iPadding=parseInt(b.replace("px",""))},addClass:function(b){this.instance.addClass(b)}}); Class("ObjectPool",{objects:null,length:0,create:function(){this.objects=[]},add:function(b){b&&(this.objects.push(b),this.length=this.objects.length)},remove:function(b){b&&(this.objects.removeElement(b),this.length=this.objects.length)},exists:function(b){if("string"!=typeof b||""==b)return!1;b=b.toLowerCase();for(var c=0;cb.children("img").width()&&(h=b.children("img").width());b.children("img")&&k>b.children("img").height()&&(k=b.children("img").height());var l=.7*k;try{f.style.width=h+"px";f.style.height=l+"px";f.width=h;f.height=l; f.className="reflect";$(f).css({transform:"translateY(-1px)"});g.save();g.translate(0,k);g.scale(1,-1);g.drawImage(c,0,0,h,k);g.restore();g.globalCompositeOperation="destination-out";var m=g.createLinearGradient(0,0,0,l);m.addColorStop(1,"rgba(255, 0, 0, 1.0)");m.addColorStop(0,"rgba(255, 0, 0, 0)");g.fillStyle=m;g.rect(0,0,h,2*l);g.fill();d&&d.remove()}catch(n){}};c.onerror=function(){c.onload=c.onerror=null};c.src=b.children("img")[0].src}; $.fn.allowNumberOnly=function(){$(this).keypress(function(b){b=b||e;b=b.keyCode||b.which;return 48<=b&&57>=b?!0:!1}).focus(function(){this.style.imeMode="disabled"}).bind("paste",function(){var b=window.clipboardData.getData("Text");return/^\d+$/.test(b)?!0:!1})};function getAnimationEnd(){var b=document.createElement("div"),c={animation:"animationend",OAnimation:"oAnimationEnd",MozAnimation:"animationend",WebkitAnimation:"webkitAnimationEnd"},d;for(d in c)if(void 0!==b.style[d])return c[d]} var getRealURL=function(b){if(b.isUrl()){var c=b.toLocaleLowerCase(),d=/^([_a-z\d\-]+\.)*[_a-z\d\-]+\.(com|net|int|info|edu|org|gov|club|biz|mil|xyz|[a-z]{2}[$\/]?)+/;/(f|ht)tp(s?):\/\//.test(c)||d.test(c)&&(b=getProtocal()+b)}else{c=window.location.href.removeStartFrom("#p=");c=Directory.getFilePath(c).substring(0,c.lastIndexOf("/"));d=Directory.getUpperFilePath(c);if(0<=b.indexOf("./"))return b=c+b.remove("./");b=0<=b.indexOf("../")?d+b.remove("../"):c+b}return b}; function dateFormat(b,c){b=new Date(parseInt(b));c=c.replace(/yyyy|YYYY/,b.getFullYear().toString());c=c.replace(/yy|YY/,9',SearchItemRelation={NEARBY:0,SPACE:1,DOUBLE_SPACE:2,RETURN:3},PageTextSelectMode={LINE:0,COLUMN:1}; if(window.aliasLanguage){var source={btnFullScreen:["btnFullscreen"],btnDisableFullScreen:["btnExitFullscreen"],btnSelection:["btnSelectText"],btnNextPage:["btnPageForward"],btnPrePage:["btnPageBack"]},property;for(property in source)aliasLanguage[property]||(aliasLanguage[property]=source[property])}else window.aliasLanguage={btnFullScreen:["btnFullscreen"],btnDisableFullScreen:["btnExitFullscreen"],btnSelection:["btnSelectText"],btnNextPage:["btnPageForward"],btnPrePage:["btnPageBack"]}; var checkBookConfig=function(){void 0==window.aliasConfig&&(window.aliasConfig={});bookConfig.isShowMobileBottomFullscreenPrompts=getConfigValue("isShowMobileBottomFullscreenPrompts",!1);bookConfig.searchColor=getConfigValue("searchColor","#00ffff");bookConfig.searchAlpha=getConfigValue("searchAlpha",.3);bookConfig.appLogoIcon=getConfigValue("appLogoIcon","");bookConfig.HomeURL=getConfigValue("HomeURL","");bookConfig.bookTitle=getConfigValue("bookTitle","FLIPBOOK");bookConfig.bookDescription=getConfigValue("bookDescription", "");bookConfig.toolbarColor=getConfigValue("toolbarColor","#27181A");bookConfig.iconColor=getConfigValue("iconColor","#FFFFFF");bookConfig.toolbarColor==bookConfig.iconColor&&(bookConfig.iconColor=Color(bookConfig.toolbarColor).reverse());bookConfig.pageNumColor=getConfigValue("pageNumColor","#000000");bookConfig.formBackgroundColor=getConfigValue("formBackgroundColor",bookConfig.toolbarColor);bookConfig.formFontColor=getConfigValue("formFontColor",bookConfig.iconColor);bookConfig.formBackgroundColor== bookConfig.formFontColor&&(bookConfig.formFontColor=Color(bookConfig.formBackgroundColor).reverse());bookConfig.loadingBackground=getConfigValue("loadingBackground","#1F2232");bookConfig.loadingDisplayTime=getConfigValue("loadingDisplayTime",10);bookConfig.searchHightlightColor=getConfigValue("searchHightlightColor","#fdc606");bookConfig.logoHeight=getConfigValue("logoHeight",40);bookConfig.logoTop=getConfigValue("logoTop",0);bookConfig.logoPadding=getConfigValue("logoPadding",0);bookConfig.isFixLogoSize= getConfigValue("isFixLogoSize",!1);bookConfig.HomeButtonVisible=getConfigValue("HomeButtonVisible",!1);bookConfig.ShareButtonVisible=getConfigValue("ShareButtonVisible",!1);bookConfig.isInsertFrameLinkEnable=getConfigValue("isInsertFrameLinkEnable",!0);bookConfig.addCurrentPage=getConfigValue("addCurrentPage",!1);bookConfig.DoubleSinglePageButtonVisible=getConfigValue("DoubleSinglePageButtonVisible",!1);bookConfig.ToolBarVisible=getConfigValue("ToolBarVisible",!0);bookConfig.WeChatShareButtonVisible= getConfigValue("WeChatShareButtonVisible",!1);bookConfig.ThumbnailsButtonVisible=getConfigValue("ThumbnailsButtonVisible",!1);bookConfig.thumbnailColor=getConfigValue("thumbnailColor",bookConfig.formBackgroundColor);bookConfig.thumbnailAlpha=getConfigValue("thumbnailAlpha",100);bookConfig.ThumbnailSize=getConfigValue("ThumbnailSize","small");bookConfig.ZoomButtonVisible=getConfigValue("ZoomButtonVisible",!1);bookConfig.ZoomToolbarVisible=getConfigValue("ZoomToolbarVisible",!0);bookConfig.ZoomMapVisible= getConfigValue("ZoomMapVisible",!0);bookConfig.MagnifierButtonVisible=getConfigValue("MagnifierButtonVisible",!1);bookConfig.SupportOperatePageZoom=getConfigValue("SupportOperatePageZoom",!0);bookConfig.TableOfContentButtonVisible=getConfigValue("TableOfContentButtonVisible",!1);bookConfig.isHideTabelOfContentNodes=getConfigValue("isHideTabelOfContentNodes",!0);bookConfig.BookMarkButtonVisible=getConfigValue("BookMarkButtonVisible",!1);bookConfig.SelectTextButtonVisible=getConfigValue("SelectTextButtonVisible", !1);bookConfig.SearchButtonVisible=getConfigValue("SearchButtonVisible",!1);bookConfig.searchKeywordFontColor=getConfigValue("searchKeywordFontColor","#FFB000");bookConfig.FullscreenButtonVisible=getConfigValue("FullscreenButtonVisible",!0);bookConfig.isNeat&&(bookConfig.FullscreenButtonVisible=!0);bookConfig.hideMiniFullscreen=getConfigValue("hideMiniFullscreen",!1);bookConfig.updatePageNumberForFlip=getConfigValue("updatePageNumberForFlip",!1);bookConfig.leastSearchChar=getConfigValue("leastSearchChar", 0);bookConfig.PrintButtonVisible=getConfigValue("PrintButtonVisible",!1);bookConfig.MessageButtonVisible=getConfigValue("MessageButtonVisible",!1);bookConfig.printWatermarkFile=getConfigValue("printWatermarkFile","");bookConfig.BackgroundSoundButtonVisible=getConfigValue("BackgroundSoundButtonVisible",!1);bookConfig.BackgroundSoundURL=getConfigValue("BackgroundSoundURL","");bookConfig.BackgroundSoundLoop=getConfigValue("BackgroundSoundLoop",-1);bookConfig.HelpButtonVisible=getConfigValue("HelpButtonVisible", !1);bookConfig.helpContentFileURL=getConfigValue("helpContentFileURL","");bookConfig.helpWidth=getConfigValue("helpWidth",400);bookConfig.helpHeight=getConfigValue("helpHeight",450);bookConfig.showHelpContentAtFirst=getConfigValue("showHelpContentAtFirst",!1);bookConfig.aboutButtonVisible=getConfigValue("aboutButtonVisible",!1);bookConfig.aboutContactInfoTxt=getConfigValue("aboutContactInfoTxt","");bookConfig.AutoPlayButtonVisible=getConfigValue("AutoPlayButtonVisible",!1);bookConfig.autoPlayAutoStart= getConfigValue("autoPlayAutoStart",!1);bookConfig.autoPlayDuration=getConfigValue("autoPlayDuration",3);bookConfig.autoPlayLoopCount=getConfigValue("autoPlayLoopCount",1);bookConfig.minZoomWidth=getConfigValue("minZoomWidth",0);bookConfig.minZoomHeight=getConfigValue("minZoomHeight",0);bookConfig.maxZoomWidth=getConfigValue("maxZoomWidth",0);bookConfig.maxZoomHeight=getConfigValue("maxZoomHeight",0);bookConfig.defaultZoomWidth=getConfigValue("defaultZoomWidth",0);bookConfig.defaultZoomHeight=getConfigValue("defaultZoomHeight", 0);bookConfig.middleZoomWidth=getConfigValue("middleZoomWidth",0);isNaN(bookConfig.middleZoomWidth)&&(bookConfig.middleZoomWidth=0);bookConfig.mouseWheelFlip=getConfigValue("mouseWheelFlip",!0);bookConfig.DownloadButtonVisible=getConfigValue("DownloadButtonVisible",!0);bookConfig.DownloadURL=getConfigValue("DownloadURL","");fixDownloadURLValue();bookConfig.bgBeginColor=getConfigValue("bgBeginColor","#E6E6E6");bookConfig.bgEndColor=getConfigValue("bgEndColor","#E3E3E3");bookConfig.bgMRotation=getConfigValue("bgMRotation", 90);bookConfig.backGroundImgURL=getConfigValue("backGroundImgURL","");bookConfig.backgroundOpacity=getConfigValue("backgroundOpacity",100);bookConfig.LeftShadowWidth=getConfigValue("LeftShadowWidth",40);bookConfig.LeftShadowAlpha=getConfigValue("LeftShadowAlpha",1);bookConfig.RightShadowWidth=getConfigValue("RightShadowWidth",40);bookConfig.RightShadowAlpha=getConfigValue("RightShadowAlpha",1);$.system.name==$.system.ANDROID&&$.browser.wechat&&(bookConfig.RightShadowAlpha=1,bookConfig.LeftShadowAlpha= 1);bookConfig.ShowTopLeftShadow=getConfigValue("ShowTopLeftShadow",!0);bookConfig.pageBackgroundColor=getConfigValue("pageBackgroundColor","#FFFFFF");bookConfig.flipshortcutbutton=getConfigValue("flipshortcutbutton",!1);bookConfig.OriginPageIndex=getConfigValue("OriginPageIndex",1);bookConfig.HardPageEnable=getConfigValue("HardPageEnable",!1);bookConfig.HardInnerPageEnable=getConfigValue("HardInnerPageEnable",!1);bookConfig.bookPageStretch=getConfigValue("bookPageStretch",!1);$.browser.msie&&11>$.browser.version&& (bookConfig.HardPageEnable=!1,bookConfig.HardInnerPageEnable=!1);bookConfig.HardPageEnable||(bookConfig.HardInnerPageEnable=!1);bookConfig.thicknessWidthType=getConfigValue("thicknessWidthType","thick").toLowerCase();bookConfig.showThicknessOnMobile=getConfigValue("showThicknessOnMobile",!1);"Chinese"==UserGroups&&(bookConfig.pageHighlightType=getConfigValue("pageHighlightType","book").toLowerCase());"English"==UserGroups&&(bookConfig.pageHighlightType=getConfigValue("pageHighlightType","magazine").toLowerCase()); bookConfig.usePdfJs=getConfigValue("usePdfJs",!1);bookConfig.highDefinitionConversion=getConfigValue("highDefinitionConversion",!1);bookConfig.usePdfJs&&(bookConfig.highDefinitionConversion=!1);bookConfig.highDefinitionConversion=!1;bookConfig.isStopMouseMenu=getConfigValue("isStopMouseMenu",!1);bookConfig.thicknessColor=getConfigValue("thicknessColor","#FFFFFF");bookConfig.RightToLeft=getConfigValue("RightToLeft",!1);bookConfig.flippingTime=getConfigValue("flippingTime",.3);void 0!=bookConfig.flippingTime&& (bookConfig.flippingTime=.2>bookConfig.flippingTime?.2:bookConfig.flippingTime);bookConfig.supportSerialsFlip=getConfigValue("supportSerialsFlip",!0);bookConfig.retainBookCenter=getConfigValue("retainBookCenter",!0);bookConfig.totalPagesCaption=getConfigValue("totalPagesCaption","");bookConfig.pageNumberCaption=getConfigValue("pageNumberCaption","");bookConfig.buttonsSortXML=getConfigValue("buttonsSortXML",[]);bookConfig.toolbarAlwaysShow=getConfigValue("toolbarAlwaysShow",!1);bookConfig.searchbarAlwaysShowOnMobile= getConfigValue("searchbarAlwaysShowOnMobile",!1);isPhone()||isPad()||(bookConfig.toolbarAlwaysShow=!0);bookConfig.leftRightPnlShowOption=getConfigValue("leftRightPnlShowOption","").toLowerCase();bookConfig.topMargin=getConfigValue("topMargin",10);bookConfig.bottomMargin=getConfigValue("bottomMargin",10);bookConfig.leftMargin=getConfigValue("leftMargin",10);bookConfig.rightMargin=getConfigValue("rightMargin",10);bookConfig.topMarginOnMobile=getConfigValue("topMarginOnMobile",10);bookConfig.bottomMarginOnMobile= getConfigValue("bottomMarginOnMobile",10);bookConfig.leftMarginOnMobile=getConfigValue("leftMarginOnMobile",10);bookConfig.rightMarginOnMobile=getConfigValue("rightMarginOnMobile",10);isPhone()||isPad()?(bookConfig.topMargin=bookConfig.topMarginOnMobile,bookConfig.bottomMargin=bookConfig.bottomMarginOnMobile,bookConfig.leftMargin=bookConfig.leftMarginOnMobile,bookConfig.rightMargin=bookConfig.rightMarginOnMobile,bookConfig.phoneFlipShortcutSwitchButtonVisible=getConfigValue("phoneFlipShortcutSwitchButtonVisible", !1),bookConfig.phoneFlipShortcutButton=getConfigValue("phoneFlipShortcutButton",!1),bookConfig.searchbarAlwaysShowOnMobile&&bookConfig.toolbarAlwaysShow&&(bookConfig.topMargin+=50)):bookConfig.phoneFlipShortcutButton=!1;bookConfig.visibleAreaLeft=parseFloat(getConfigValue("visibleAreaLeft","0%"));bookConfig.visibleAreaTop=parseFloat(getConfigValue("visibleAreaTop","0%"));bookConfig.visibleAreaRight=parseFloat(getConfigValue("visibleAreaRight","100%"));bookConfig.visibleAreaBottom=parseFloat(getConfigValue("visibleAreaBottom", "100%"));bookConfig.visibleAreaLeft=isNaN(bookConfig.visibleAreaLeft)?"0%":bookConfig.visibleAreaLeft;bookConfig.visibleAreaTop=isNaN(bookConfig.visibleAreaTop)?"0%":bookConfig.visibleAreaTop;bookConfig.visibleAreaRight=isNaN(bookConfig.visibleAreaRight)?"100%":bookConfig.visibleAreaRight;bookConfig.visibleAreaBottom=isNaN(bookConfig.visibleAreaBottom)?"100%":bookConfig.visibleAreaBottom;bookConfig.bleedAreaLeft=parseFloat(getConfigValue("bleedAreaLeft","0%"));bookConfig.bleedAreaTop=parseFloat(getConfigValue("bleedAreaTop", "0%"));bookConfig.bleedAreaRight=parseFloat(getConfigValue("bleedAreaRight","0%"));bookConfig.bleedAreaBottom=parseFloat(getConfigValue("bleedAreaBottom","0%"));bookConfig.bleedAreaLeft=isNaN(bookConfig.bleedAreaLeft)?"0%":bookConfig.bleedAreaLeft;bookConfig.bleedAreaTop=isNaN(bookConfig.bleedAreaTop)?"0%":bookConfig.bleedAreaTop;bookConfig.bleedAreaRight=isNaN(bookConfig.bleedAreaRight)?"0%":bookConfig.bleedAreaRight;bookConfig.bleedAreaBottom=isNaN(bookConfig.bleedAreaBottom)?"0%":bookConfig.bleedAreaBottom; bookConfig.visibleAreaLeft=bookConfig.bleedAreaLeft?bookConfig.bleedAreaLeft:bookConfig.visibleAreaLeft;bookConfig.visibleAreaTop=bookConfig.bleedAreaTop?bookConfig.bleedAreaTop:bookConfig.visibleAreaTop;bookConfig.visibleAreaRight=bookConfig.bleedAreaRight?100-parseFloat(bookConfig.bleedAreaRight):bookConfig.visibleAreaRight;bookConfig.visibleAreaBottom=bookConfig.bleedAreaBottom?100-parseFloat(bookConfig.bleedAreaBottom):bookConfig.visibleAreaBottom;bookConfig.LinkDownColor=getConfigValue("LinkDownColor", "#9C9C9C");bookConfig.LinkAlpha=getConfigValue("LinkAlpha",.4);bookConfig.googleAnalyticsID=getConfigValue("googleAnalyticsID","");bookConfig.language=getConfigValue("language","English");bookConfig.AboutAddress=getConfigValue("AboutAddress","");bookConfig.AboutEmail=getConfigValue("AboutEmail","");bookConfig.AboutMobile=getConfigValue("AboutMobile","");bookConfig.AboutWebsite=getConfigValue("AboutWebsite","");bookConfig.AboutDescription=getConfigValue("AboutDescription","");bookConfig.AboutAuthor= getConfigValue("AboutAuthor","");bookConfig.totalPageCount=getConfigValue("totalPageCount",1);bookConfig.largePageWidth=getConfigValue("largePageWidth",1440);bookConfig.largePageHeight=getConfigValue("largePageHeight",1728);bookConfig.normalPath=getConfigValue("normalPath","files/page/");bookConfig.largePath=getConfigValue("largePath","files/large/");bookConfig.thumbPath=getConfigValue("thumbPath","files/thumb/");bookConfig.FlipStyle=getConfigValue("FlipStyle","flip");bookConfig.FlipStyle=bookConfig.FlipStyle.toLowerCase(); var b=bookConfig.autoDoublePage?bookConfig.autoDoublePage.toLocaleLowerCase():"auto";"single"!=b&&"auto"!=b&&"double"!=b?getConfigValue("autoDoublePage",!0)?bookConfig.showDoublePage="auto":bookConfig.showDoublePage="single":bookConfig.showDoublePage=b;bookConfig.alwaysDoublePageOnMobile=getConfigValue("alwaysDoublePageOnMobile",!1);bookConfig.upsideOnMobile=function(){return bookConfig.alwaysDoublePageOnMobile&&window.innerHeight>window.innerWidth?!0:!1};bookConfig.QRPath=getConfigValue("QRPath", "files/extfile/QRURL.png");bookConfig.QRCode=getConfigValue("QRCode",!1);bookConfig.MiniStyle=getConfigValue("MiniStyle",!0);bookConfig.AnnotationButtonVisible=getConfigValue("AnnotationButtonVisible",!1);bookConfig.InstructionsButtonVisible=getConfigValue("InstructionsButtonVisible",!1);bookConfig.showInstructionOnStart=getConfigValue("showInstructionOnStart",!0);bookConfig.showBookInstructionOnStart=getConfigValue("showBookInstructionOnStart",!1);bookConfig.showSwitchTipsOnStart=getConfigValue("showSwitchTipsOnStart", !1);bookConfig.EmailButtonVisible=getConfigValue("EmailButtonVisible",!1);bookConfig.btnShareWithEmailSubject=getConfigValue("btnShareWithEmailSubject","");bookConfig.btnShareWithEmailBody=getConfigValue("btnShareWithEmailBody","");bookConfig.socialShareLink=getConfigValue("socialShareLink","");bookConfig.VideoButtonVisible=getConfigValue("VideoButtonVisible",!1);if(!global.videoList||0>=global.videoList.length)bookConfig.VideoButtonVisible=!1;bookConfig.SlideshowButtonVisible=getConfigValue("SlideshowButtonVisible", !1);if(!global.slideshow||0>=global.slideshow.length)bookConfig.SlideshowButtonVisible=!1;bookConfig.CompanyLogoFile=getConfigValue("CompanyLogoFile","");bookConfig.UIBaseURL=getConfigValue("UIBaseURL","");bookConfig.bookBaseURL=getConfigValue("bookBaseURL","");bookConfig.haveAdSense=getConfigValue("haveAdSense",!1);bookConfig.adSenseLeft=getConfigValue("adSenseLeft",0);bookConfig.adSenseTop=getConfigValue("adSenseTop",0);bookConfig.adSenseWidth=getConfigValue("adSenseWidth",0);bookConfig.adSenseHeight= getConfigValue("adSenseHeight",0);bookConfig.adSenseClientId=getConfigValue("adSenseClientId","");bookConfig.adSenseSlotId=getConfigValue("adSenseSlotId","");bookConfig.productName=getConfigValue("productName","Flip HTML5");bookConfig.homePage=getConfigValue("homePage","http://www.fliphtml5.com");bookConfig.preloadNextPage=getConfigValue("preloadNextPage",!0);bookConfig.showMirrorSide=getConfigValue("showMirrorSide",!0);bookConfig.addPaperCoil=getConfigValue("addPaperCoil",!1);bookConfig.addPaperCoil&& !bookConfig.BindingType&&(bookConfig.BindingType="loose");bookConfig.addPaperCoil="loose"==bookConfig.BindingType||"loose2"==bookConfig.BindingType;bookConfig.ToolbarViewMode=getConfigValue("ToolbarViewMode","standard");bookConfig.ToolbarViewMode=bookConfig.ToolbarViewMode.toLocaleLowerCase();bookConfig.isTheBookOpen=getConfigValue("isTheBookOpen",!1);bookConfig.FlipDirection=getConfigValue("FlipDirection",0);bookConfig.phoneFlipShortcutSwitchButtonIcon=getConfigValue("phoneFlipShortcutSwitchButtonIcon", "");bookConfig.HomeButtonIcon=getConfigValue("HomeButtonIcon","");bookConfig.AnnotationButtonIcon=getConfigValue("AnnotationButtonIcon","");bookConfig.VideoButtonIcon=getConfigValue("VideoButtonIcon","");bookConfig.SlideshowButtonIcon=getConfigValue("SlideshowButtonIcon","");bookConfig.ShareButtonIcon=getConfigValue("ShareButtonIcon","");bookConfig.ThumbnailButtonIcon=getConfigValue("ThumbnailButtonIcon","");bookConfig.ZoomInButtonIcon=getConfigValue("ZoomInButtonIcon","");bookConfig.ZoomOutButtonIcon= getConfigValue("ZoomOutButtonIcon","");bookConfig.MagnifierButtonIcon=getConfigValue("MagnifierButtonIcon","");bookConfig.FullscreenButtonIcon=getConfigValue("FullscreenButtonIcon","");bookConfig.ExitFullscreenButtonIcon=getConfigValue("ExitFullscreenButtonIcon","");bookConfig.BookmarkButtonIcon=getConfigValue("BookmarkButtonIcon","");bookConfig.TableOfContentButtonIcon=getConfigValue("TableOfContentButtonIcon","");bookConfig.SearchButtonIcon=getConfigValue("SearchButtonIcon","");bookConfig.PrintButtonIcon= getConfigValue("PrintButtonIcon","");bookConfig.BackgroundSoundButtonOnIcon=getConfigValue("BackgroundSoundButtonOnIcon","");bookConfig.BackgroundSoundButtonOffIcon=getConfigValue("BackgroundSoundButtonOffIcon","");bookConfig.HelpButtonIcon=getConfigValue("HelpButtonIcon","");bookConfig.AboutButtonIcon=getConfigValue("AboutButtonIcon","");bookConfig.AutoPlayStartButtonIcon=getConfigValue("AutoPlayStartButtonIcon","");bookConfig.AutoPlayStopButtonIcon=getConfigValue("AutoPlayStopButtonIcon","");bookConfig.DownloadButtonIcon= getConfigValue("DownloadButtonIcon","");bookConfig.facebookShotImageURL=getConfigValue("facebookShotImageURL","");bookConfig.searchTextJS=getConfigValue("searchTextJS","files/search/book_config.js");bookConfig.searchPositionJS=getConfigValue("searchPositionJS","files/search/text_position.js");bookConfig.userSmallMode=getConfigValue("userSmallMode",!0);bookConfig.maxWidthToSmallMode=getConfigValue("maxWidthToSmallMode",300);bookConfig.maxHeightToSmallMode=getConfigValue("maxHeightToSmallMode",300); bookConfig.backgroundScene=getConfigValue("backgroundScene","None");bookConfig.bgSoundVol=getConfigValue("bgSoundVol",50);bookConfig.bgSoundVol=Number.between(bookConfig.bgSoundVol,0,100);bookConfig.enablePageBack=getConfigValue("enablePageBack",!1);bookConfig.userListPath=getConfigValue("userListPath","files/extfiles/users.js");bookConfig.isFlipPdf=getConfigValue("isFlipPdf",!1);bookConfig.SingleModeBanFlipToLastPage=getConfigValue("SingleModeBanFlipToLastPage",!1);bookConfig.isSingleBookFullWindowOnMobile= getConfigValue("isSingleBookFullWindowOnMobile",!1);bookConfig.showGotoButtonsAtFirst=getConfigValue("showGotoButtonsAtFirst",!1);0==bookConfig.isFlipPdf&&void 0!=global.isFlipPdf&&(bookConfig.isFlipPdf=isFlipPdf);bookConfig.FlipSound=getConfigValue("FlipSound",!0);bookConfig.CurlingPageCorner=getConfigValue("CurlingPageCorner",!0);bookConfig.BanFlipFromDirection=getConfigValue("BanFlipFromDirection",!1);bookConfig.iconFontColor=getConfigValue("iconFontColor","#ffffff");try{void 0!=global.staticAd&& 1==staticAd.haveAd&&void 0==global.staticAd.adPosition&&("Chinese"==UserGroups&&(global.staticAd.adPosition=1),"English"==UserGroups&&(global.staticAd.adPosition=0)),void 0!=global.staticAd&&1==staticAd.haveAd&&1!=parseInt(global.staticAd.adPosition)?bookConfig.retainBookCenter=!1:bookConfig.retainBookCenter=getConfigValue("retainBookCenter",!0)}catch(c){}bookConfig.updateURLForPage=getConfigValue("updateURLForPage",!0);bookConfig.borderColor=getConfigValue("borderColor","#572f0d");bookConfig.outerCoverBorder= getConfigValue("outerCoverBorder",!1);bookConfig.hardCoverBorderWidth=getConfigValue("hardCoverBorderWidth",0);bookConfig.cornerRound=getConfigValue("cornerRound",0);bookConfig.hardCoverBorderWidth=bookConfig.HardPageEnable?Number.between(0,16,bookConfig.hardCoverBorderWidth):0;bookConfig.cornerRound=bookConfig.HardPageEnable?Number.between(0,bookConfig.hardCoverBorderWidth,bookConfig.cornerRound):0;bookConfig.coverTexture=getConfigValue("coverTexture","none");bookConfig.passwardPrompt=getConfigValue("passwardPrompt", "");bookConfig.SlideshowAutoPlay=getConfigValue("SlideshowAutoPlay",!1);bookConfig.SlideshowPlayInterval=getConfigValue("SlideshowPlayInterval",5);bookConfig.productName=getConfigValue("productName","Flip HTML5");bookConfig.homePage=getConfigValue("homePage","http://www.fliphtml5.com");global.productName=bookConfig.productName||"Flip HTML5";global.homePage=bookConfig.homePage||"http://www.fliphtml5.com";bookConfig.backgroundPosition=getConfigValue("backgroundPosition","Stretch");bookConfig.restorePageVisible= getConfigValue("restorePageVisible",!1);bookConfig.restorePageDuration=getConfigValue("restorePageDuration",86400);bookConfig.toobarClear=getConfigValue("toobarClear",!1);bookConfig.bottomToolBarAlpha=getConfigValue("bottomToolBarAlpha",1);bookConfig.topToolBarAlpha=getConfigValue("topToolBarAlpha",1);bookConfig.ToolBarAlpha=getConfigValue("ToolBarAlpha",1);bookConfig.phoneSearchBarAlpha=getConfigValue("phoneSearchBarAlpha",.8);(isPhone()||isPad())&&"slide"!=bookConfig.FlipStyle.toLowerCase()&&(bookConfig.FlipStyle= "flip");isBelowIE9()&&(bookConfig.FlipStyle="slide");if(isPhone()||isPad()||"slide"==bookConfig.FlipStyle.toLowerCase()&&"lite"==bookConfig.ToolbarViewMode.toLowerCase())bookConfig.flipshortcutbutton=!1;if(bookType==BookType.slide_book&&"lite"==bookConfig.ToolbarViewMode.toLowerCase()||bookType==BookType.singleSlide_book&&"lite"==bookConfig.ToolbarViewMode.toLowerCase()||isPhone()||isPad())bookConfig.flipshortcutbutton=!1;if(global.videoList&&1<=global.videoList.length)for(b=0;b");bookConfig.AboutDescription=bookConfig.AboutDescription.replace(/\r/g,"
");checkBookmarkConfig();isBelowIE9()&&(bookConfig.BookMarkButtonVisible=!1,bookConfig.AnnotationButtonVisible=!1,bookConfig.WeChatShareButtonVisible= !1);bookConfig.useTheAliCloudChart&&bookConfig.backGroundImgURL&&(0<=bookConfig.backGroundImgURL.indexOf("?")?bookConfig.backGroundImgURL+="&x-oss-process=image/resize,h_800":bookConfig.backGroundImgURL+="?x-oss-process=image/resize,h_800",window.isSupportWebp&&(bookConfig.backGroundImgURL+="/format,webp"));checkURLValue();global.checkReportConfig&&checkReportConfig();global.aboutReadTimesCaptions="Views";"Chinese"==UserGroups&&(global.aboutReadTimesCaptions="\u9605\u8bfb\u6b21\u6570");bookConfig.isNeat= getConfigValue("isNeat",!1);0<=window.location.hash.indexOf("isNeat")&&(bookConfig.isNeat=!0);bookConfig.phoneToolbarType=getConfigValue("phoneToolbarType","image").toLowerCase();bookConfig.phoneIconNumber=getConfigValue("phoneIconNumber",6);bookConfig.phoneIconNumber=Math.max(1,bookConfig.phoneIconNumber);bookConfig.showAdOnTop=getConfigValue("showAdOnTop",!0);bookConfig.bookPath=getConfigValue("bookPath",window.location.href);bookConfig.loadPreviewImage=!1;bookConfig.removeLoad=!0;bookConfig.showArticleDescription= getConfigValue("showArticleDescription",!1);bookConfig.showArticlePageFlashes=getConfigValue("showArticlePageFlashes",!0)}; function checkBookmarkConfig(){global.bmtConfig||(bmtConfig=[]);void 0==bmtConfig.onSideEdge&&(bmtConfig.onSideEdge=!0);void 0==bmtConfig.showPage&&(bmtConfig.showPage=!1);void 0==bmtConfig.hasTexture&&(bmtConfig.hasTexture=!1);bmtConfig.tabs&&0bookConfig.topMargin&&(bookConfig.topMargin=75),"vertical"==bookConfig.flipDrection&&75>bookConfig.bottomMargin&&(bookConfig.topMargin=75))} var isBool=function(b){if(!0===b||!1===b)return!0;if(void 0==b)return!1;var c=["false","no","hide","disable"];b=b.toLowerCase();return 0>["true","yes","show","enable"].indexOf(b)&&0>c.indexOf(b)?!1:!0},getConfigValue=function(b,c){void 0!=c&&"string"==typeof c&&""!=c.trim()&&isBool(c)&&(c=parseBool(c));b=void 0!=bookConfig[b]?bookConfig[b]:getValueFromAliasConfig(b);return void 0==b?c:void 0==c?b:"number"==typeof c?Number(b):"boolean"==typeof c?parseBool(b):"string"==typeof c&&"#"==c[0]?Color(b).toString(): b},getValueFromAliasConfig=function(b){if(global.aliasConfig&&(b=aliasConfig[b]))for(var c=0;cc.length)return Point(0,0); c=c[1].split(", ");return Point(parseInt(c[0],10),parseInt(c[1],10))},getTransformScale=function(b){switch(browserType){case 3:var c=b.style["-ms-transform"];break;case 2:c=b.style["-moz-transform"];break;case 1:c=b.style["-webkit-transform"];break;case 4:c=b.style["-o-transform"];break;default:c=b.style.transform}if(void 0==c||null==c)if(c=b.style.transform,void 0==c||null==c)return 1;c=c.match(/scale\((.*?)\)/)||c.match(/scale3d\((.*?)\)/);if(null==c||""==c||2>c.length)return 1;c=c[1].split(","); return c[0]},getColor=function(b,c){b=bookConfig[b];return void 0!=b?Color(b).toString():c},getImage=function(b){return b?$(""):new Image},parseBool=function(b,c){if(!0===b||!1===b)return b;if(void 0==b||null==b)return!1;c=!!c;if("number"==typeof b)return 0!=b;if("string"!=typeof b||""==b)return!1;var d=["true","yes","show","enable"],f=["false","no","hide","disable"];b=b.toLowerCase();return 0>d.indexOf(b)&&0>f.indexOf(b)?c:0<=d.indexOf(b)},getLanguage=function(b,c){if(global.selectedLanguage&& selectedLanguage[b])return selectedLanguage[b];if(global.aliasLanguage&&aliasLanguage[b]){b=aliasLanguage[b];for(var d=0;db.length)return b;var d=b.length;c=b.toLowerCase().indexOf(c.toLowerCase());if(25<=c){var f=Math.max(25<=d-c?c-25:d-50,0);f=".."+b.substring(f,c)}else f=b.substring(0,c);b=25h.length)){g=getRealPageNumber(h[0]);var k=getRealPageNumber(h[1]);h=Math.max(g,k);for(g=Math.min(g,k);g<=h;g++)g>bookConfig.totalPageCount||c(g)||d.push(g)}}}return d},isSlideBook=function(){return"slide"==bookConfig.FlipStyle.toLowerCase()||isBelowIE9()?!0:!1}; function addGoogleAdSense(){bookConfig.haveAdSense&&bookConfig.adSenseClientId&&loadJavascript("//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js",function(){var b=document.createElement("ins");b=$(b);b.addClass("adsbygoogle");b.css({display:"inline-block",width:"100%",height:"100%"});b.attr("data-ad-client",bookConfig.adSenseClientId);b.attr("data-ad-slot",bookConfig.adSenseSlotId);var c=$("
");c.css({position:"absolute","z-index":100,left:bookConfig.adSenseLeft+"px",top:bookConfig.adSenseTop+ "px",width:bookConfig.adSenseWidth+"px",height:bookConfig.adSenseHeight+"px"});c.bind(_event._down,function(){BookEvent.trigger("googleAdSense",[bookConfig.adSenseClientId,bookConfig.adSenseSlotId,bookConfig.adSenseLeft,bookConfig.adSenseTop,bookConfig.adSenseWidth,bookConfig.adSenseHeight])});tmpContainer.append(c);c.append(b);eval("(adsbygoogle = window.adsbygoogle || []).push({});")})} var changeLanguage=function(b){selectLanguage(b);global.toolBar&&toolBar.changeLanguage&&toolBar.changeLanguage();global.printBody&&printBody.changeLanguage();global.helpBody&&helpBody.changeLanguage();global.aboutBody&&aboutBody.changeLanguage();global.sharePanel&&sharePanel.changeLanguage();global.languagePanel&&languagePanel.changeLanguage();global.videoGallery&&videoGallery.changeLanguage();global.photoGallery&&photoGallery.changeLanguage();global.bookmark&&bookmark.changeLanguage();global.frmTableOfContent&& frmTableOfContent.changeLanguage();global.frmSearch&&frmSearch.changeLanguage();global.thumbnail&&thumbnail.changeLanguage();global.bookInstructions&&global.bookInstructions.changeLanguage&&global.bookInstructions.changeLanguage();global.telephoneNumberForm&&global.telephoneNumberForm.changeLanguage();global.settingBody&&global.settingBody.changeLanguage();global.doubleSinglePageForm&&global.doubleSinglePageForm.changeLanguage();global.downLoadBody&&global.downLoadBody.changeLanguage();global.annotationPannel&& global.annotationPannel.changeLanguage()},baiduAnalytics=function(){bookConfig.baiduAnalyticsID&&window.setTimeout(function(){var b=document.createElement("script");b.src="https://hm.baidu.com/hm.js?"+bookConfig.baiduAnalyticsID;var c=document.getElementsByTagName("script")[0];c.parentNode.insertBefore(b,c)},3E3)},controlAudioVolume=function(){if(!isNaN(bookConfig.bgSoundVol)){var b=parseFloat(bookConfig.bgSoundVol/100);global.bgSound&&global.bgSound.setVolume(b);flipAudio&&(flipAudio[0].volume=b)}}, TurnonAutoFlip=function(){bookConfig.autoFlipOnStart&&window.setTimeout(function(){auto_player&&auto_player.start();toolBar&&toolBar.changeAutoPlayIcon&&toolBar.changeAutoPlayIcon()},1E3)},flipSoundIsPlaying=bookConfig.FlipSound,playFlipSound=function(){if(flipSoundIsPlaying)if(!isPhone()&&!isPad()&&!isIE()){var b="flipsound";if(bookType==BookType.slide_book||bookType==BookType.singleSlide_book)b="slidesound";b=$("");$("body").append(b);var c=parseFloat(bookConfig.bgSoundVol/100);b[0].volume=c;b.bind("ended",function(){$(this).remove()});try{b[0].currentTime=0,b[0].play()}catch(d){}}else if(!isPlaying||!isAndroidDefault())try{flipAudio[0].currentTime=0,flipAudio[0].play()}catch(d){}},initFlipSound=function(){if(isPhone()||isPad()||isIE()){var b="flipsound";if(bookType==BookType.slide_book||bookType==BookType.singleSlide_book)b="slidesound";flipAudio= $("");$("body").append(flipAudio)}};function copyFromObj(b){if(b){b.focus();b.select();try{document.execCommand("Copy")}catch(c){b=b.val(),copyToClipboard(b)}}} function copyHref(b){global.isBelowIE9()||(b=new ClipboardJS(b,{text:function(c){return window.location.href}}),b.on("success",function(c){"Chinese"==UserGroups&&alert("\u590d\u5236\u7f51\u5740\u6210\u529f");"English"==UserGroups&&alert("Copied successfully");c.clearSelection()}),b.on("error",function(c){uc?("Chinese"==UserGroups&&alert("\u590d\u5236\u7f51\u5740\u6210\u529f"),"English"==UserGroups&&alert("Copied successfully"),c.clearSelection()):("Chinese"==UserGroups&&alert("\u590d\u5236\u7f51\u5740\u5931\u8d25"), "English"==UserGroups&&alert("Copied failed"))}))} function copyToClipboard(b){if(window.clipboardData)window.clipboardData.clearData(),window.clipboardData.setData("Text",b);else if(-1!=navigator.userAgent.indexOf("Opera"))window.location=b;else if(window.netscape){try{netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect")}catch(g){return alert(getLanguage("infCopyToClipboard","Your browser does not support clipboard.")),!1}var c=Components.classes["@mozilla.org/widget/clipboard;1"].createInstance(Components.interfaces.nsIClipboard);if(c){var d= Components.classes["@mozilla.org/widget/transferable;1"].createInstance(Components.interfaces.nsITransferable);if(d){d.addDataFlavor("text/unicode");var f=Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);f.data=b;d.setTransferData("text/unicode",f,2*b.length);if(!c)return!1;c.setData(d,null,Components.interfaces.nsIClipboard.kGlobalClipboard)}}}else alert(getLanguage("infCopyToClipboard","Your browser does not support clipboard."))} function hideMoreBar(){global.moreBar&&moreBar.visible&&moreBar.hide()}function GetQueryString(b){b=new RegExp("(^|&)"+b+"=([^&]*)(&|$)","i");b=window.location.search.substr(1).match(b);return null!=b?decodeURIComponent(b).split(",")[2]:""}function getProtocal(){return window.location.href.toLowerCase().startsWith("https://")?"https://":"http://"};var form_icons={drag:"iVBORw0KGgoAAAANSUhEUgAAABkAAAAKCAYAAABBq/VWAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54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twQER+2iB7pEFqYc0R6ZAL8gg3Qu8Doi2mI7IudBMDckL93p8sogttQaSaa7XhJIYahb9ml4JqBWiVglSHQQYZZJBB/wRhBz2oQ98iWVBA8K1xVoO4iAiSIGxIirCgHIQFBYCz0sQ/XQ7GXgxSTLS8JZj4geViWa8g1QdWitl+ZJBBBhmkBI0K9Z8pqFOA7inoVk2tr1JjmGtO+1bUr/OT79n51leJxuAV6T8ag9rjJcAAuDFYXZXo6HwAAAAASUVORK5CYII="};var setCurrentIndexTextField=function(b){b=getShownPageNumberInfo(b);$("#guidPageIndex").html(""+b+"");$("#currentPageIndexTextField")&&$("#currentPageIndexTextField")[0]&&!$("#currentPageIndexTextField")[0].onFocus&&$("#currentPageIndexTextField").val(b);(isPhone()||isPad())&&$(".currentPageIndexTextField")&&$(".currentPageIndexTextField")[0]&&!$(".currentPageIndexTextField")[0].onFocus&&$(".currentPageIndexTextField").val(b)},getShownPageNumberInfo=function(b){BookInfo.isDoublePage();b=BookInfo.getCurrentPages(); for(var c=originTotalPageCount,d="",f=0;fg;g++,h/=10)f=Math.floor(b%h/(h/10)),d+=c[2-g][f];return d} var getShownPageNumber=function(b){var c=bookConfig.pageNumberCaption;if(""==c||void 0==c)return b;b=parseInt(b);c=getShownPageArray();return void 0==c[b]?b:c[b]},getRealPageNumber=function(b){b=getRealPage(b);isNaN(b)&&(b=1);return b},getRealPage=function(b){var c=bookConfig.pageNumberCaption;if(""==c||void 0==c)return parseInt(b);b+="";c=getShownPageArray();for(var d=-1,f=c.length,g=1;g<=f;g++)if(c[g]+""==b){d=g;break}return-1!=d?d:isNaN(parseInt(b))||void 0!==c[parseInt(b)]?"error":parseInt(b)}, setLocationHash=function(b){bookConfig.updateURLForPage&&(window.location.hash="#p="+getShownPageNumber(b))};var nextPageFun=function(b){switch(bookType){case BookType.normal_book:gotoPageFun(BookInfo.getMinPageIndex(flipBook.getCurrentPageIndex())+2,!1,b);break;case BookType.single_book:gotoPageFun(parseInt(singlePageBook.currentPageIndex)+1,!1,b);break;case BookType.slide_book:gotoPageFun(BookInfo.getMinPageIndex(slideBook.getRealPageIndex())+2,!1,b);break;case BookType.singleSlide_book:gotoPageFun(parseInt(singleSlideBook.getRealPageIndex())+1,!1,b);break;case BookType.catalog_book:gotoPageFun(BookInfo.getMinPageIndex(catalogBook.getCurrentPageIndex())+ 2,!1,b);break;case BookType.singleCatalog_book:gotoPageFun(parseInt(singleCatalogBook.currentIndex)+1,!1,b)}},previousPageFun=function(b){switch(bookType){case BookType.normal_book:gotoPageFun(BookInfo.getMaxPageIndex(flipBook.getCurrentPageIndex())-2,!1,b);break;case BookType.catalog_book:gotoPageFun(BookInfo.getMaxPageIndex(catalogBook.getCurrentPageIndex())-2,!1,b);break;case BookType.single_book:gotoPageFun(parseInt(singlePageBook.currentPageIndex)-1,!1,b);break;case BookType.slide_book:gotoPageFun(BookInfo.getMaxPageIndex(slideBook.getRealPageIndex())- 2,!1,b);break;case BookType.singleSlide_book:gotoPageFun(singleSlideBook.getRealPageIndex()-1,!1,b);break;case BookType.singleCatalog_book:gotoPageFun(parseInt(singleCatalogBook.currentIndex)-1,!1,b)}},firstPageFun=function(b){gotoPageFun(1,!1,b)},lastPageFun=function(b){gotoPageFun(originTotalPageCount,!1,b)},gotoPageFun=function(b,c,d){if(!(isNaN(b)||BookEvent.trigger("beforeFlipPage",[b])||(gotoPageVisit(b,d),BookEvent.suspendFlipPage&&0<=BookInfo.getCurrentPagesByIndex(b).indexOf(parseInt(BookEvent.suspendFlipPage))))){b= parseInt(b);var f=bookConfig.totalPageCount;bookConfig.SingleModeBanFlipToLastPage&&bookType==BookType.single_book&&(f=Math.max(1,bookConfig.totalPageCount-1));if(1>b||b>f)0>BookInfo.getCurrentPages().indexOf(f)&&b>f?gotoPageFun(f,c,d):0>BookInfo.getCurrentPages().indexOf(1)&&1>b?gotoPageFun(1,c,d):(b=1>b?getLanguage("lblFirst","This is the first page"):getLanguage("lblLast","This is the last page"),global._tipsBox||(_tipsBox=new TipsBox(b,bookContainer)),_tipsBox.setCaption(b),_tipsBox.showTipsBox()); else if(d=b,BookInfo.isDoublePage()&&(d=BookInfo.getMinPageIndex(d)),d=Math.max(1,d),passwardType()&&bookConfig.excludeFrontPages&&d>parseInt(bookConfig.excludeFrontPages)&&!verifyPassward())global.passwardPannel||(global.passwardPannel=new PasswardPannel),global.passwardPannel.show();else{switch(bookType){case BookType.normal_book:flipBook.gotoPage(b,c);break;case BookType.single_book:singlePageBook.gotoPage(b,c);break;case BookType.slide_book:slideBook.gotoPage(b,c);break;case BookType.singleSlide_book:singleSlideBook.gotoPage(b, c);break;case BookType.catalog_book:catalogBook.gotoPage(b,c);break;case BookType.singleCatalog_book:singleCatalogBook.gotoPage(b,c)}global.bookmark&&global.bookmark.elements.refreshElements();bookConfig.SelectTextButtonVisible&&BookInfo.getBook().unSelect();bookConfig.MagnifierButtonVisible&&BookInfo.getBook().unMagnifierZoom();global.annotationPannel&&global.annotationPannel.clearBtnDownCase();bookConfig.addCurrentPage&&global.sharePanel&&global.sharePanel.elements&&global.sharePanel.elements.fillArea(!0, "link");global.downLoadBody&&downLoadBody.gotoPage(b);if(bookConfig.AnnotationButtonVisible&&!isPhone()&&!isPad()&&BookInfo.getBook().bookAttachments.noteAdd)BookInfo.getBook().bookAttachments.noteAdd.onResize();setCurrentIndexTextField(BookInfo.getCurrentPageIndex(),BookInfo.isDoublePage());setLocationHash(BookInfo.getCurrentPageIndex());global.phoneGotoPagePanel&&global.phoneGotoPagePanel.visible&&global.phoneGotoPagePanel.refreshSlider();NeatStyle.refreshSlider();global.pcArticlePages&&(global.pcArticlePages.clearHighLight(), global.pcArticlePages.setHighLight(b));global.phoneArticlePages&&(global.phoneArticlePages.clearHighLight(),global.phoneArticlePages.setHighLight(b));global.flipPageAudio&&global.flipPageAudio.playByIndex(b);global.phoneGotoPagePanel&&global.phoneGotoPagePanel.showFirstOrLast()}}},gotoPageVisit=function(b,c){var d=window.lastVisitTime?(new Date).getTime()-window.lastVisitTime:0;window.lastVisitTime=(new Date).getTime();BookEvent.trigger("flipPage",[c,BookInfo.getCurrentPages().join("-"),BookInfo.getCurrentPagesByIndex(b).join("-"), d])};var BookInfo=Class({statics:{getCurrentPages:function(){var b=[];if(this.isDoublePage()){var c=this.getCurrentPageIndex();b=this.getPagesByIndex(c)}else c=this.getCurrentPageIndex(),b.push(c);return b},getCurrentPagesByIndex:function(b){var c=[];this.isDoublePage()?c=this.getPagesByIndex(b):c.push(b);return c},getPageCount:function(){return bookConfig.totalPageCount},isRightToLeft:function(){return rightToLeft},getBookType:function(){return bookType},getBook:function(){switch(this.getBookType()){case BookType.normal_book:var b= global.flipBook;break;case BookType.single_book:b=global.singlePageBook;break;case BookType.slide_book:b=global.slideBook;break;case BookType.singleSlide_book:b=global.singleSlideBook;break;case BookType.catalog_book:b=global.catalogBook;break;case BookType.singleCatalog_book:b=global.singleCatalogBook}return b},getCurrentPageIndex:function(){var b=this.getBook();return b&&b.getCurrentPageIndex?b.getCurrentPageIndex():bookConfig.OriginPageIndex},isDoublePage:function(b){var c=this.getBookType();void 0!= b&&(c=b);switch(c){case BookType.single_book:return!1;case BookType.singleSlide_book:return!1;case BookType.singleCatalog_book:return!1}return!0},left:function(){var b=this.getBook();return b&&b.getLeft?b.getLeft():0},top:function(){var b=this.getBook();return b&&b.getTop?b.getTop():0},width:function(){var b=this.getBook();return b&&b.getWidth?b.getWidth():0},height:function(){var b=this.getBook();return b&&b.getHeight?b.getHeight():0},scale:function(){var b=this.getBook();return b&&b.getScale?b.getScale(): 0},isZoomming:function(){return this.getBook().showPage.parameters.zoomming},zoomStatus:function(){return this.getBook()&&this.getBook().status_zoom?!0:!1},container:function(){return bookContainer},getThumbnailPages:function(){for(var b=[],c=Math.ceil(bookConfig.totalPageCount/2),d=0;d<=c;d++){var f=this.getPagesByIndex(2*d+1);0
");this.title=$("

"+FormInfo.getFormTitle(this.formType)+"

");this.close=$(phoneSvgIcons.formClose);this.rightToLeft&&this.stage.addClass("rightToLeft");this.close.bind("click",this.hide.bind(this));this.stage.css({visibility:"hidden"});this.initHtml();this.initEvent();this.onCreate();(isPhone()||isPad())&&this.initScrollEvent()},onCreate:function(){this.stage.insertBefore(this.parent); this.stage.css({position:"absolute",left:this.width+"px",top:0,width:this.width+"px",height:this.height+"px","background-color":colorDiv(this.mainColor,20),color:this.fontColor,overflow:"hidden"})},getPosition:function(b){b=b.originalEvent&&b.originalEvent.changedTouches?b.originalEvent.changedTouches:b.changedTouches?b.changedTouches:[b];return{x:(b[0].pageX||b[0].clientX)+(document.documentElement.scrollLeft||document.body.scrollLeft),y:(b[0].pageY||b[0].clientY)+(document.documentElement.scrollTop|| document.body.scrollTop)}},firstTimeMove:function(b){this.firstTime=!0;this.dragEnd=this.getPosition(b);b=this.dragEnd.x-this.dragStart.x;var c=this.dragEnd.y-this.dragStart.y;0==b&&0!=c&&(this.noSwipeRight=!0);0!=b&&0==c&&(this.noSwipeRight=!1);0==b&&0==c&&(this.noSwipeRight=!0);1.01>=Math.abs(b/c)&&(this.noSwipeRight=!0)},initScrollEvent:function(){this.dragStart={};this.dragEnd={};this.stage.bind(_event._down,function(b){b.stopPropagation();this.formTouching=!0;this.firstTime=this.dragMove=this.noSwipeRight= !1;this.dragEnd=this.dragStart=this.getPosition(b);this.endTime=this.startTime=(new Date).getTime()}.bind(this));this.stage.bind(_event._move,function(b){b.stopPropagation();this.dragMove=!0;this.firstTime||this.firstTimeMove(b);if(this.formTouching){this.dragEnd=this.getPosition(b);var c=this.dragEnd.x-this.dragStart.x;this.noSwipeRight||(b.preventDefault(),0=c&&this.stage.css({transform:"translate3d("+-windowWidth+"px,0,0)"}),c>=windowWidth&&this.stage.css({transform:"translate3d(0px,0,0)"})))}}.bind(this));this.stage.bind(_event._up,function(b){b.stopPropagation();if(this.dragEnd&&void 0!=this.dragEnd.x&&(b=this.dragEnd.x-this.dragStart.x,this.endTime=(new Date).getTime(),this.formTouching&&!this.noSwipeRight&&this.dragMove&&!(0>b))){this.formTouching=!1;var c=(this.endTime-this.startTime)/1E3;0=c&&b>.1* windowWidth?this.hide():windowWidth-this.dragEnd.x+this.dragStart.x>2*windowWidth/3?this.animate(-windowWidth):this.hide();this.dragMove=this.firstTime=this.noSwipeRight=!1}}.bind(this))},show:function(){if(!this.visible&&(this.stage.css({visibility:"visible"}),this.visible=!0,this.animate(-this.width),this.mask||(this.mask=$("
"),this.mask.click(this.hide.bind(this)),this.parent.append(this.mask)),this.mask&&this.mask.show(),BookInfo.getBook().addSearchHighlight(), this.onShow))this.onShow()},hide:function(){this.visible&&(this.visible=!1,this.dragEnd={},this.animate(0),this.mask&&this.mask.hide(),isPhone()||isPad()||BookInfo.getBook().clearSearchHighlight())},animate:function(b){this.animating=!0;var c=transformCSS({tran:{x:b,y:0}});animateOnce(this.stage,c,.2,function(){this.animating=!1;0==b&&this.stage.css({visibility:"hidden"})}.bind(this));animateOnce(this.parent,c,.2,function(){this.animating=!1}.bind(this))},onResize:function(){this.width=windowWidth; this.height=windowHeight;this.stage.css({left:this.width+"px",width:this.width+"px",height:this.height+"px"});var b=this.visible?transformCSS({tran:{x:-this.width,y:0}}):transformCSS({tran:{x:0,y:0}});this.stage.css(b);this.parent.css(b)},showOrHide:function(){!0===this.visible?this.hide():this.show(-this.width)}}).extend(FormFrame),PhoneBottomFormFrame=Class({create:function(b){this._super(b);this.closeUrl="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6RjhBN0ZCRjFCQjgwMTFFNjhCMjQ5NjVERDlGODU5NkUiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6RjhBN0ZCRjJCQjgwMTFFNjhCMjQ5NjVERDlGODU5NkUiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpGOEE3RkJFRkJCODAxMUU2OEIyNDk2NUREOUY4NTk2RSIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpGOEE3RkJGMEJCODAxMUU2OEIyNDk2NUREOUY4NTk2RSIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Prtn4R8AAABdSURBVHjaYvz//z8DLQETA43BqAWjFtDHgv9QTKocyT74T4BPtgWMWAz9j0OebB8w4nA5IzUjmZEAf/DGAb5g+U+tZIpuONGW0DwOWMgwmIFWqWi0sBu1ADsACDAA1jMSLYufr4AAAAAASUVORK5CYII="; this.stage=$("
");this.title=$("

"+FormInfo.getFormTitle(this.formType)+"

");this.close=$("
"+getLanguage("lblCancel","Cancel")+"
");this.rightToLeft&&this.stage.addClass("rightToLeft");this.close.bind(_event._click,this.hide.bind(this));this.stage.css({visibility:"hidden"});this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.stage.insertBefore(this.parent); this.stage.css({position:"fixed",left:0,bottom:-this.height+"px",width:this.width+"px",height:this.height+"px","background-color":colorDiv(this.mainColor,20),color:this.fontColor,overflow:"hidden"})},show:function(){this.visible||(this.visible=!0,this.stage.css({visibility:"visible"}),this.animate(this.height),this.mask||(this.mask=$("
"),this.mask.bind(_event._click,this.hide.bind(this)),this.mask.insertBefore(this.parent)),this.mask&&this.mask.show(),BookInfo.getBook().addSearchHighlight())}, hide:function(){this.visible&&(this.visible=!1,this.animate(0),this.mask&&this.mask.hide(),isPhone()||isPad()||BookInfo.getBook().clearSearchHighlight(),this.onHide())},animate:function(b){this.animating=!0;var c=transformCSS({tran:{x:0,y:-b}});animateOnce(this.stage,c,.2,function(){this.animating=!1;0==b&&this.stage.css({visibility:"hidden"})}.bind(this));window.setTimeout(function(){if(this.onShow)this.onShow()}.bind(this),200)},onResize:function(){this.width=windowWidth;this.height=272;this.stage.css({bottom:-this.height+ "px",width:this.width+"px",height:this.height+"px"});var b=this.visible?transformCSS({tran:{x:0,y:-this.height}}):transformCSS({tran:{x:0,y:0}});this.stage.css(b);this.parent.css(b)},showOrHide:function(){!0===this.visible?this.hide():this.show(this.width)},onHide:function(){}}).extend(FormFrame),PhoneReaderFormFrame=Class({onCreate:function(){this.parent.append(this.stage);this.stage.css({position:"fixed",left:0,bottom:-this.height+"px",width:this.width+"px",height:this.height+"px","background-color":colorDiv(this.mainColor, 20),color:this.fontColor,overflow:"hidden"})},show:function(){this.visible||(this.visible=!0,this.stage.css({visibility:"visible"}),this.animate(this.height),this.mask||(this.mask=$("
"),this.mask.bind(_event._click,this.hide.bind(this)),this.parent.append(this.mask)),this.mask&&this.mask.show(),BookInfo.getBook().addSearchHighlight())}}).extend(PhoneBottomFormFrame),FadeOutFadeForm=Class({create:function(b){this._super(b);this.closeUrl=form_icons.close?"data:image/png;base64,"+ form_icons.close:uiBaseURL+"close.png";this.stage=$("
");this.title=$("

");FormInfo.getFormTitle(this.formType)&&this.title.append($(""+FormInfo.getFormTitle(this.formType)+""));FormInfo.getFormFavicon(this.formType)&&(this.favicon=$(""));this.close=$("");this.rightToLeft&& this.stage.addClass("rightToLeft");this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.stage.appearance("",function(){this.visible=!1;this.onHideAppearance()}.bind(this));this.parent.append(this.stage.getDom());this.title&&this.title.css({cursor:"default"});this.hide()},initEvent:function(){this.stage.drag();this.stage.bind(_event._down,function(b){b.stopPropagation()});this.close.bind("click",this.hide.bind(this));this.close.bind("mouseenter",function(){this.close.css({background:"rgba(255,255,255,0.25)"})}.bind(this)); this.close.bind("mouseleave",function(){this.close.css({background:""})}.bind(this))},initHtml:virtual_function,onHide:function(){},onHideAppearance:function(){}}).extend(FormFrame),SlideForm=Class({create:function(b){this._super(b);this.closeUrl=form_icons.close?"data:image/png;base64,"+form_icons.close:uiBaseURL+"close.png";this.stage=$("
");this.title=$("

");this.title.append($(""+FormInfo.getFormTitle(this.formType)+ ""));FormInfo.getFormFavicon(this.formType)&&(this.favicon=$(""));this.close=$("");this.rightToLeft&&this.stage.addClass("rightToLeft");this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.parent.append(this.stage);this.title&&this.title.css({cursor:"default"});this.hide()},initEvent:function(){this.stage.drag();this.stage.bind(_event._down,function(b){b.stopPropagation()}); this.close.bind("click",this.hide.bind(this));this.close.bind("mouseenter",function(){this.close.css({background:"rgba(255,255,255,0.25)"})}.bind(this));this.close.bind("mouseleave",function(){this.close.css({background:""})}.bind(this))},show:function(){this.visible=!0;this.stage.animate({left:10},400,function(){}.bind(this));this.onShow()},hide:function(){this.visible=!1;this.stage.animate({left:2*-this.width},400,function(){this.onHide()}.bind(this))},onHide:function(){}}).extend(FormFrame),SlideRightForm= Class({create:function(b){this._super(b);this.closeUrl=form_icons.close?"data:image/png;base64,"+form_icons.close:uiBaseURL+"close.png";this.stage=$("
");this.title=$("

");this.title.append($(""+FormInfo.getFormTitle(this.formType)+""));FormInfo.getFormFavicon(this.formType)&&(this.favicon=$(""));this.close=$("");this.rightToLeft&&this.stage.addClass("rightToLeft");this.stage.css({visibility:"hidden"});this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.parent.append(this.stage);this.title&&this.title.css({cursor:"default"})},onResize:function(){var b=windowHeight;this.width=250;this.height=b-24;this.stage.css({right:2*-this.width+"px"})},initEvent:function(){this.stage.bind(_event._down,function(b){b.stopPropagation()});this.close.bind("click",this.hide.bind(this)); this.close.bind("mouseenter",function(){this.close.css({background:"rgba(255,255,255,0.25)"})}.bind(this));this.close.bind("mouseleave",function(){this.close.css({background:""})}.bind(this))},initHtml:virtual_function,showOrHide:function(){this.visible?this.hide():this.show()},show:function(){this.visible=!0;this.stage.css({visibility:"visible"});this.stage.animate({right:0},400,function(){}.bind(this));this.onShow()},hide:function(){this.visible=!1;this.stage.animate({right:2*-this.width},400,function(){this.onHide(); this.stage.css({visibility:"hidden"})}.bind(this))}}).extend(FormFrame),PcBottomForm=Class({create:function(b){this._super(b);this.stage=$("
");this.rightToLeft&&this.stage.addClass("rightToLeft");this.initHtml();this.initEvent();this.onCreate()},onCreate:function(){this.parent.append(this.stage)},initEvent:function(){this.stage.drag();this.stage.bind(_event._down,function(b){b.stopPropagation()});this.stage.bind("click",this.hide.bind(this))}, initHtml:virtual_function,onHide:function(){}}).extend(FormFrame),LoadingBook=Class({create:function(b,c){this.parent=b;this.backgroundColor||(this.backgroundColor="#1F2232")},chooseBookStyle:function(){var b=this.getBookTye();"normal_book"==b?this.init():this.initBookStyle(b)},initBookStyle:function(b){switch(b){case "slide_book":bookType=bookConfig.FlipDirection?windowWidthwindowHeight&&"auto"==bookConfig.showDoublePage||"double"==bookConfig.showDoublePage?BookType.slide_book:BookType.singleSlide_book;init();(isPhone()||isPad())&&global.QRbutton&&QRbutton.hide();break;case "flip_book":bookType=bookConfig.FlipDirection?windowWidthwindowHeight&&"auto"==bookConfig.showDoublePage||"double"==bookConfig.showDoublePage?BookType.normal_book: BookType.single_book;init();bookConfig.flipshortcutbutton&&flipShotButton.animate();break;case "catalog_book":bookType=BookType.catalog_book,init()}},getBookTye:function(){var b="normal_book";if("slide"==bookConfig.FlipStyle.toLowerCase()||isBelowIE9())b="slide_book";"flip"!=bookConfig.FlipStyle.toLowerCase()||isBelowIE9()||(b="flip_book");""!=bookConfig.FlipStyle||isBelowIE9()||(b="flip_book");"catalog"!=bookConfig.FlipStyle.toLowerCase()||isBelowIE9()||(b="catalog_book");return b},init:function(){this.container= $("
");this.bookStyleBox=$("
");this.container.css({"background-color":this.backgroundColor});this.parent.append(this.container);this.container.append(this.bookStyleBox);this.initBookStyleBox()},initBookStyleBox:function(){this.title=$("

");this.description=$("

");this.flipModel=$("
");this.slideModel=$("
");this.flipModel.append($("").asImageButton());this.slideModel.append($("").asImageButton());this.bookStyleBox.append(this.title);this.bookStyleBox.append(this.description);this.bookStyleBox.append(this.flipModel);this.bookStyleBox.append(this.slideModel);this.title.html(window.document.title);this.description.html(getLanguage("lblSelectMode","Select View Mode Please.")+"(10)");this.initEvent()},initEvent:function(){this.flipModel.bind(_event._end,function(){window.clearInterval(this.inteval); this.destroy();this.initBookStyle("flip_book")}.bind(this));this.slideModel.bind(_event._end,function(){window.clearInterval(this.inteval);this.destroy();this.initBookStyle("slide_book")}.bind(this));this.initInterval()},initInterval:function(){var b=10,c=getLanguage("lblSelectMode","Select View Mode Please.");this.inteval=window.setInterval(function(){this.description.html(c+"("+b+")");b--;0>=b&&(window.clearInterval(this.inteval),this.destroy(),this.initBookStyle("flip_book"))}.bind(this),1E3)}, onResize:function(){},destroy:function(){this.container&&(this.container.hide(),this.container.remove(),this.slideModel=this.flipModel=this.bookStyleBox=this.container=void 0)}}); function loadXMLString(b){var c=null;if(!window.DOMParser&&window.ActiveXObject)for(var d=["MSXML.2.DOMDocument.6.0","MSXML.2.DOMDocument.3.0","Microsoft.XMLDOM"],f=0;f
"); this.page=$("
");this.image=$("");this.noThumbBg=$("
");this.leftBtn=$("");this.rightBtn=$("");this.thumbnail.append(this.noThumbBg).append(this.image);this.thumbnail.append(this.page)},resetBtnSrc:function(){this.leftBtn.attr("src", this.leftButtonUrl);this.rightBtn.attr("src",this.rightButtonUrl)},initEvent:function(){this.leftBtn.onTap(function(){this.fillContent(this.currentPageIndex-1)}.bind(this));this.rightBtn.onTap(function(){this.fillContent(this.currentPageIndex+1)}.bind(this))},fillContent:function(b){if(!(1>b||b>bookConfig.totalPageCount)){1==b?this.leftBtn.css({opacity:"0.4",cursor:"auto"}):this.leftBtn.css({opacity:"1",cursor:"pointer"});b==bookConfig.totalPageCount?this.rightBtn.css({opacity:"0.4",cursor:"auto"}): this.rightBtn.css({opacity:"1",cursor:"pointer"});this.currentPageIndex=b;var c=function(d,f){d.match(/^none/)?(this.noThumbBg.css({display:"block"}),this.image.css({display:"none"})):(this.image.attr("src",d),this.noThumbBg.css({display:"none"}),this.image.css({display:"inline-block",width:this.imageWidth+"px",height:"130px"}))}.bind(this);fillImageAfterLoaded(b,"thumb",c);this.fillPage(b);this.callback&&this.callback(b)}},fillPage:function(b){this.page.html(b+"/"+bookConfig.totalPageCount)},getPageIndex:function(){return this.currentPageIndex}}), PictureListForm=Class({initHtml:function(){this.stage=$("
");this.stage.append(this.thumbnail);1");this.button=b;this.initPrintEvent()},getImageSizeForMM:function(b,c){return b/210>=c/297?{width:210,height:Math.floor(210* c/b)}:{width:Math.floor(297*b/c),height:297}},getImageSizeForInches:function(b,c){return b/7.18>=c/10.61?{width:7.18,height:Number.fixed(7.18*c/b,2)}:{width:Number.fixed(10.61*b/c,2),height:10.61}},getImageSizeForIE:function(b,c){return b/8>=c/11.3?{width:8,height:Number.fixed(8*c/b,2)}:{width:Number.fixed(11.3*b/c,2),height:11.3}},printPages:function(b){var c=this;if(b&&b.length){this.initLoadPrint();var d=0;this.printArea.empty();this.printArray=[];var f=function(g,h,k,l){var m=$("
"), n=$(k);g&&-1"),$watermark.css({"z-index":"201",left:"0",top:"0",position:"absolute"}),m.append($watermark),g=this.getImageSizeForInches($watermark[0].naturalWidth,$watermark[0].naturalHeight),$watermark.css({width:g.width+"in",height:g.height+"in"}));isIE()?($(n).parent().css({"text-align":"center", width:"100%",height:"100%"}),n.css({"text-align":"center",margin:"0 auto",display:"inline-block","max-width":"100%","max-height":"100%"})):($(n).parent().css({"text-align":"center",width:"100%",height:"100%"}),n.css({"text-align":"center",margin:"0 auto",display:"inline-block","max-width":"100%","max-height":"100%"}),n[0].naturalWidth/n[0].naturalHeight>8/11.3?n.css({width:"98%"}):n.css({height:"98%"}));this.printArray[l]=m;d++;if(d==b.length){for(l=1;l").on("load",function(){for(var n=this,p=0;p"),this.printLoad.css({display:"none","z-index":"1001",position:"absolute",left:"0",top:"0",width:"100%",height:"100%",background:"rgba(11,11,11,0.7)"}),this.printLoad.bind("click",function(b){b.stopPropagation();window.printLoadStack&&window.printLoadStack.destroy();this.hidePrintLoading()}.bind(this)),this.loadingIcon=$(""),this.printLoad.append(this.loadingIcon),tmpContainer.append(this.printLoad));this.showPrintLoading()},showPrintLoading:function(){this.printLoad&&this.printLoad.fadeIn(200)},hidePrintLoading:function(){this.printLoad&&this.printLoad.fadeOut(200)}}),PrintElements=Class({create:function(b){this._super(b);this.printOnUrl=form_icons.print_on?"data:image/png;base64,"+form_icons.print_on:uiBaseURL+"print_on.png";this.printOffUrl=form_icons.print_off?"data:image/png;base64,"+ form_icons.print_off:uiBaseURL+"print_off.png";this.initElements();this.initEvent(b);this.pickElements(b)},initElements:function(){this.rightToLeft?(this.printAll=$("
"+getLanguage("frmPrintall","Print All Pages")+"
"),this.printCurrent=$("
"+getLanguage("frmPrintcurrent","Print Current Pages")+"
"),this.printRange=$("
"+getLanguage("frmPrintRange","Print Range")+"
")):(this.printAll=$("
"+getLanguage("frmPrintall","Print All Pages")+"
"),this.printCurrent= $("
"+getLanguage("frmPrintcurrent","Print Current Pages")+"
"),this.printRange=$("
"+getLanguage("frmPrintRange","Print Range")+"
"));this.printButton=$("
"+ getLanguage("frmPrintbtn","Print")+"
");this.printButton.printType="printCurrent";this.analysis=new AnalysisPrint(this.printButton);this.pictureListForm=new PictureListForm},pickElements:function(b){b.printOnUrl=this.printOnUrl;b.printOffUrl=this.printOffUrl;b.printAll=this.printAll;b.printCurrent=this.printCurrent;b.printRange=this.printRange;b.printButton=this.printButton;b.pictureListForm=this.pictureListForm},initEvent:function(b){this.printAll.click(function(c){this.buttonEvent(b,c.delegateTarget)}.bind(this)); this.printCurrent.click(function(c){this.buttonEvent(b,c.delegateTarget)}.bind(this));this.printRange.click(function(c){this.buttonEvent(b,c.delegateTarget)}.bind(this));this.printRange.find("input").on("input propertychange change",function(){this.refreshPrintButton()}.bind(this));this.printRange.find("input").bind("mousedown touchstart pointerdown mouseover mousemove touchmove touchstend",function(c){c.stopPropagation()})},buttonEvent:function(b,c){var d=b.stage.find(".on");d.find("img").attr("src", this.printOffUrl);d.find("img")[0].colorChanged=!1;d.removeClass("on");$(c).find("img").attr("src",this.printOnUrl);$(c).find("img")[0].colorChanged=!1;$(c).addClass("on");c=$(c).attr("print");b.printButton.printType=c;this.refreshPrintButton();b.changeItemColor()},refreshPrintButton:function(){"printRange"!=this.printButton.printType||$("#print_range_num").val()?this.lightPrintButton():this.darkPrintButton()},lightPrintButton:function(){$(this.printButton).addClass("usable");$(this.printButton).removeClass("disable"); $(this.printButton).addClass("button_hover")},darkPrintButton:function(){"printRange"==this.printButton.printType&&($(this.printButton).removeClass("usable"),$(this.printButton).removeClass("button_hover"),$(this.printButton).addClass("disable"))},changeLanguage:function(){this.printAll.find(".title").html(getLanguage("frmPrintall","Print All Pages"));this.printCurrent.find(".title").html(getLanguage("frmPrintcurrent","Print Current Pages"));this.printRange.find(".title").html(getLanguage("frmPrintRange", "Print Range"));this.printRange.find("#print_range_num").attr("placeholder",getLanguage("frmPrintexample","Exzample:1,3-7,12"));this.printButton.html(getLanguage("frmPrintbtn","Print"))}}).extend(FormElements),PhonePrintElements=Class({create:function(b){this._super(b);this.printOnUrl=phoneBaseURL+"print_on_phone.png";this.printOffUrl=phoneBaseURL+"print_off_phone.png";this.fontColor=bookConfig.formBackgroundColor?bookConfig.formBackgroundColor:bookConfig.toolbarColor;this.initElements();this.initEvent(b); this.pickElements(b)},initElements:function(){this.rightToLeft?(this.printAll=$("
"+getLanguage("frmPrintall","Print All Pages")+"
"),this.printCurrent=$("
"+getLanguage("frmPrintcurrent","Print Current Pages")+"
"),this.printRange=$("
"+getLanguage("frmPrintRange","Print Range")+"
")):(this.printAll=$("
"+getLanguage("frmPrintall","Print All Pages")+"
"),this.printCurrent=$("
"+getLanguage("frmPrintcurrent","Print Current Pages")+"
"),this.printRange=$("
"+getLanguage("frmPrintRange","Print Range")+"
"));this.printButton=$("
"+getLanguage("frmPrintbtn", "Print")+"
");this.printButton.printType="printCurrent";this.analysis=new AnalysisPrint(this.printButton);this.pictureListForm=new PictureListForm},getOffIcon:function(){return''}, getOnIcon:function(){return''}, buttonEvent:function(b,c){var d=b.stage.find(".on");d.find(".print_icon").html(this.getOffIcon());d.removeClass("on");$(c).find(".print_icon").html(this.getOnIcon());$(c).addClass("on");c=$(c).attr("print");b.printButton.printType=c;this.refreshPrintButton()}}).extend(PrintElements),PcPrintFrame=Class({create:function(b){this.elements=new PrintElements(this);this._super(b)},onCreate:function(){this.initColorCss();this._super()},initColorCss:function(){this.stage.css({"background-color":this.mainColor, color:this.fontColor})},initHtml:function(){this._super()},changeIconColor:function(){this._super();this.pictureListForm.leftBtn.changeButtonColor(this.fontColor);this.pictureListForm.rightBtn.changeButtonColor(this.fontColor);this.changeItemColor()},resetColorChanged:function(){this._super();this.printAll.find("img")[0].colorChanged=!1;this.printCurrent.find("img")[0].colorChanged=!1;this.printRange.find("img")[0].colorChanged=!1;this.pictureListForm&&(this.pictureListForm.leftBtn[0].colorChanged= !1,this.pictureListForm.rightBtn[0].colorChanged=!1)},resetIconSrc:function(){this._super();this.stage.find(".item").find("img").attr("src",this.elements.printOffUrl);this.stage.find(".on").find("img").attr("src",this.elements.printOnUrl);this.pictureListForm&&this.pictureListForm.resetBtnSrc()},changeItemColor:function(){this.printCurrent.changeButtonColor(this.fontColor);this.printRange.changeButtonColor(this.fontColor);this.printAll.changeButtonColor(this.fontColor)},onShow:function(){this.changeIconColor()}}).extend(FadeOutFadeForm), PhonePrintForm=Class({create:function(b){this.elements=new PhonePrintElements(this);this._super(b)},onCreate:function(){this.printAll.css({"background-color":this.fontColor,color:this.mainColor});this.printCurrent.css({"background-color":this.fontColor,color:this.mainColor});this.printRange.css({"background-color":this.fontColor,color:this.mainColor});this.printButton.css({"background-color":this.fontColor,color:this.mainColor});this.favicon&&this.favicon.changeButtonColor(this.fontColor);this._super()}, initHtml:function(){this.title.append(this.close);this.stage.append(this.title);this.stage.append(this.printAll);this.stage.append(this.printCurrent);this.stage.append(this.printRange);this.stage.append(this.printButton)},changeItemColor:function(){},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor)},initEvent:function(){}}).extend(PhoneFormFrame),DownloadElements=Class({create:function(b){this._super(b);this.downloadOnUrl=form_icons.print_on?"data:image/png;base64,"+ form_icons.print_on:uiBaseURL+"print_on.png";this.downloadOffUrl=form_icons.print_off?"data:image/png;base64,"+form_icons.print_off:uiBaseURL+"print_off.png";this.initConfig();this.initElements();this.initEvent(b);this.pickElements(b)},initConfig:function(){this.downloadconfig=window.downloadconfig},initElements:function(){this.rightToLeft?(this.downloadAll=$("
"+getLanguage("DownloadFullPublication","Full Publication")+"
"),this.downloadCurrent=$("
"+getLanguage("DownloadCurrentPage","Current Page")+" "+this.pageIndex+"
"),this.downloadAttachments=$("
"+getLanguage("DownloadAttachedFiles","Attached Files")+"
")):(this.downloadAll=$("
"+getLanguage("DownloadFullPublication","Full Publication")+"
"),this.downloadCurrent=$("
"+getLanguage("DownloadCurrentPage","Current Page")+""+this.pageIndex+"
"),this.downloadAttachments=$("
"+getLanguage("DownloadAttachedFiles","Attached Files")+"
"));this.downloadButton=$("
"+getLanguage("btnDownload","Download")+"
");this.downloadButton.downloadType=downloadconfig.hideDownloadSinglePage?downloadconfig.pdf?"downloadAll":"downloadAttachments":"downloadCurrent";this[this.downloadButton.downloadType].find("img").attr("src",this.downloadOnUrl);this[this.downloadButton.downloadType].addClass("on"); this.selectAttachments=$("");var b=this.downloadconfig.attachments;if(b&&0"+d.name+""))}this.pictureListForm=new PictureListForm(this.gotoPage.bind(this));this.pageIndex=this.pictureListForm.getPageIndex()},gotoPage:function(b){this.pageIndex=b;this.downloadCurrent.find(".page").html(b)},pickElements:function(b){b&&(b.downloadAll=this.downloadAll,b.downloadCurrent= this.downloadCurrent,b.downloadAttachments=this.downloadAttachments,b.selectAttachments=this.selectAttachments,b.downloadButton=this.downloadButton,b.pictureListForm=this.pictureListForm)},initEvent:function(b){this.downloadAll.click(function(c){this.buttonEvent(b,c.delegateTarget)}.bind(this));this.downloadCurrent.click(function(c){this.buttonEvent(b,c.delegateTarget)}.bind(this));this.downloadAttachments.click(function(c){this.buttonEvent(b,c.delegateTarget)}.bind(this));this.downloadButton.click(function(c){var d= this,f,g,h,k,l,m;return $jscomp.asyncExecutePromiseGeneratorProgram(function(n){if(1==n.nextAddress)return f="","downloadAll"==d.downloadButton.downloadType&&(f=d.downloadconfig.pdf.url),"downloadCurrent"!=d.downloadButton.downloadType?n.jumpTo(2):n.yield(getPageDir(d.pageIndex,"normal"),3);2!=n.nextAddress&&(f=n.yieldResult);"downloadAttachments"==d.downloadButton.downloadType&&(f=d.selectAttachments[0].value);if("object"==typeof f)for(g=0;g');p[0].click();p.remove()}.bind(d)),d.downloadPdfLoadingTask.start()):-1');p[0].click();p.remove()}.bind(d)):("downloadCurrent"==d.downloadButton.downloadType&&(f=f.removeStartFrom("?")),f.match(/^none/)?(k=document.createElement("canvas"),l=k.getContext("2d"),k.width=bookConfig.largePageWidth,k.height=bookConfig.largePageWidth,l.fillStyle=bookConfig.pageBackgroundColor,l.fillRect(0,0,bookConfig.largePageWidth,bookConfig.largePageHeight),m=$("'),m[0].click()):window.open(f,"_blank"));n.jumpToEnd()})}.bind(this))},loadImages:function(b){var c=0,d=$("");d.css({width:bookConfig.largePageWidth+"px",height:bookConfig.largePageHeight+"px"});d.attr("width",bookConfig.largePageWidth+"px");d.attr("height",bookConfig.largePageHeight+"px");for(var f=0;f"); g.attr("src",b);g[0].onload=function(h){h=$(this);bookConfig.largePageWidth/bookConfig.largePageHeight>h[0].naturalWidth/h[0].naturalHeight?h.css({width:"auto",height:"100%"}):h.css({width:"100%",height:"auto"});d.drawImage(h);c++;c==imageURL.length&&callback&&callback(imageURL,imageURL,d,index)};g[0].onerror=function(h){c++;c==imageURL.length&&callback&&callback(imageURL,imageURL,d,index)}}},buttonEvent:function(b,c){var d=b.stage.find(".on");d.find("img").attr("src",this.downloadOffUrl);d.find("img")[0].colorChanged= !1;d.removeClass("on");$(c).find("img").attr("src",this.downloadOnUrl);$(c).find("img")[0].colorChanged=!1;$(c).addClass("on");c=$(c).attr("download");b.downloadButton.downloadType=c;b.changeItemColor()},changeLanguage:function(){this.downloadAll.find(".title").html(getLanguage("DownloadFullPublication","Full Publication"));this.downloadCurrent.find(".title").html(getLanguage("DownloadCurrentPage","Current Page"));this.downloadAttachments.find(".title").html(getLanguage("DownloadAttachedFiles","Attached Files")); this.downloadButton.html(getLanguage("btnDownload","Download"))}}).extend(FormElements),PcDownloadFrame=Class({create:function(b){this.elements=new DownloadElements(this);this._super(b)},onCreate:function(){this.initColorCss();this._super()},initColorCss:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor});this.borderColor=this.mainColorObj.reduce(26);this.itemBgColor=this.mainColorObj.add(24)},initHtml:function(){this._super()},initEvent:function(){this._super()},onShow:function(){this.changeIconColor()}, gotoPage:function(b){}}).extend(FadeOutFadeForm),PhoneDownloadForm=Class({create:function(b){this.elements=new DownloadElements(this);this._super(b)},onCreate:function(){this.content.find(".item").css({"background-color":this.fontColor,color:this.mainColor});this.selectContent.css({"background-color":this.fontColor,color:this.mainColor});this.downloadButton.css({"background-color":this.fontColor,color:this.mainColor});this._super()},initHtml:function(){this.title.append(this.close);this.stage.append(this.title); this.downloadContent=$("
");this.content=$("
");this.content1=$("
");downloadconfig.pdf&&this.content1.append(this.downloadAll);downloadconfig.hideDownloadSinglePage||this.content1.append(this.downloadCurrent);this.selectContent=$("
");this.selectContent.append(this.selectAttachments);downloadconfig.attachments&&0");this.content2.append(this.pictureListForm.getDom());this.content.append(this.content2);this.content.append(this.content1);this.downloadContent.append(this.content);this.stage.append(this.downloadContent)},changeIconColor:function(){this._super();this.changeItemColor()},changeItemColor:function(){this.downloadCurrent.changeButtonColor(this.mainColor);this.downloadAttachments.changeButtonColor(this.mainColor); this.downloadAll.changeButtonColor(this.mainColor);this.pictureListForm.leftBtn.changeButtonColor(this.fontColor);this.pictureListForm.rightBtn.changeButtonColor(this.fontColor)},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor);this.changeItemColor()},gotoPage:function(b){this.pictureListForm.fillContent(b)},initEvent:function(){}}).extend(PhoneFormFrame);global.textForPages||(global.textForPages=[]);global.positionForPages||(global.positionForPages=[]); var highlightSearchFun=function(b,c){if(0!=positionForPages.length&&b){var d=!1;window.frmSearch&&frmSearch.visible&&0!=frmSearch.getList().length||(d=!0);var f=search_Text;""==f&&(d=!0);if(1!=d||isPhone()||isPad()){for(d=0;dl;l++)k[l]=c[h+l];g.addHighlight(k);h+=4}}b.css({display:"block"})}}else clearHighlightFun(b)}},clearHighlightFun=function(b){b.css({"background-image":""});b.css({display:"none"});b.empty()},search_Text="",SearchElements=Class({create:function(b){this._super(b);this.callBack=b;this.initElements();this.initEvent(b);this.pickElements(b)}, initElements:function(){this.searchButtonUrl=bookConfig.SearchButtonIcon?bookConfig.SearchButtonIcon:form_icons.search_form?"data:image/png;base64,"+form_icons.search_form:uiBaseURL+"search_form.png";this.searchList=[];this.searchText="";this.input=$("");bookConfig.RightToLeft&&this.input.attr("dir","rtl");this.searchButton=$("");this.searchResult= $("

");this.initSwiper()},initSwiper:function(){this.searchSwiper=$("
");this.searchSwiperList=$("
");this.searchSwiper.append(this.searchSwiperList);this.initPageHtml();isPhone()||isPad()?this.searchSwiper.css({"overflow-y":"auto","overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}):(this.searchSwiper.css({overflow:"hidden"}),this.progress=$("
"),this.progressBar=$("
"), this.searchSwiper.append(this.progress),this.progress.append(this.progressBar),this.searchSwiper.scroll({},Direction.top))},initPageHtml:function(){this.searchPageSwiper=$("");this.pageResult=$("

");this.pageItem=$("
");this.thumb=$("");this.noThumbBg=$("
");if(isPhone()||isPad())this.thumb.css({width:"80px"}),this.noThumbBg.css({width:"80px",height:"104px"});this.thumb.onTap(function(){this.thumb.attr("id")&&((isPhone()||isPad()||global.frmSearch)&&global.frmSearch.hide(),gotoPageFun(this.thumb.attr("id"),!1,"search"))}.bind(this));this.noThumbBg.onTap(function(){this.noThumbBg.attr("index")&&((isPhone()||isPad()||global.frmSearch)&&global.frmSearch.hide(),gotoPageFun(this.noThumbBg.attr("index"), !1,"search"))}.bind(this));this.searchPageSwiper.append(this.pageResult).append(this.pageItem.append(this.noThumbBg).append(this.thumb))},refreshItems:function(b){for(var c=0;c"+b+" :"+getLanguage("lblPage","Page")):this.pageResult.html(getLanguage("lblPage","Page")+": "+b+""),this.thumb.attr("id",c),this.noThumbBg.attr("index",c),fillImageAfterLoaded(c,"thumb",function(d){d.match(/^none/)?(this.noThumbBg.css({display:"block"}),this.thumb.attr("src","").css({display:"none"})):(this.thumb.attr("src", d).css({display:"inline-block"}),this.noThumbBg.css({display:"none"}))}.bind(this))):(this.afterSearchText(),this.searchPageSwiper.css({display:"none"}))},doSearch:function(b){!b.length&&!isNaN(this.searchText)&&this.searchText<=bmtConfig.totalPageCount?this.searchResult.css({display:"none"}):this.searchResult.css({display:"block"});this.searchSwiper.hideLoading();this.searchList=b;this.searchSwiperList.empty();rightToLeft?this.searchResult.html(""+this.searchList.length+" "+getLanguage("lblPages","Found Pages")):this.searchResult.html(getLanguage("lblPages","Found Pages")+" "+this.searchList.length+"");this.refreshSwiper(this.searchSwiperList,this.searchList);this.refresh();BookInfo.getBook().addSearchHighlight()},getSearchText:function(){return this.searchText},getList:function(){return this.searchList},clear:function(){search_Text=this.searchText="";this.input.val(""); this.searchList=[];BookInfo.getBook().clearSearchHighlight();this.searchSwiperList.empty();this.searchResult.html(getLanguage("frmSearchPrompt","Enter key to search."));this.refresh()},pickElements:function(b){b.searchButtonUrl=this.searchButtonUrl;b.searchList=this.searchList;b.searchText=this.searchText;b.input=this.input;b.searchButton=this.searchButton;b.searchResult=this.searchResult;b.searchSwiper=this.searchSwiper;b.searchSwiperList=this.searchSwiperList;b.progress=this.progress;b.progressBar= this.progressBar;b.searchPageSwiper=this.searchPageSwiper;b.pageResult=this.pageResult;this.afterSearchThumbs=b.afterSearchThumbs;this.afterSearchText=b.afterSearchText;b.search=this.search.bind(this)},changeLanguage:function(){this.input.attr("placeholder",FormInfo.getFormTitle("search"));toolBar.edtPreSearch&&toolBar.edtPreSearch.find("input")[0]&&toolBar.edtPreSearch.find("input").val(getLanguage("btnSearch","Search"))}}).extend(FormElements),PcSearchFrame=Class({create:function(b){this.elements= new SearchElements(this);this._super(b)},onCreate:function(){this.initColorCss()},initColorCss:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor})},initHtml:function(){this.stage.addClass("win10_border");this.stage.append(this.title);this.favicon&&(bookConfig.RightToLeft?this.title.append(this.favicon):this.title.prepend(this.favicon));bookConfig.SearchButtonIcon&&(this.searchButton=$(""));this.stage.append(this.close);this.stage.append(this.input);this.stage.append(this.searchButton);this.stage.append(this.searchPageSwiper);this.stage.append(this.searchResult);this.stage.append(this.searchSwiper);this.parent.append(this.stage)},newSearchItem:function(b,c){return new PcSearchItem(b,c)},onResize:function(){var b=Math.max(windowHeight-bookConfig.topMargin-bookConfig.bottomMargin-toolBar.getHeight(),1);toolBar.getWidth();var c=toolBar.getTopHeight()+ 10;this.width=250;this.height=b-87;this.maxHeight=this.height-87;this.stage.css({height:this.height+"px",top:c+"px"});this.searchSwiper.css("height",this.maxHeight+"px");this.elements.refresh()},afterSearchThumbs:function(){this.height=Math.max(windowHeight-bookConfig.topMargin-bookConfig.bottomMargin-toolBar.getHeight(),1)-87;this.searchSwiper.css("height",this.height-287+"px")},afterSearchText:function(){this.height=Math.max(windowHeight-bookConfig.topMargin-bookConfig.bottomMargin-toolBar.getHeight(), 1)-87;this.searchSwiper.css("height",this.height-87+"px");this.searchPageSwiper.css({display:"none"})},getList:function(){return this.elements.getList()},onShow:function(){this.changeIconColor();this.input.focus();BookInfo.getBook().addSearchHighlight()},onHide:function(){BookInfo.getBook().clearSearchHighlight()}}).extend(SlideForm),loadSearchFlag=!1,AnalysisSearch=Class({create:function(b,c){this.callback=c;this.results=[];this.search(b)},search:function(b){if(0==loadSearchFlag)if(isTouchDevice())loadJavascript(fixURLValue(bookConfig.searchTextJS), function(){loadSearchFlag=!0;this.doSearch(b)}.bind(this),function(){loadSearchFlag=!0;this.doSearch(b)}.bind(this));else{var c=!1,d=!1,f=function(){c&&d&&(loadSearchFlag=!0,this.doSearch(b))}.bind(this);loadJavascript(fixURLValue(bookConfig.searchTextJS),function(){c=!0;f()},function(){c=!0;f()});var g=String.format(bookConfig.searchPositionJS,BookInfo.getCurrentPageIndex());loadJavascript(fixURLValue(g),function(){d=!0;f()},function(){d=!0;f()})}else this.doSearch(b)},doSearch:function(b){this.results= searchFromPages(textForPages,b);this.callback(this.results)},getList:function(){return this.results},clear:function(){this.results=[]}}),SearchItem=Class({create:function(b,c){this.fontColor=c.fontColor;this.parent=b;this.parm=c;this.sDescription=this.handleData(c.search_text,c.searchText);this.index=c.search_page;this.sPage=getShownPageNumber(c.search_page);this.sPageTitle=getLanguage("lblPage","Page");this.initHtml();this.initEvent()},initHtml:function(){this.initElement();this.item.append(this.page); this.item.append(this.description);this.parent.append(this.item)},initElement:function(){this.item=$("
");rightToLeft?(this.page=$("
"+this.sPage+":"+this.sPageTitle+"
"),LanguageTool.isRightToLeft(this.parm.search_text)?this.description=$("
"+this.sDescription+"
"):this.description=$("
"+this.sDescription+"
")):(this.page=$("
"+this.sPageTitle+":"+this.sPage+"
"),this.description= $("
"+this.sDescription+"
"))},handleData:function(b,c){b=HTMLString.toLabel(b);b=handleData(b,c);return b=HTMLString.riseAWord(b,c,bookConfig.searchKeywordFontColor)},initEvent:function(){this.item.bind("mouseover",function(){this.item.css({"background-color":Color(this.fontColor).rgba(.25)})}.bind(this));this.item.bind("mouseleave",function(){this.item.css({"background-color":"transparent"})}.bind(this));this.item.onTap(function(){gotoPageFun(this.index,!1,"search"); BookInfo.getBook().addSearchHighlight();(isPhone()||isPad())&&global.frmSearch.hide()}.bind(this))}}),PhoneSearchItem=Class({initEvent:function(){this.item.bind("mouseover",function(){this.item.css({"background-color":Color(this.fontColor).rgba(.25)})}.bind(this));this.item.bind("mouseleave",function(){this.item.css({"background-color":"transparent"})}.bind(this));this.item.onTap(function(){gotoPageFun(this.index,!1,"search");BookInfo.getBook().addSearchHighlight();(isPhone()||isPad())&&setTimeout(function(){global.frmSearch.hide()}.bind(this), 1>bookConfig.flippingTime?1E3*bookConfig.flippingTime+100:bookConfig.flippingTime+100)}.bind(this))}}).extend(SearchItem),PhoneSearchForm=Class({create:function(b){this.elements=new SearchElements(this);this._super(b)},onCreate:function(){this.stage.css({color:this.fontColor,"background-color":this.mainColor});this.input.css({color:"#000000",opacity:1});var b=new Color(this.mainColor);String.format("%s %s %s %s",b.reduce(40),b.reduce(40),b.add(40),b.add(40));isPhone()||isPad()?this.searchSwiper.css({"overflow-y":"auto", "overflow-x":"hidden","-webkit-overflow-scrolling":"touch"}):this.searchSwiper.css({overflow:"hidden"});this.favicon&&this.favicon.changeButtonColor(this.fontColor);this._super()},initHtml:function(){bookConfig.SearchButtonIcon&&(this.searchButton=$(""));this.container=$("
");this.title.append(this.close); this.stage.append(this.title);this.stage.append(this.input);this.stage.append(this.searchButton);this.searchSwiper.css({height:"auto"}).find(".swiper").css({position:"relative"});this.stage.append(this.container);this.container.append(this.searchPageSwiper).append(this.searchResult).append(this.searchSwiper)},newSearchItem:function(b,c){return new PhoneSearchItem(b,c)},getList:function(){return this.elements.getList()},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor)}, hide:function(){this._super();this.input.blur()},afterSearchThumbs:function(){this.height=windowHeight},afterSearchText:function(){this.height=windowHeight;this.searchPageSwiper.css({display:"none"})},onResize:function(){this._super();this.container.css("height",this.height-115+"px");this.searchPageSwiper.css("display");this.input.css("width",this.width-75+"px");this.elements.refresh()},initEvent:function(){}}).extend(PhoneFormFrame),LanguageElements=Class({create:function(b){this._super(b);this.initElements(); this.initEvent(b);this.pickElements(b)},initElements:function(){this.choosedUrl=uiBaseURL+"choosed.png";this.itemArray=[];this.scrollBox=$("
");for(var b=0;b
"+c+"
");b.toLowerCase()===bookConfig.language.toLowerCase()&& (d.addClass("focus"),this.currentItem=d);d.bind(_event._end,function(){this.refreshLanguage(b);this.currentItem=d;this.scrollBox.find(".focus").removeClass("focus");d.addClass("focus")}.bind(this));this.scrollBox.append(d);this.itemArray.push(d)}},refreshLanguage:function(b){bookConfig.language=b;changeLanguage(bookConfig.language)},initEvent:function(b){},pickElements:function(b){b.choosedUrl=this.choosedUrl;b.itemArray=this.itemArray;b.scrollBox=this.scrollBox},changeLanguage:function(){}}).extend(FormElements); Class("PcLanguageForm",{create:function(b){this.elements=new LanguageElements(this);this._super(b)},onCreate:function(){this.close.changeButtonColor(this.color);this._super()},initEvent:function(){this._super();this.stage.bind(_event._end,function(){this.hide()}.bind(this));for(var b=0;b
");var b=flipSoundIsPlaying?this.choosedUrl:this.unChoosedUrl,c=bookConfig.BackgroundSoundURL?this.choosedUrl:this.unChoosedUrl,d=getLanguage("closeFlipSound","Close Flip Sound"),f=getLanguage("closeBackgroundSound","Close Background Sound");this.flipSoundBtn=$("
"+ d+"
");this.backgroundSoundBtn=$("
"+f+"
");this.scrollBox.append(this.flipSoundBtn);bookConfig.BackgroundSoundButtonVisible&&bookConfig.BackgroundSoundURL&&this.scrollBox.append(this.backgroundSoundBtn)},initEvent:function(b){$(this.flipSoundBtn.find("img")).bind(_event._down,function(c){c.preventDefault()});$(this.backgroundSoundBtn.find("img")).bind(_event._down,function(c){c.preventDefault()}); this.flipSoundBtn.bind(_event._down,function(c){flipSoundIsPlaying=!flipSoundIsPlaying;this.changeFlipSoundBtnCase()}.bind(this));this.backgroundSoundBtn.bind(_event._down,function(){window.bgSound&&bgSound.playOrPause();this.changeBackgroundBtnCase()}.bind(this))},changeFlipSoundBtnCase:function(){flipSoundIsPlaying?(this.flipSoundBtn.find("img").attr("src",this.choosedUrl),playFlipSound(),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundon", "Open Flip Sound")])):(this.flipSoundBtn.find("img").attr("src",this.unChoosedUrl),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundoff","Close Flip Sound")]));this.changeBackgroundSoundButtonState()},changeBackgroundBtnCase:function(){!0!==isPlaying?(this.backgroundSoundBtn.find("img").attr("src",this.unChoosedUrl),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound",getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")])): (this.backgroundSoundBtn.find("img").attr("src",this.choosedUrl),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound",getLanguage("tmpl_Backgoundsoundon","Open Background Sound")]))},changeBackgroundSoundButtonState:function(){isPlaying||flipSoundIsPlaying?StateSynchronous.instance().findButtons("PhoneBackgroundSoundButton").each(function(b){b.setAsSoundOn();b.executeCallback()}):StateSynchronous.instance().findButtons("PhoneBackgroundSoundButton").each(function(b){b.setAsSoundOff(); b.executeCallback()})},pickElements:function(b){b.choosedUrl=this.choosedUrl;b.unChoosedUrl=this.unChoosedUrl;b.scrollBox=this.scrollBox;b.flipSoundBtn=this.flipSoundBtn;b.backgroundSoundBtn=this.backgroundSoundBtn;b.changeFlipSoundBtnCase=this.changeFlipSoundBtnCase;b.changeBackgroundBtnCase=this.changeBackgroundBtnCase;b.changeBackgroundSoundButtonState=this.changeBackgroundSoundButtonState},changeLanguage:function(){flipSoundIsPlaying?this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundon", "Open Flip Sound")):this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundoff","Close Flip Sound"));!0===isPlaying?this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")):this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundon","Open Background Sound"))}}).extend(FormElements),PhoneSettingForm=Class({create:function(b){this.elements=new SettingElements(this);this._super(b)},onCreate:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor); this._super()},initHtml:function(){this.title.append(this.close);this.stage.append(this.title);this.stage.append(this.scrollBox)},initEvent:function(){},onShow:function(){this.favicon&&this.favicon.changeButtonColor(this.fontColor)},changeLanguage:function(){this._super();this.elements.changeLanguage()}}).extend(PhoneFormFrame),PcSoundSettingForm=Class({create:function(b){this._super(b)},onCreate:function(){this.stage.css({"background-color":"transparent"});this._super()},initHtml:function(){this.flipSoundOnImage= uiBaseURL+"flipSoundOn.png";this.flipSoundOffImage=uiBaseURL+"flipSoundOff.png";this.backSoundOnImage=uiBaseURL+"backSoundOn.png";this.backSoundOffImage=uiBaseURL+"backSoundOff.png";var b=flipSoundIsPlaying?getLanguage("tmpl_Flipsoundon","Open Flip Sound"):getLanguage("tmpl_Flipsoundoff","Close Flip Sound"),c=flipSoundIsPlaying?this.flipSoundOnImage:this.flipSoundOffImage,d=bookConfig.BackgroundSoundURL?getLanguage("tmpl_Backgoundsoundon","Open Background Sound"):getLanguage("tmpl_Backgoundsoundoff", "Close Background Sound");this.backgroundSoundBtn=$("

"+d+"

");this.flipSoundBtn=$("

"+b+"

");this.stage.append(this.backgroundSoundBtn);this.stage.append(this.flipSoundBtn)},initEvent:function(b){this.flipSoundBtn.bind(_event._end,function(){flipSoundIsPlaying=!flipSoundIsPlaying;this.changeFlipSoundBtnCase()}.bind(this)); this.backgroundSoundBtn.bind(_event._end,function(){window.bgSound&&bgSound.playOrPause();this.changeBackgroundBtnCase()}.bind(this))},changeFlipSoundBtnCase:function(){flipSoundIsPlaying?(this.flipSoundBtn.find("img").attr("src",this.flipSoundOnImage),this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundon","Open Flip Sound")),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundon","Open Flip Sound")]),playFlipSound()):(this.flipSoundBtn.find("img").attr("src", this.flipSoundOffImage),this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundoff","Close Flip Sound")),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"flip sound",getLanguage("tmpl_Flipsoundoff","Close Flip Sound")]));this.changeBackgroundSoundButtonState()},changeBackgroundBtnCase:function(){!0!==isPlaying?(this.backgroundSoundBtn.find("img").attr("src",this.backSoundOffImage),this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")), BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound",getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")])):(this.backgroundSoundBtn.find("img").attr("src",this.backSoundOnImage),this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundon","Open Background Sound")),BookEvent.trigger("clickButton",[BookInfo.getCurrentPageIndex(),"background sound",getLanguage("tmpl_Backgoundsoundon","Open Background Sound")]))},changeBackgroundSoundButtonState:function(){isPlaying|| flipSoundIsPlaying?StateSynchronous.instance().findButtons("BackgroundSoundButton").each(function(b){b.setAsSoundOn();b.executeCallback()}):StateSynchronous.instance().findButtons("BackgroundSoundButton").each(function(b){b.setAsSoundOff();b.executeCallback()})},onShow:function(){},changeLanguage:function(){flipSoundIsPlaying?this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundon","Open Flip Sound")):this.flipSoundBtn.find(".title").html(getLanguage("tmpl_Flipsoundoff","Close Flip Sound")); !0===isPlaying?this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundoff","Close Background Sound")):this.backgroundSoundBtn.find(".title").html(getLanguage("tmpl_Backgoundsoundon","Open Background Sound"))}}).extend(FadeOutFadeForm),HelpElements=Class({create:function(b){this._super(b);this.initElements();this.initEvent(b);this.pickElements(b)},initElements:function(){bookConfig.helpContentFileURL?this.image=$("
"):(this.helpUrl=form_icons.help_form?"data:image/png;base64,"+ form_icons.help_form:uiBaseURL+"help_form.png",this.image=$(""),this.title1=$("

"+getLanguage("lblHelp1","Drag the page corner to view")+"

"),this.title2=$("

"+getLanguage("lblHelp2","Double click to zoom in, out")+"

"))},resetHelpIcon:function(b){bookConfig.helpContentFileURL||this.image.attr("src",this.helpUrl)},initEvent:function(b){},pickElements:function(b){b.helpUrl=this.helpUrl;b.image=this.image;b.title1= this.title1;b.title2=this.title2},changeLanguage:function(){this.title1&&this.title1.html(getLanguage("lblHelp1","Drag the page corner to view"));this.title2&&this.title2.html(getLanguage("lblHelp2","Double click to zoom in, out"))}}).extend(FormElements),PcHelpFrame=Class({create:function(b){this.elements=new HelpElements(this);this._super(b)},onCreate:function(){this.initColorCss();bookConfig.helpContentFileURL&&(this.stage.css({width:bookConfig.helpWidth+"px",height:bookConfig.helpHeight+"px"}), this.image.css({background:"url("+bookConfig.helpContentFileURL+") center no-repeat","background-size":"contain",width:"100%",height:"100%"}),this.content&&this.content.css({width:bookConfig.helpWidth-34+"px",height:bookConfig.helpHeight-59+"px"}));this._super();bookConfig.showHelpContentAtFirst?this.show():this.hide()},initColorCss:function(){this.stage.css({"background-color":this.mainColor,color:this.fontColor})},resetColorChanged:function(){this._super();!bookConfig.helpContentFileURL&&this.image&& (this.image[0].colorChanged=!1)},resetIconSrc:function(b){this._super();!bookConfig.helpContentFileURL&&this.image&&this.elements.resetHelpIcon(this.fontColor)},changeIconColor:function(){this._super();!bookConfig.helpContentFileURL&&this.image&&this.image.changeButtonColor(this.fontColor)},initHtml:function(){this._super()},onShow:function(){this.changeIconColor()}}).extend(FadeOutFadeForm); Class("SharePoster",{create:function(b){this.parent=b;this.initConfig();this.initHtml();this.initCss();this.initEvent()},initHtml:function(){this.pContainer=$("
");this.initReadyHtmlPanel();this.initPosterImgPanel();this.parent.append(this.pContainer)},initConfig:function(){this.height=windowHeight-20;this.width=.66*this.height;var b=windowWidth-20;this.width>b&&(this.width=b,this.height=this.width/.66);this.scale=this.width/684},initReadyHtmlPanel:function(){this.canvas= $("");this.ctx=this.canvas[0].getContext("2d");this.thumb=$("");this.cvsBg=$("");this.qrcodeBox=$("
"); this.qrcodeBox.qrcode({width:100,height:100,render:"image",text:bookConfig.socialShareLink?bookConfig.socialShareLink:window.location.href.removeStartFrom("#p=")});this.pContainer.append(this.canvas).append(this.svg)},initPosterImg:function(){this.beforeCreatePoster();this.canvas[0].width=684;this.canvas[0].height=1036;this.imgs=[this.cvsBg,this.thumb];this.getSrcAndImg(0)},setImgs:function(b,c){var d=b.imgs;b.loadImgFun(d[c]).then(function(){c+=1;c"),h.attr("src",g),h.attr("crossOrigin","Anonymous"),this.imgs.push(h))}.bind(c));c.setImgs(c,b)}})},afterLoadPdf:function(b,c){this.thumb.attr("src",c.toDataURL("image/png"));this.setImgs(this,b)},loadImgFun:function(b){var c=$(b);return new Promise(function(d,f){c[0].complete?(console.log("load img complete"),c.attr("crossOrigin","Anonymous"),d()): (c[0].onload=function(){c.attr("crossOrigin","Anonymous");console.log("load img ok");d()},c[0].onerror=function(g){console.log("load img error",c);f(g)})}.bind(this))},drawImages:function(b,c){this.imgs.shift();this.imgs.forEach(function(d){var f=getImageConfig(d[0],556,781,this.isUseThumb);""===d.attr("src")?(f={width:556,height:781,left:0,top:0},this.ctx.fillStyle="#ffffff",this.ctx.fillRect(b+f.left,c+f.top,f.width,f.height)):this.ctx.drawImage(d[0],f.left+b,f.top+c,f.width,f.height)}.bind(this))}, drawPoster:function(){var b=window.document.title,c=getImageConfig(this.thumb[0],556,781,this.isUseThumb);if(-1g;g++)this.ctx.fillStyle= 0==g%2?"#e5e5e5":"#f2f2f2",rightToLeft?this.ctx.fillRect(Math.floor(b.left+c-5+1*g),d+b.top+(5-g),1,f-2*(5-g)):this.ctx.fillRect(Math.floor(b.left+c+b.width+1*g),d+b.top+1*g,1,f-2*g)},drawTitleText:function(b,c){c&&(this.ctx.font="20px Arial");var d=this.ctx.measureText(b).width;c=957;this.ctx.textBaseline="top";274c)return d?g+"...":g;g=f;f+=textArr[b]}return f},drawAlertText:function(){this.ctx.font="20px Arial";var b=954;this.ctx.textBaseline="top";this.ctx.fillStyle="#db9a67";var c=this.getLinitText(getLanguage("infLongPressToIndentify","Long press to identify QR code"),267,!0),d=this.getLinitText(getLanguage("infScanCodeToView","Scan code to read"),227,!0),f=323+(226-this.ctx.measureText(d).width)/2;if(getLanguage("infLongPressToIndentify")){b= 943;this.ctx.font="14px Arial";var g=323+(226-this.ctx.measureText(c).width)/2;this.ctx.fillText(c,g,b);this.ctx.font="20px Arial";this.ctx.fillText(d,f,b+26)}else this.ctx.fillText(d,323,b)},drawQrcode:function(){this.ctx.fillStyle="#ffffff";this.ctx.fillRect(561,911,110,110);this.ctx.drawImage(this.qrcodeBox.find("img")[0],566,916,100,100);var b=new Image;b.src=bookConfig.appLogoIcon;b.setAttribute("crossOrigin","Anonymous");bookConfig.appLogoIcon&&this.ctx.drawImage(b,611,961,20,20)},getCloseSrc:function(){return"./style/icon/close.svg"}, initPosterImgPanel:function(){this.topTitle=$("
");this.pcDownload=$(""+getLanguage("btnDownloadPosterPrompt","Click to download the poster")+"");this.alertText=$("
"+getLanguage("infLongPressToSavePoster","Long press to identify QR code")+"
");this.closeBtn=$(''+ phoneSvgIcons.close+"");this.loading=$("");this.posterImgOuter=$("
");this.posterImg=$("");this.popPosterBox=$("
");this.popPosterBg=$("
");this.topTitle.append(this.alertText).append(this.closeBtn).append(this.pcDownload);this.posterImgOuter.append(this.posterImg).append(this.topTitle); this.popPosterBox.append(this.popPosterBg).append(this.posterImgOuter).append(this.loading);this.pContainer.append(this.popPosterBox);this.posterImgOuter.fadeOut()},onResize:function(){this.initConfig();this.resizeCss()},showPosterHtml:function(){this.canvas.css({display:"block",left:"50%",top:"50%",transform:"translate(-50%,-50%) scale("+this.scale+")"})},initCss:function(){this.posterImgOuter.css({overflow:"hidden",transform:"translate(-50%,-50%)","-webkit-transform":"translate(-50%,-50%)",left:"50%", top:"50%","z-index":"1111",position:"absolute",display:"none",width:684*this.scale+"px",height:1036*this.scale+"px"});this.posterImg.css({width:684*this.scale+"px",height:1036*this.scale+"px"});this.pContainer.css({display:"none","z-index":"1001",position:"absolute",left:"0",top:"0",width:"100%",height:"100%",background:"rgba(11,11,11,0.7)"});this.popPosterBox.css({"z-index":"1001",position:"absolute",left:"0",top:"0",width:"100%",height:"100%"});this.popPosterBg.css({"z-index":"0",position:"absolute", left:"0",top:"0",width:"100%",height:"100%"});isPhone()||isPad()?(this.topTitle.css({"-webkit-transform":"translateY(0)",transform:"translateY(0)"}),this.alertText.css({display:"block"}),this.pcDownload.css({display:"none"})):(this.topTitle.css({"-webkit-transform":"translateY(-30px)",transform:"translateY(-30px)"}),this.pcDownload.css({display:"block"}),this.alertText.css({display:"none"}))},resizeCss:function(){this.alertText.css({width:this.width-37+"px"});this.posterImgOuter.css({width:684*this.scale+ "px",height:1036*this.scale+"px"});this.posterImg.css({width:684*this.scale+"px",height:1036*this.scale+"px"});this.canvas.css({"-webkit-transform":"translate(-50%,-50%) scale("+this.scale+")",transform:"translate(-50%,-50%) scale("+this.scale+")"})},initEvent:function(){this.popPosterBg.bind(_event._down,function(b){b.stopPropagation();this.pContainer.fadeOut()}.bind(this));this.posterImg.on("load",function(){this.posterImgOuter.fadeIn()}.bind(this));isPC()&&(this.closeBtn.bind(_event._enter,function(b){b.stopPropagation(); this.closeBtn.css({opacity:"0.65"})}.bind(this)),this.closeBtn.bind(_event._leave,function(b){b.stopPropagation();this.closeBtn.css({opacity:"1"})}.bind(this)),this.pcDownload.bind(_event._enter,function(b){b.stopPropagation();this.pcDownload.css({opacity:"0.65"})}.bind(this)),this.pcDownload.bind(_event._leave,function(b){b.stopPropagation();this.pcDownload.css({opacity:"1"})}.bind(this)));this.closeBtn.bind(_event._click,function(b){b.stopPropagation();this.hide()}.bind(this));isPhone()||isPad()|| (this.posterImgOuter.bind("mouseenter",function(){this.topTitle.css({transform:"translateY(0)","-webkit-transform":"translateY(0)"})}.bind(this)),this.posterImgOuter.bind("mouseleave",function(){this.topTitle.css({transform:"translateY(-30px)","-webkit-transform":"translateY(-30px)"})}.bind(this)))},beforeCreatePoster:function(){this.canvas.css({display:"block"});this.loading.css({display:"block"})},afterCreatedPoster:function(){this.canvas.css({display:"none",left:"110%",top:"110%",transform:"scale("+ this.scale+")"});this.loading.css({display:"none"})},afterFailLoad:function(){this.beforeCreatePoster();this.showPosterHtml();this.loading.css({display:"none"});this.canvas.css({"z-index":"1002"})},show:function(){this.pContainer.fadeIn();this.hasPoster?this.posterImgOuter.fadeIn():this.isloadFail?this.afterFailLoad():this.initPosterImg();global.sharePanel&&global.sharePanel.hide();this.onShow()},hide:function(){this.pContainer.fadeOut();this.onHide()},onShow:function(){},onHide:function(){}}); (function(b){if(bookConfig.ShareButtonVisible){var c=window.location.href.toLowerCase();!(-1=window.shareObj.length)return[];for(var b=window.shareObj.length,c=[],d=0;d");b=$("");c.append(b);$("body").append(c);c.onClick(function(){c.hide();c.remove()})},ShareToFaceBook=function(b){var c=function(){var f=getHost(window.location.href).toLowerCase();if(-1< f.indexOf("fliphtml5.com"))return"759223277462081";if(-1'); c=$('
');g.append(c);$("body").append(g);g.bind("click",function(){g.unbind("click");g.remove()})}} function sharePhoneWeChat(){var b=$('
'),c=$('
');b.append(c);$("body").append(b);b.bind("click",function(){b.unbind("click");b.remove()})} (function(b){function c(p){if(!h)return p&&p();var q=document.createElement("script");q.onload=function(){p&&p()};q.onerror=function(){};q.src=1==+h?"//3gimg.qq.com/html5/js/qb.js":"//jsapi.qq.com/get?api=app.share";$("body").append(q)}function d(p){var q="";1==p.type?q=8:2==p.type?q=1:3==p.type?q=4:4==p.type?q=11:0==p.type&&(q="undefined");var r=function(){var u={url:p.url,title:p.title,description:p.desc,img_url:p.img,img_title:p.title,to_app:q,cus_txt:""};window.browser?browser.app&&browser.app.share(u): window.qb&&qb.share&&qb.share(u)};n?r():c(r)}var f=navigator.appVersion;var g=1l&&1==m||h&&5.3>l&&1==m?h=0:h&&5.4> l&&2==m?h=1:g&&(10.2>f&&1==m||9.7>f&&2==m)&&(g=0);c(function(){n=!0});b.mShare=function(p){this.check=function(q,r,u){g?q():h&&!k?q():k?r():u()};this.config=p;this.init=function(q){"undefined"!=typeof q&&(this.config.type=q);try{if(g){var r=this.config;q="";r.type&&(2==m?1==r.type?q="WechatTimeline":2==r.type?q="WechatFriends":3==r.type?q="QQ":4==r.type?q="SinaWeibo":0==r.type&&(q="undefined"):1==m&&(1==r.type?q="kWeixinFriend":2==r.type?q="kWeixin":3==r.type?q="kQQ":4==r.type?q="kSinaWeibo":0==r.type&& (q="undefined")));var u=[r.title,r.desc,r.url,q,"","",""];window.ucweb?ucweb.startRequest&&ucweb.startRequest("shell.page_share",u):window.ucbrowser&&ucbrowser.web_share&&ucbrowser.web_share.apply(null,u)}else h&&!k&&d(this.config)}catch(y){}}}})(this);function showPoster(){global.sharePoster||(global.sharePoster=new SharePoster(tmpContainer));global.sharePoster.show();onShowPoster()}function onShowPoster(){} var PhoneShareItem=Class({create:function(b){b&&(this.info=b,this.initItem(),this.initEvent())},initItem:function(){-1"):this.info.type&&"copy"==this.info.type?(this.link=$(""),copyHref(this.link[0])):this.link=$("");this.item=$("
");this.logo=$("");this.title=$('
'+ this.info.title+"
");this.link.append(this.item);this.info.logo&&this.item.append(this.logo);this.item.append(this.title);this.item.css({color:this.info.fontColor})},initEvent:function(){this.link.bind("touchend",function(){BookEvent.trigger("share",[BookInfo.getCurrentPageIndex(),this.info.title,!1])}.bind(this));-1