From 04ea37af4d5544bd8a988b83ca8193abb9c5c58f Mon Sep 17 00:00:00 2001 From: Matt Lantz Date: Mon, 26 Nov 2012 16:44:34 -0500 Subject: [PATCH] Small bug fix Encountered a small bug when the page contents consisted of multiple divs. Weird cause it only affected the first page. --- build/alice.js | 3 +-- build/alice.min.js | 6 +----- build/alice.min.js.gz | Bin 10738 -> 10730 bytes src/alice.plugins.caterpillar.js | 3 +-- 4 files changed, 3 insertions(+), 9 deletions(-) diff --git a/build/alice.js b/build/alice.js index 5efad4d..eb0794b 100644 --- a/build/alice.js +++ b/build/alice.js @@ -2833,8 +2833,7 @@ alice.plugins.caterpillar = (function () { if(params.pageId >= params.realPageCount && params.wrap === true){ params.pageId = 0; } - nxtPageId = document.getElementById(params.bookName).querySelector('div:nth-child('+(params.pageId + 1)+')').getAttribute('id'); - nxtPage = document.getElementById(nxtPageId); + nxtPage = document.getElementById(params.bookName+"p_"+(params.pageId+1)); nxtPage.style.display = 'block'; if(params.binding === 'center' || params.binding === 'middle'){ nxtPage.style[alice.prefixJS+'Transform'] = params.transformRotate+core._rot90; diff --git a/build/alice.min.js b/build/alice.min.js index 76187ef..9330878 100644 --- a/build/alice.min.js +++ b/build/alice.min.js @@ -42,8 +42,4 @@ // jWorkflow is freely distributable under the terms of the MIT license. // Portions of jWorkflow are inspired by Underscore.js var jWorkflow=function(){function e(e){if(typeof e!="function")throw"expected function but was "+typeof e}function t(e){return typeof e.andThen=="function"&&typeof e.start=="function"&&typeof e.chill=="function"}function n(e){return!!e.map&&!!e.reduce}var r={order:function(r,i){var s=[],o,u=null,a=function(){var e=!1;return{take:function(){e=!0},pass:function(t){var n;e=!1,o.length?(n=o.shift(),t=n.func.apply(n.context,[t,a]),e||a.pass(t)):u.func&&u.func.apply(u.context,[t])},drop:function(t){e=!0,o=[],setTimeout(function(){a.pass(t)},1)}}}(),f={andThen:function(r,i){if(t(r)){var o=function(e,t){t.take(),r.start({callback:function(e){t.pass(e)},context:i,initialValue:e})};s.push({func:o,context:i})}else if(n(r)){var u=function(e,t){t.take();var n=r.length,i=function(){return--n||t.pass()};r.forEach(function(e){jWorkflow.order(e).start(i)})};s.push({func:u,context:i})}else e(r),s.push({func:r,context:i});return f},chill:function(e){return f.andThen(function(t,n){n.take(),setTimeout(function(){n.pass(t)},e)})},start:function(){var e,t,n;arguments[0]&&typeof arguments[0]=="object"?(e=arguments[0].callback,t=arguments[0].context,n=arguments[0].initialValue):(e=arguments[0],t=arguments[1]),u={func:e,context:t},o=s.slice(),a.pass(n)}};return r?f.andThen(r,i):f}};return r}();typeof module=="object"&&typeof require=="function"&&(module.exports=jWorkflow);var alice=function(){"use strict";var e={id:"alice",name:"AliceJS",description:"A Lightweight Independent CSS Engine",version:"0.5",build:"20121101-1034",prefix:"",prefixJS:"",elems:null,cleaner:{},format:{},helper:{},plugins:{},anima:null,debug:!1,elements:function(e){var t,n=[],r=function(e,t){Array.prototype.forEach.apply(e,[t])},i=function(e){n.push(e)},s=function(e){if(typeof e!="string")return[];var t=document.getElementById(e);return t?[t]:document.querySelectorAll(e)};if(typeof e=="string")if(e.indexOf("$")===0)if(e.indexOf("#")>-1)t=e.substring(e.indexOf("#")+1,e.indexOf("')")),r(s(t),i);else{if(!(e.indexOf(".")>-1)){console.warn("jQuery selectors must be either classes or ids.");return}t=e.substring(e.indexOf(".")+1,e.indexOf("')")),r(s(t),i)}else r(s(e),i);else e.length===undefined?n.push(e):r(e,function(e){e.nodeType&&e.nodeType!==3?n.push(e):r(s(e),i)});return n},randomize:function(e,t){var n,r,i=parseInt(e,10);return typeof t=="string"&&t.indexOf("%")>-1?n=parseInt(t,10)/100:n=parseFloat(t,10),r=i+i*(Math.random()*2*n-n),Math.floor(r)},duration:function(e){var t,n=function(e){return e},r=function(e){var t;return e.indexOf("ms")>-1?t=parseInt(e,10):e.indexOf("s")>-1?t=parseFloat(e,10)*1e3:t=parseInt(e,10),t},i=function(e){var t;return e.value&&(typeof e.value=="string"?t=r(e.value):t=n(e.value)),t};switch(typeof e){case"number":t=n(e);break;case"string":t=r(e);break;case"object":t=i(e);break;default:t=e}return t},coords:function(e){var t={"top-left":{x:"0%",y:"0%"},"top-center":{x:"50%",y:"0%"},"top-right":{x:"100%",y:"0%"},"middle-left":{x:"0%",y:"50%"},"middle-center":{x:"50%",y:"50%"},"middle-right":{x:"100%",y:"50%"},"bottom-left":{x:"0%",y:"100%"},"bottom-center":{x:"50%",y:"100%"},"bottom-right":{x:"100%",y:"100%"},top:{x:"50%",y:"0%"},left:{x:"0%",y:"50%"},center:{x:"50%",y:"50%"},right:{x:"100%",y:"50%"},bottom:{x:"50%",y:"100%"},NW:{x:"0%",y:"0%"},N:{x:"50%",y:"0%"},NE:{x:"100%",y:"0%"},W:{x:"0%",y:"50%"},E:{x:"100%",y:"50%"},SW:{x:"0%",y:"100%"},S:{x:"50%",y:"100%"},SE:{x:"100%",y:"100%"},"":{x:"50%",y:"50%"},"undefined":{x:"50%",y:"50%"}};return t[e]},easing:function(e){var t={linear:{p1:.25,p2:.25,p3:.75,p4:.75},ease:{p1:.25,p2:.1,p3:.25,p4:1},"ease-in":{p1:.42,p2:0,p3:1,p4:1},"ease-out":{p1:0,p2:0,p3:.58,p4:1},"ease-in-out":{p1:.42,p2:0,p3:.58,p4:1},easeInQuad:{p1:.55,p2:.085,p3:.68,p4:.53},easeInCubic:{p1:.55,p2:.055,p3:.675,p4:.19},easeInQuart:{p1:.895,p2:.03,p3:.685,p4:.22},easeInQuint:{p1:.755,p2:.05,p3:.855,p4:.06},easeInSine:{p1:.47,p2:0,p3:.745,p4:.715},easeInExpo:{p1:.95,p2:.05,p3:.795,p4:.035},easeInCirc:{p1:.6,p2:.04,p3:.98,p4:.335},easeInBack:{p1:.6,p2:-0.28,p3:.735,p4:.045},easeOutQuad:{p1:.25,p2:.46,p3:.45,p4:.94},easeOutCubic:{p1:.215,p2:.61,p3:.355,p4:1},easeOutQuart:{p1:.165,p2:.84,p3:.44,p4:1},easeOutQuint:{p1:.23,p2:1,p3:.32,p4:1},easeOutSine:{p1:.39,p2:.575,p3:.565,p4:1},easeOutExpo:{p1:.19,p2:1,p3:.22,p4:1},easeOutCirc:{p1:.075,p2:.82,p3:.165,p4:1},easeOutBack:{p1:.175,p2:.885,p3:.32,p4:1.275},easeInOutQuad:{p1:.455,p2:.03,p3:.515,p4:.955},easeInOutCubic:{p1:.645,p2:.045,p3:.355,p4:1},easeInOutQuart:{p1:.77,p2:0,p3:.175,p4:1},easeInOutQuint:{p1:.86,p2:0,p3:.07,p4:1},easeInOutSine:{p1:.445,p2:.05,p3:.55,p4:.95},easeInOutExpo:{p1:1,p2:0,p3:0,p4:1},easeInOutCirc:{p1:.785,p2:.135,p3:.15,p4:.86},easeInOutBack:{p1:.68,p2:-0.55,p3:.265,p4:1.55},custom:{p1:0,p2:.35,p3:.5,p4:1.3},random:{p1:Math.random().toPrecision(3),p2:Math.random().toPrecision(3),p3:Math.random().toPrecision(3),p4:Math.random().toPrecision(3)}};return t[e]?t[e]:{p1:.42,p2:0,p3:.58,p4:1}},flip:function(e,t,n){var r=t||1,i,s=function(e){return{start:0,end:e,axis:"Y"}},o=function(t){switch(e){case"left":return{start:0,end:-360*r,axis:"Y"};case"right":return{start:0,end:360*r,axis:"Y"};case"up":return{start:0,end:360*r,axis:"X"};case"down":return{start:0,end:-360*r,axis:"X"}}},u=function(e){var t;return e.value&&(typeof e.value=="string"?t=o(e.value):t=s(e.value)),t};switch(typeof e){case"number":i=s(e);break;case"string":i=o(e);break;case"object":i=u(e);break;default:i=null}return i},percentage:function(e){var t;return typeof e=="string"?e.indexOf("%")>-1||e.indexOf("°")>-1?t=parseInt(e,10)/100:e>=1||e<=-1?t=parseInt(e,10)/100:t=parseFloat(e,10):typeof e=="number"&&(e>=1||e<=-1?t=e/100:t=e),t},vendorPrefix:function(){var e=document.createElement("div");"webkitAnimation"in e.style?(this.prefix="-webkit-",this.prefixJS="webkit"):"MozAnimation"in e.style?(this.prefix="-moz-",this.prefixJS="Moz"):"msAnimation"in e.style?(this.prefix="-ms-",this.prefixJS="ms"):"OAnimation"in e.style||"OTransform"in e.style?(this.prefix="-o-",this.prefixJS="O"):(this.prefix="",this.prefixJS=""),this.debug&&console.log("prefix="+this.prefix,"prefixJS="+this.prefixJS);return},docHeight:function(){var e=document;return Math.max(Math.max(e.body.scrollHeight,e.documentElement.scrollHeight),Math.max(e.body.offsetHeight,e.documentElement.offsetHeight),Math.max(e.body.clientHeight,e.documentElement.clientHeight))},pixel:function(e,t){if(typeof e=="number")return e%1===0?e:parseFloat(e,10)*t;if(e.indexOf("px")>-1)return parseInt(e,10);if(e.indexOf("%")>-1)return Math.round(parseInt(e,10)/100*t)},keyframeInsert:function(e){if(document.styleSheets&&document.styleSheets.length){var t=0;try{document.styleSheets[0].cssRules.length>0&&(t=document.styleSheets[0].cssRules.length),document.styleSheets[0].insertRule(e,t)}catch(n){console.warn(n.message,e)}}else{var r=document.createElement("style");r.innerHTML=e,document.head.appendChild(r)}return},keyframeDelete:function(e){var t=document.all?"rules":"cssRules",n;for(n=0;n0)for(_=0;_1?" scale("+b+")":"",B+=" scale("+b+")",j="",j+=d?" rotate"+d.axis+"("+d.end+"deg)":" translate"+S+"("+N+"px)",E===""&&s==="alternate"?j+=" rotate("+ -L.rotateStart+"deg)":j+=L.rotate&&parseInt(L.rotate,10)!==0?" rotate("+L.rotateEnd+"deg)":"",j+=" scale("+b+")",w===!0&&b>1&&(U=Math.round(b*10),F=" 0px 0px 0px rgba(0, 0, 0, 1)",I=" "+U+"px "+U+"px "+U+"px rgba(0, 0, 0, 0.5)"),P="",P+="@"+alice.prefix+"keyframes "+D+" {\n",P+=" 0% {\n",P+=" "+alice.prefix+"transform:"+H+";"+"\n",P+=" "+alice.prefix+"transform-origin:"+alice.format.coords(a)+";"+"\n",P+=v?" opacity: "+m+";"+"\n":"",P+=w===!0&&b>1?" "+alice.prefix+"box-shadow: "+F+";"+"\n":"",P+=" }\n",l!==0&&(P+=" "+c+"% {\n",P+=" "+alice.prefix+"transform:"+B+";"+"\n",P+=" "+alice.prefix+"transform-origin:"+alice.format.coords(a)+";"+"\n",P+=" }\n"),P+=" 100% {\n",P+=" "+alice.prefix+"transform:"+j+";"+"\n",P+=" "+alice.prefix+"transform-origin:"+alice.format.coords(a)+";"+"\n",P+=v?" opacity: "+g+";"+"\n":"",P+=w===!0&&b>1?" "+alice.prefix+"box-shadow: "+I+";"+"\n":"",P+=" }\n",P+="}\n",console.log(P),alice.keyframeInsert(P),A.style[alice.prefixJS+"Perspective"]=u+"px",A.style[alice.prefixJS+"PerspectiveOrigin"]=alice.format.coords(a),M.style[alice.prefixJS+"BackfaceVisibility"]=f,M.style[alice.prefixJS+"AnimationName"]=D,M.style[alice.prefixJS+"AnimationDelay"]=L.delay,M.style[alice.prefixJS+"AnimationDuration"]=L.duration,M.style[alice.prefixJS+"AnimationTimingFunction"]=alice.format.easing(r),M.style[alice.prefixJS+"AnimationIterationCount"]=i,M.style[alice.prefixJS+"AnimationDirection"]=s,M.style[alice.prefixJS+"AnimationPlayState"]=o,M.style[alice.prefixJS+"Transform"]=j,M.style.opacity=v?g:"",M.style[alice.prefixJS+"BoxShadow"]=w===!0&&b>1?I:"","MozAnimation"in M.style?M.addEventListener("animationend",alice.clearAnimation,!1):M.addEventListener(alice.prefixJS+"AnimationEnd",alice.clearAnimation,!1),alice.debug&&(console.log(P),console.log(A.style),console.log(M.id,alice.prefixJS,M.style,M.style.cssText,M.style[alice.prefixJS+"AnimationDuration"],M.style[alice.prefixJS+"AnimationTimingFunction"]))}else console.warn("No elements!");return e},alice.plugins.bounce=function(e){"use strict";console.info("bounce: ",arguments),e||(e="");var t={from:"100%",to:"150%"};e.scale&&(typeof e.scale=="object"?t=e.scale:t.to=e.scale);var n={elems:e.elems||alice.anima,scale:t,shadow:e.shadow||!0,duration:e.duration||"750ms",timing:e.timing||"easeOutSine",delay:e.delay||"0ms",iteration:e.iteration||"infinite",direction:e.direction||"alternate",playstate:e.playstate||"running"};return alice.plugins.cheshire(n),n},alice.plugins.dance=function(e){"use strict";console.info("dance: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,rotate:e.rotate||45,duration:e.duration||"750ms",timing:e.timing||"easeInOutBack",delay:e.delay||"0ms",iteration:e.iteration||"infinite",direction:e.direction||"alternate",playstate:e.playstate||"running"};return alice.plugins.cheshire(t),t},alice.plugins.drain=function(e){"use strict";console.info("drain: ",arguments),e||(e="");var t={scale:e.fade==="in"?{from:"0%",to:"100%"}:{from:"100%",to:"0%"},elems:e.elems||alice.anima,rotate:e.rotate||-2880,duration:e.duration||"4500ms",timing:e.timing||"ease-in-out",delay:e.delay||"0ms",iteration:e.iteration||1,direction:e.direction||"normal",playstate:e.playstate||"running"};return alice.plugins.cheshire(t),t},alice.plugins.fade=function(e){"use strict";console.info("fade: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,fade:e.fade||"in",duration:e.duration||"4500ms",timing:e.timing||"ease-in-out",delay:e.delay||"0ms",iteration:e.iteration||1,direction:e.direction||"normal",playstate:e.playstate||"running"};return alice.plugins.cheshire(t),t},alice.plugins.hinge=function(e){"use strict";console.info("hinge: ",arguments),e||(e="");var t={perspectiveOrigin:"top-left",elems:e.elems||alice.anima,rotate:e.rotate||25,overshoot:e.overshoot||0,duration:e.duration||"1000ms",timing:e.timing||"linear",delay:e.delay||"0ms",iteration:e.iteration||"infinite",direction:e.direction||"alternate",playstate:e.playstate||"running"};return alice.plugins.cheshire(t),t},alice.plugins.pageFlip=function(e){"use strict";console.info("pageFlip: ",arguments),e||(e="");var t="";switch(e.flipDirection){case"right":t="right";break;case"up":t="top";break;case"down":t="bottom"}var n={perspectiveOrigin:t||"left",elems:e.elems||alice.anima,flip:e.flipDirection||"left",turns:e.turns||1,overshoot:e.overshoot||0,duration:e.duration||"2000ms",timing:e.timing||"ease-in-out",delay:e.delay||"0ms",iteration:e.iteration||"infinite",direction:e.direction||"normal",playstate:e.playstate||"running"};return alice.plugins.cheshire(n),n},alice.plugins.pendulum=function(e){"use strict";console.info("pendulum: ",arguments),e||(e="");var t={perspectiveOrigin:"top",elems:e.elems||alice.anima,rotate:e.rotate||45,overshoot:e.overshoot||0,duration:e.duration||"2000ms",timing:e.timing||"ease-in-out",delay:e.delay||"0ms",iteration:e.iteration||"infinite",direction:e.direction||"alternate",playstate:e.playstate||"running"};return alice.plugins.cheshire(t),t},alice.plugins.phantomZone=function(e){"use strict";console.info("phantomZone: ",arguments),e||(e="");var t={scale:e.fade==="in"?{from:"1%",to:"100%"}:{from:"100%",to:"1%"},elems:e.elems||alice.anima,rotate:e.rotate||-720,flip:e.flip||"left",duration:e.duration||"5000ms",timing:e.timing||"ease-in-out",delay:e.delay||"0ms",iteration:e.iteration||1,direction:e.direction||"normal",playstate:e.playstate||"running"};return alice.plugins.cheshire(t),t},alice.plugins.raceFlag=function(e){"use strict";console.info("raceFlag: ",arguments),e||(e="");var t={flip:"down",elems:e.elems||alice.anima,rotate:e.rotate||-720,perspectiveOrigin:e.perspectiveOrigin||"top-right",duration:e.duration||"3000ms",timing:e.timing||"ease-in-out",delay:e.delay||"0ms",iteration:e.iteration||1,direction:e.direction||"normal",playstate:e.playstate||"running"};return alice.plugins.cheshire(t),t},alice.plugins.slide=function(e){"use strict";console.info("slide: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,move:e.move||"left",overshoot:e.overshoot||"0",duration:e.duration||"4000ms",timing:e.timing||"ease-in-out",delay:e.delay||"0ms",iteration:e.iteration||1,direction:e.direction||"normal",playstate:e.playstate||"running"};return alice.plugins.cheshire(t),t},alice.plugins.spin=function(e){"use strict";console.info("spin: ",arguments),e||(e="");var t={perspectiveOrigin:"center",direction:"normal",elems:e.elems||alice.anima,flip:e.flip||"left",turns:e.turns||1,overshoot:e.overshoot||0,duration:e.duration||"1200ms",timing:e.timing||"ease-in-out",delay:e.delay||"0ms",iteration:e.iteration||"infinite",playstate:e.playstate||"running"};return alice.plugins.cheshire(t),t},alice.plugins.toss=function(e){"use strict";console.info("toss: ",arguments),e||(e="");var t={rotate:e.move==="left"||e.move==="down"?720:-720,elems:e.elems||alice.anima,move:e.move||"right",overshoot:e.overshoot||0,perspectiveOrigin:e.perspectiveOrigin||"center",duration:e.duration||"2500ms",timing:e.timing||"ease-in-out",delay:e.delay||"0ms",iteration:e.iteration||"infinite",direction:e.direction||"normal",playstate:e.playstate||"running"};return alice.plugins.cheshire(t),t},alice.plugins.twirl=function(e){"use strict";console.info("twirl: ",arguments),e||(e="");var t={rotate:e.flip==="left"?-135:135,elems:e.elems||alice.anima,flip:e.flip||"left",duration:e.duration||"3000ms",timing:e.timing||"ease-in-out",delay:e.delay||"0ms",iteration:e.iteration||1,direction:e.direction||"normal",playstate:e.playstate||"running"};return alice.plugins.cheshire(t),t},alice.plugins.wobble=function(e){"use strict";console.info("wobble: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,rotate:e.rotate||5,perspectiveOrigin:e.perspectiveOrigin||"center",duration:e.duration||"200ms",timing:e.timing||"linear",delay:e.delay||"0ms",iteration:e.iteration||"infinite",direction:"alternate",playstate:e.playstate||"running"};return alice.plugins.cheshire(t),t},alice.plugins.zoom=function(e){"use strict";console.info("zoom: ",arguments),e||(e="");var t={from:"1%",to:"125%"};e.scale&&(typeof e.scale=="object"?t=e.scale:t.to=scale);var n={elems:e.elems||alice.anima,scale:t,shadow:e.shadow||!0,move:e.move||"none",duration:e.duration||"2000ms",timing:e.timing||"ease",delay:e.delay||"0ms",iteration:e.iteration||1,direction:e.direction||"normal",playstate:e.playstate||"running"};return alice.plugins.cheshire(n),n},alice.plugins.caterpillar=function(){"use strict";var e={docWidth:function(){var e=document.body.clientWidth;return e},docHeight:alice.docHeight(),_rot270:"(262deg)",_rot180:"(180deg)",_rot90:"(90deg)",_rot0:"(0deg)",_rotNeg90:"(-90deg)",_rotNeg180:"(-180deg)",_rotNeg270:"(-262deg)",originZero:"",onPageTrigger:"",helper:{getThisId:function(e){var t=e.substring(e.indexOf("_")+1,e.length);return t=parseInt(t,10),t},setAnimationDefaults:function(e,t){e.style[alice.prefixJS+"AnimationDuration"]=t,e.style[alice.prefixJS+"AnimationFillMode"]="forwards",e.style[alice.prefixJS+"AnimationPlayState"]="running",e.style[alice.prefixJS+"AnimationDirection"]="normal",e.style[alice.prefixJS+"AnimationTimingFunction"]="linear",e.style.display="block"},findCSSRule:function(e){var t,n,r,i,s,o,u;t=document.styleSheets.length;for(n=0;n1&&(s.binding==="left"||s.binding==="right"||s.binding==="top"||s.binding==="bottom")&&(u.style[alice.prefixJS+"Transform"]=s.transformRotate+s.transformDegrees[0]),a.style[alice.prefixJS+"Transform"]=s.transformRotate+s.transformDegrees[1]);if(n==="reverse"){if(l>0){if(s.binding==="center"||s.binding==="middle")s.wrap===!0?l===1?a=document.getElementById(r+s.realPageCount):a=document.getElementById(r+(l-1)):l!==1&&(a=document.getElementById(r+(l-1))),a.style[alice.prefixJS+"Transform"]=s.transformRotate+s.transformDegrees[2];s.wrap===!0&&l!==s.realPageCount&&(u=document.getElementById(r+(parseInt(l,10)+1)));if(s.binding==="left"||s.binding==="top"||s.binding==="right"||s.binding==="bottom")u.style.display="none",c.style.display="block";u.style[alice.prefixJS+"Transform"]=s.transformRotate+s.transformDegrees[2]}l===1&&(a=document.getElementById(s.pageName+s.realPageCount),a.style[alice.prefixJS+"Transform"]=s.transformRotate+s.transformDegrees[2],u.style[alice.prefixJS+"Transform"]=s.transformRotate+s.transformDegrees[1])}},clearDoublePages:function(t,n,r,i){var s,o,u=document.getElementById(r),a=e.helper.getThisId(r),f=document.getElementById(i.pageName+(parseInt(a,10)+1)),l="display: block; left: 0px; top: 0px;";if(a%2===1){u.setAttribute("style","");if(t==="forward"){u.style[alice.prefixJS+"TransformOrigin"]=i.originZero,s=i.transformRotate+e._rot90;switch(i.binding){case"top":u.style.top=i.pageHeight+"px";break;case"right":u.style[alice.prefixJS+"TransformOrigin"]=i.transformOrigin;break;case"left":s=i.transformRotate+e._rotNeg90,u.style.left=i.pageWidth+"px";break;case"bottom":s=i.transformRotate+e._rotNeg90,u.style[alice.prefixJS+"TransformOrigin"]=i.transformOrigin}u.style[alice.prefixJS+"Transform"]=s}else if(t==="reverse"){u.setAttribute("style",l),u.style[alice.prefixJS+"TransformOrigin"]=i.originZero;switch(i.binding){case"top":u.style.top=i.pageHeight+"px";break;case"right":u.style[alice.prefixJS+"TransformOrigin"]=i.transformOrigin;break;case"left":u.style.left=i.pageWidth+"px";break;case"bottom":u.style[alice.prefixJS+"TransformOrigin"]=i.transformOrigin;break;default:u.style.top="0px"}}}if(a%2===0){u.setAttribute("style","");if(t==="forward"){u.setAttribute("style",l),u.style[alice.prefixJS+"TransformOrigin"]=i.originZero;switch(i.binding){case"top":u.style[alice.prefixJS+"TransformOrigin"]=i.transformOrigin;break;case"right":u.style.left=i.pageWidth+"px";break;case"left":u.style[alice.prefixJS+"TransformOrigin"]=i.transformOrigin,u.style.left="0px";break;case"bottom":u.style[alice.prefixJS+"TransformOrigin"]=i.originZero,u.style.top=i.pageHeight+"px"}u.style[alice.prefixJS+"Transform"]=e.transformRotate+e._rot0}else if(t==="reverse"){u.style[alice.prefixJS+"TransformOrigin"]=i.originZero,o=e.transformRotate+e._rotNeg90;switch(i.binding){case"top":u.style[alice.prefixJS+"TransformOrigin"]=i.transformOrigin;break;case"right":u.style.left=i.pageWidth+"px";break;case"bottom":o=i.transformRotate+e._rot90,u.style.top=i.pageHeight+"px";break;case"left":u.style[alice.prefixJS+"TransformOrigin"]=i.transformOrigin,o=i.transformRotate+e._rot90}u.style[alice.prefixJS+"Transform"]=o}}u.style[alice.prefixJS+"boxShadow"]=i.shadowPattern0},styleConfig:function(t){var n=document.getElementById(t.pageName+t.pageId);t.paging==="single"&&((t.binding==="center"||t.binding==="middle")&&n.setAttribute("style","display: none; "+alice.prefix+"transform-origin: 50% 50%;"+alice.prefix+"transform: "+t.transformRotate+e._rot90+";"+alice.prefix+"box-shadow: "+t.shadowPattern100+";"),(t.binding==="left"||t.binding==="top"||t.binding==="bottom"||t.binding==="right")&&n.setAttribute("style","display: none; "+alice.prefix+"transform-origin:"+t.transformOrigin+";"+alice.prefix+"transform: "+t.transformRotate+e._rot0+";"+alice.prefix+"box-shadow: "+t.shadowPattern100+";")),t.paging==="double"&&(t.binding==="left"&&(t.pageId%2===1&&(n.style[alice.prefixJS+"TransformOrigin"]=t.originZero,n.style.left=t.pageWidth+"px"),t.pageId%2===0&&(n.style[alice.prefixJS+"TransformOrigin"]=t.transformOrigin,n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot90)),t.binding==="right"&&(t.pageId%2===1&&(n.style[alice.prefixJS+"TransformOrigin"]=t.transformOrigin),t.pageId%2===0&&(n.style[alice.prefixJS+"TransformOrigin"]=t.originZero,n.style.left=t.pageWidth+"px" -<<<<<<< HEAD -,n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg90)),t.binding==="top"&&(t.pageId%2===1&&(n.style.top=t.pageHeight+"px",n.style[alice.prefixJS+"TransformOrigin"]=t.originZero),t.pageId%2===0&&(n.style[alice.prefixJS+"TransformOrigin"]=t.transformOrigin,n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg90)),t.binding==="bottom"&&(t.pageId%2===1&&(n.style[alice.prefixJS+"TransformOrigin"]=t.transformOrigin),t.pageId%2===0&&(n.style[alice.prefixJS+"TransformOrigin"]=t.originZero,n.style.top=t.pageHeight+"px",n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot90)))},init:function(t){var n={},r,i,s,o,u,a,f,l,c,h,p,d;n.pages=[],n.realPageCount=0,n.speed=alice.duration(t.speed),n.book=document.getElementById(t.elems),n.bookName=n.book.id,n.timing=e.timing,n.binding=t.binding,n.piggyBg=t.piggyBg,n.originZero="0 0",n.pageClass=t.pageClass,n.pageName=t.elems+"p_",n.paging=t.paging,n.randomize=t.randomize,n.wrap=t.wrap,n.shadow=t.shadow,n.book.setAttribute("data-state","paused"),n.book.setAttribute("data-page-number","1"),n.bookSize=e.helper.findCSSRule("#"+n.book.getAttribute("id")),n.bookSize?(r=n.bookSize[0],i=n.bookSize[1]):(r=n.book.style.width,i=n.book.style.height),r.indexOf("%")>0?(s="%",o="0."+r.substring(0,r.indexOf(s)),o=parseFloat(o),u=n.docWidth()*o):r.indexOf("px")>0?(s="px",u=r.substring(0,r.indexOf(s))):u=r,n.pageWidth=u,i.indexOf("%")>0?(a="%",f="0."+i.substring(0,i.indexOf(a)),f=parseFloat(f),l=n.docHeight*f):i.indexOf("px")>0?(a="px",l=i.substring(0,i.indexOf(a))):l=i,n.pageHeight=l,n.goggles=Math.floor(n.pageWidth*4);if(n.shadow===!0){n.shadowPattern0="0px 0px 14px rgba(0, 0, 0, 0.1)",n.shadowPattern50="10px 0px 14px rgba(0, 0, 0, 0.3)",n.shadowPattern100="0px 0px 14px rgba(0, 0, 0, 0.3)",n.shadowPatternRev50="-10px 0px 14px rgba(0, 0, 0, 0.3)",n.shadowPatternRev100="0px 0px 14px rgba(0, 0, 0, 0.1)";if(n.binding==="center"||n.binding==="middle")n.shadowPattern50="0px 0px 14px rgba(0, 0, 0, 0.3)"}else n.shadowPattern0="0px 0px 0px rgba(0, 0, 0, 0)",n.shadowPattern50="0px 0px 0px rgba(0, 0, 0, 0)",n.shadowPattern100="0px 0px 0px rgba(0, 0, 0, 0)",n.shadowPatternRev50="0px 0px 0px rgba(0, 0, 0, 0)",n.shadowPatternRev100="0px 0px 0px rgba(0, 0, 0, 0)";n.NewPageClass=t.elems+(new Date).getTime(),e.animationEnd=alice.prefixJS+"AnimationEnd",alice.prefixJS==="Moz"&&(e.animationEnd="animationend"),c=n.book.childNodes,h=0;for(p=0;p=n.realPageCount&&document.getElementById(n.bookName).setAttribute("data-page-number",n.realPageCount)),document.getElementById(n.bookName).dispatchEvent(e.onPageTrigger)},prePage:function(){var t,r,i;n.paging==="single"?t=this.pageNumber()-1:t=this.pageNumber(),n.paging==="double"&&t%2!==0&&t--,r={pageId:t,pageName:n.pageName,bookName:n.bookName,binding:n.binding,wrap:n.wrap,speed:n.speed,randomizer:n.randomize,transformOrigin:n.transformOrigin,paging:n.paging,realPageCount:n.realPageCount,transformRotate:n.transformRotate,originZero:n.originZero},i=document.getElementById(n.bookName).getAttribute("data-state"),n.paging==="single"?n.binding!=="center"&&n.binding!=="middle"?n.wrap===!0?t===0?i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",n.realPageCount)):i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",t-1)):t===1?i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",1)):i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",t)):t===0&&n.wrap===!0?i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",n.realPageCount)):t>1?i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",t)):i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",1)):t!==0?i==="paused"&&(alice.plugins.caterpillar.turnPage(r),document.getElementById(n.bookName).setAttribute("data-page-number",t-=2),t===0&&document.getElementById(n.bookName).setAttribute("data-page-number","1")):document.getElementById(n.bookName).setAttribute("data-page-number","1"),document.getElementById(n.bookName).dispatchEvent(e.onPageTrigger)},appendPages:function(t){var r=document.getElementById(n.bookName),i=n.realPageCount,s=n.paging,o=document.getElementById(n.bookName+"p_1"),u=document.getElementById(n.bookName+"p_2"),a=document.getElementById(t).childNodes,f=n.realPageCount+1,l=[];for(var c=0;c=t.realPageCount?1:t.pageId+1;if(document.getElementById(t.bookName).getAttribute("data-state")==="paused"){t.pageId===0&&t.wrap===!0&&(t.binding==="center"||t.binding==="middle")&&(pageId=t.realPageCount),r=document.getElementById(t.pageName+t.pageId),i,s;try{t.pageId>=t.realPageCount&&t.wrap===!0&&(t.pageId=0),i=document.getElementById(t.bookName).querySelector("div:nth-child("+(t.pageId+1)+")").getAttribute("id"),s=document.getElementById(i),s.style.display="block";if(t.binding==="center"||t.binding==="middle")s.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot90}catch(u){if(t.wrap!==!0)return console.log("This is the end of the book!"),!1}r.style.zIndex="100",r.style[alice.prefixJS+"AnimationName"]=t.pageName+"abstrPageTurnF",document.getElementById(t.bookName).setAttribute("data-state","running"),o=alice.randomize(alice.duration(t.speed),t.randomizer)+"ms",e.helper.setAnimationDefaults(r,o),t.binding!=="center"&&t.binding!=="middle"&&e.helper.piggyback(t.pageId,"standard",t.pageName,t.bookName,o,t.transformOrigin,t.binding,t.transformRotate,t.realPageCount,t.piggyBg)}},abPageTurnR:function(t){if(document.getElementById(t.bookName).getAttribute("data-state")==="paused"){var n,r,i;(t.binding==="center"||t.binding==="middle")&&t.pageId!==0&&(r=document.getElementById(t.pageName+t.pageId),r.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg90,t.pageId++),n=document.getElementById(t.pageName+t.pageId),t.binding!=="center"&&t.binding!=="middle"?t.pageId===0&&t.wrap===!0&&(n=document.getElementById(t.pageName+t.realPageCount),document.getElementById(t.bookName).setAttribute("data-page-number",t.realPageCount)):t.pageId===0&&t.wrap===!0&&(n=document.getElementById(t.pageName+"1"));try{n.style.zIndex="10"}catch(s){if(t.wrap!==!0)return console.log("This is the start of the book!"),!1}switch(t.binding){case"left":n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg270;break;case"bottom":n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg270;break;case"top":n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot270;break;case"right":n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot270}n.style[alice.prefixJS+"AnimationName"]=t.pageName+"abstrPageReTurnF",document.getElementById(t.bookName).setAttribute("data-state","running"),i=alice.randomize(alice.duration(t.speed),t.randomizer)+"ms",e.helper.setAnimationDefaults(n,i),t.binding!=="center"&&t.binding!=="middle"&&e.helper.piggyback(t.pageId,"advanced",t.pageName,t.bookName,i,t.transformOrigin,t.binding,t.transformRotate,t.realPageCount,t.piggyBg)}},turnNextPage:function(t,n,r,i){var s,o,u,a,f;s=e.helper.getThisId(t),s=n==="odd"?s+1:s-1,a=n==="even"?r+"p_oddPageTurnR":r+"p_evenPageTurnF",o=document.getElementById(r).querySelector("div:nth-child("+s+")").getAttribute("id"),u=document.getElementById(o),u.style.zIndex=1,n==="odd"&&(u.style.display="block"),u.style[alice.prefixJS+"AnimationName"]=a,f=alice.randomize(alice.duration(i.speed),i.randomize)+"ms",e.helper.setAnimationDefaults(u,f)},turnPage:function(t){if(document.getElementById(t.bookName).getAttribute("data-state")==="paused"){var n,r,i,s,o,u,a;t.pageId%2===1?(n=t.pageId+2,r=t.bookName+"p_oddPageTurnF"):(n=t.pageId-2,r=t.bookName+"p_evenPageTurnR"),o=document.getElementById(t.bookName).querySelector("div:nth-child("+n+")"),o&&(o=o.getAttribute("id"),u=document.getElementById(o),u.style.zIndex="0",u.style.display="block"),i=document.getElementById(t.pageName+t.pageId),i.style.zIndex="1",i.style[alice.prefixJS+"AnimationName"]=r,document.getElementById(t.bookName).setAttribute("data-state","running"),a=alice.randomize(alice.duration(t.speed),t.randomizer)+"ms",e.helper.setAnimationDefaults(i,a)}}};return e}(),alice.plugins.book=function(e){"use strict";console.info("book: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,pageClass:e.pageClass||"",bookWidth:e.bookWidth||document.getElementById(e.elems||alice.anima).style.width,bookHeight:e.bookHeight||document.getElementById(e.elems||alice.anima).style.height,shadow:e.shadow||!1,speed:e.speed||"500ms",randomize:e.randomize||"15%",binding:e.binding||"left",paging:"double"};return console.log(t),alice.plugins.caterpillar.init(t)},alice.plugins.notebook=function(e){"use strict";console.info("notebook: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,pageClass:e.pageClass||"",bookWidth:e.bookWidth||document.getElementById(e.elems||alice.anima).style.width,bookHeight:e.bookHeight||document.getElementById(e.elems||alice.anima).style.height,shadow:e.shadow||!1,speed:e.speed||"500ms",randomize:e.randomize||"15%",binding:e.binding||"top",paging:"single",wrap:e.wrap||!1,piggyBg:e.pageBackground||"#222"};return console.log(t),alice.plugins.caterpillar.init(t)},alice.plugins.flipbook=function(e){"use strict";console.info("flipbook: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,pageClass:e.pageClass||"",bookWidth:e.bookWidth||document.getElementById(e.elems||alice.anima).style.width,bookHeight:e.bookHeight||document.getElementById(e.elems||alice.anima).style.height,shadow:e.shadow||!1,speed:e.speed||"500ms",randomize:e.randomize||"15%",binding:e.binding||"center",paging:"single",wrap:e.wrap||!1};return console.log(t),alice.plugins.caterpillar.init(t)}; -======= -,n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg90)),t.binding==="top"&&(t.pageId%2===1&&(n.style.top=t.pageHeight+"px",n.style[alice.prefixJS+"TransformOrigin"]=t.originZero),t.pageId%2===0&&(n.style[alice.prefixJS+"TransformOrigin"]=t.transformOrigin,n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg90)),t.binding==="bottom"&&(t.pageId%2===1&&(n.style[alice.prefixJS+"TransformOrigin"]=t.transformOrigin),t.pageId%2===0&&(n.style[alice.prefixJS+"TransformOrigin"]=t.originZero,n.style.top=t.pageHeight+"px",n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot90)))},init:function(t){var n={},r,i,s,o,u,a,f,l,c,h,p,d;n.pages=[],n.realPageCount=0,n.speed=alice.duration(t.speed),n.book=document.getElementById(t.elems),n.bookName=n.book.id,n.timing=e.timing,n.binding=t.binding,n.piggyBg=t.piggyBg,n.originZero="0 0",n.pageClass=t.pageClass,n.pageName=t.elems+"p_",n.paging=t.paging,n.randomize=t.randomize,n.wrap=t.wrap,n.shadow=t.shadow,n.book.setAttribute("data-state","paused"),n.book.setAttribute("data-page-number","1"),n.bookSize=e.helper.findCSSRule("#"+n.book.getAttribute("id")),n.bookSize?(r=n.bookSize[0],i=n.bookSize[1]):(r=n.book.style.width,i=n.book.style.height),r.indexOf("%")>0?(s="%",o="0."+r.substring(0,r.indexOf(s)),o=parseFloat(o),u=n.docWidth()*o):r.indexOf("px")>0?(s="px",u=r.substring(0,r.indexOf(s))):u=r,n.pageWidth=u,i.indexOf("%")>0?(a="%",f="0."+i.substring(0,i.indexOf(a)),f=parseFloat(f),l=n.docHeight*f):i.indexOf("px")>0?(a="px",l=i.substring(0,i.indexOf(a))):l=i,n.pageHeight=l,n.goggles=Math.floor(n.pageWidth*4);if(n.shadow===!0){n.shadowPattern0="0px 0px 14px rgba(0, 0, 0, 0.1)",n.shadowPattern50="10px 0px 14px rgba(0, 0, 0, 0.3)",n.shadowPattern100="0px 0px 14px rgba(0, 0, 0, 0.3)",n.shadowPatternRev50="-10px 0px 14px rgba(0, 0, 0, 0.3)",n.shadowPatternRev100="0px 0px 14px rgba(0, 0, 0, 0.1)";if(n.binding==="center"||n.binding==="middle")n.shadowPattern50="0px 0px 14px rgba(0, 0, 0, 0.3)"}else n.shadowPattern0="0px 0px 0px rgba(0, 0, 0, 0)",n.shadowPattern50="0px 0px 0px rgba(0, 0, 0, 0)",n.shadowPattern100="0px 0px 0px rgba(0, 0, 0, 0)",n.shadowPatternRev50="0px 0px 0px rgba(0, 0, 0, 0)",n.shadowPatternRev100="0px 0px 0px rgba(0, 0, 0, 0)";n.NewPageClass=t.elems+(new Date).getTime(),e.animationEnd=alice.prefixJS+"AnimationEnd",alice.prefixJS==="Moz"&&(e.animationEnd="animationend"),c=n.book.childNodes,h=0;for(p=0;p=n.realPageCount&&document.getElementById(n.bookName).setAttribute("data-page-number",n.realPageCount)),document.getElementById(n.bookName).dispatchEvent(e.onPageTrigger)},prePage:function(){var t,r,i;n.paging==="single"?t=this.pageNumber()-1:t=this.pageNumber(),n.paging==="double"&&t%2!==0&&t--,r={pageId:t,pageName:n.pageName,bookName:n.bookName,binding:n.binding,wrap:n.wrap,speed:n.speed,randomizer:n.randomize,transformOrigin:n.transformOrigin,paging:n.paging,realPageCount:n.realPageCount,transformRotate:n.transformRotate,originZero:n.originZero},i=document.getElementById(n.bookName).getAttribute("data-state"),n.paging==="single"?n.binding!=="center"&&n.binding!=="middle"?n.wrap===!0?t===0?i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",n.realPageCount)):i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",t)):t===1?i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",1)):i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",t)):t===0&&n.wrap===!0?i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",n.realPageCount)):t>1?i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",t)):i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",1)):t!==0?i==="paused"&&(alice.plugins.caterpillar.turnPage(r),document.getElementById(n.bookName).setAttribute("data-page-number",t-=2),t===0&&document.getElementById(n.bookName).setAttribute("data-page-number","1")):document.getElementById(n.bookName).setAttribute("data-page-number","1"),document.getElementById(n.bookName).dispatchEvent(e.onPageTrigger)},appendPages:function(t){var r=document.getElementById(n.bookName),i=n.realPageCount,s=n.paging,o=document.getElementById(n.bookName+"p_1"),u=document.getElementById(n.bookName+"p_2"),a=document.getElementById(t).childNodes,f=n.realPageCount+1,l=[];for(var c=0;c=t.realPageCount?1:t.pageId+1;if(document.getElementById(t.bookName).getAttribute("data-state")==="paused"){t.pageId===0&&t.wrap===!0&&(t.binding==="center"||t.binding==="middle")&&(pageId=t.realPageCount),r=document.getElementById(t.pageName+t.pageId),i,s;try{t.pageId>=t.realPageCount&&t.wrap===!0&&(t.pageId=0),i=document.getElementById(t.bookName).querySelector("div:nth-child("+(t.pageId+1)+")").getAttribute("id"),s=document.getElementById(i),s.style.display="block";if(t.binding==="center"||t.binding==="middle")s.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot90}catch(u){if(t.wrap!==!0)return console.log("This is the end of the book!"),!1}r.style.zIndex="100",r.style[alice.prefixJS+"AnimationName"]=t.pageName+"abstrPageTurnF",document.getElementById(t.bookName).setAttribute("data-state","running"),o=alice.randomize(alice.duration(t.speed),t.randomizer)+"ms",e.helper.setAnimationDefaults(r,o),t.binding!=="center"&&t.binding!=="middle"&&e.helper.piggyback(t.pageId,"standard",t.pageName,t.bookName,o,t.transformOrigin,t.binding,t.transformRotate,t.realPageCount,t.piggyBg)}},abPageTurnR:function(t){if(document.getElementById(t.bookName).getAttribute("data-state")==="paused"){var n,r,i;(t.binding==="center"||t.binding==="middle")&&t.pageId!==0&&(r=document.getElementById(t.pageName+t.pageId),r.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg90,t.pageId++),n=document.getElementById(t.pageName+t.pageId),t.binding!=="center"&&t.binding!=="middle"?t.pageId===0&&t.wrap===!0&&(n=document.getElementById(t.pageName+t.realPageCount),document.getElementById(t.bookName).setAttribute("data-page-number",t.realPageCount)):t.pageId===0&&t.wrap===!0&&(n=document.getElementById(t.pageName+"1"));try{n.style.zIndex="10"}catch(s){if(t.wrap!==!0)return console.log("This is the start of the book!"),!1}switch(t.binding){case"left":n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg270;break;case"bottom":n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg270;break;case"top":n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot270;break;case"right":n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot270}n.style[alice.prefixJS+"AnimationName"]=t.pageName+"abstrPageReTurnF",document.getElementById(t.bookName).setAttribute("data-state","running"),i=alice.randomize(alice.duration(t.speed),t.randomizer)+"ms",e.helper.setAnimationDefaults(n,i),t.binding!=="center"&&t.binding!=="middle"&&e.helper.piggyback(t.pageId,"advanced",t.pageName,t.bookName,i,t.transformOrigin,t.binding,t.transformRotate,t.realPageCount,t.piggyBg)}},turnNextPage:function(t,n,r,i){var s,o,u,a,f;s=e.helper.getThisId(t),s=n==="odd"?s+1:s-1,a=n==="even"?r+"p_oddPageTurnR":r+"p_evenPageTurnF",o=document.getElementById(r).querySelector("div:nth-child("+s+")").getAttribute("id"),u=document.getElementById(o),u.style.zIndex=1,n==="odd"&&(u.style.display="block"),u.style[alice.prefixJS+"AnimationName"]=a,f=alice.randomize(alice.duration(i.speed),i.randomize)+"ms",e.helper.setAnimationDefaults(u,f)},turnPage:function(t){if(document.getElementById(t.bookName).getAttribute("data-state")==="paused"){var n,r,i,s,o,u,a;t.pageId%2===1?(n=t.pageId+2,r=t.bookName+"p_oddPageTurnF"):(n=t.pageId-2,r=t.bookName+"p_evenPageTurnR"),o=document.getElementById(t.bookName).querySelector("div:nth-child("+n+")"),o&&(o=o.getAttribute("id"),u=document.getElementById(o),u.style.zIndex="0",u.style.display="block"),i=document.getElementById(t.pageName+t.pageId),i.style.zIndex="1",i.style[alice.prefixJS+"AnimationName"]=r,document.getElementById(t.bookName).setAttribute("data-state","running"),a=alice.randomize(alice.duration(t.speed),t.randomizer)+"ms",e.helper.setAnimationDefaults(i,a)}}};return e}(),alice.plugins.book=function(e){"use strict";console.info("book: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,pageClass:e.pageClass||"",bookWidth:e.bookWidth||document.getElementById(e.elems||alice.anima).style.width,bookHeight:e.bookHeight||document.getElementById(e.elems||alice.anima).style.height,shadow:e.shadow||!1,speed:e.speed||"500ms",randomize:e.randomize||"15%",binding:e.binding||"left",paging:"double"};return console.log(t),alice.plugins.caterpillar.init(t)},alice.plugins.notebook=function(e){"use strict";console.info("notebook: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,pageClass:e.pageClass||"",bookWidth:e.bookWidth||document.getElementById(e.elems||alice.anima).style.width,bookHeight:e.bookHeight||document.getElementById(e.elems||alice.anima).style.height,shadow:e.shadow||!1,speed:e.speed||"500ms",randomize:e.randomize||"15%",binding:e.binding||"top",paging:"single",wrap:e.wrap||!1,piggyBg:e.pageBackground||"#222"};return console.log(t),alice.plugins.caterpillar.init(t)},alice.plugins.flipbook=function(e){"use strict";console.info("flipbook: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,pageClass:e.pageClass||"",bookWidth:e.bookWidth||document.getElementById(e.elems||alice.anima).style.width,bookHeight:e.bookHeight||document.getElementById(e.elems||alice.anima).style.height,shadow:e.shadow||!1,speed:e.speed||"500ms",randomize:e.randomize||"15%",binding:e.binding||"center",paging:"single",wrap:e.wrap||!1};return console.log(t),alice.plugins.caterpillar.init(t)}; ->>>>>>> 9b064d710e34d1dc07ab86b9767fd61f58977426 +,n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg90)),t.binding==="top"&&(t.pageId%2===1&&(n.style.top=t.pageHeight+"px",n.style[alice.prefixJS+"TransformOrigin"]=t.originZero),t.pageId%2===0&&(n.style[alice.prefixJS+"TransformOrigin"]=t.transformOrigin,n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg90)),t.binding==="bottom"&&(t.pageId%2===1&&(n.style[alice.prefixJS+"TransformOrigin"]=t.transformOrigin),t.pageId%2===0&&(n.style[alice.prefixJS+"TransformOrigin"]=t.originZero,n.style.top=t.pageHeight+"px",n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot90)))},init:function(t){var n={},r,i,s,o,u,a,f,l,c,h,p,d;n.pages=[],n.realPageCount=0,n.speed=alice.duration(t.speed),n.book=document.getElementById(t.elems),n.bookName=n.book.id,n.timing=e.timing,n.binding=t.binding,n.piggyBg=t.piggyBg,n.originZero="0 0",n.pageClass=t.pageClass,n.pageName=t.elems+"p_",n.paging=t.paging,n.randomize=t.randomize,n.wrap=t.wrap,n.shadow=t.shadow,n.book.setAttribute("data-state","paused"),n.book.setAttribute("data-page-number","1"),n.bookSize=e.helper.findCSSRule("#"+n.book.getAttribute("id")),n.bookSize?(r=n.bookSize[0],i=n.bookSize[1]):(r=n.book.style.width,i=n.book.style.height),r.indexOf("%")>0?(s="%",o="0."+r.substring(0,r.indexOf(s)),o=parseFloat(o),u=n.docWidth()*o):r.indexOf("px")>0?(s="px",u=r.substring(0,r.indexOf(s))):u=r,n.pageWidth=u,i.indexOf("%")>0?(a="%",f="0."+i.substring(0,i.indexOf(a)),f=parseFloat(f),l=n.docHeight*f):i.indexOf("px")>0?(a="px",l=i.substring(0,i.indexOf(a))):l=i,n.pageHeight=l,n.goggles=Math.floor(n.pageWidth*4);if(n.shadow===!0){n.shadowPattern0="0px 0px 14px rgba(0, 0, 0, 0.1)",n.shadowPattern50="10px 0px 14px rgba(0, 0, 0, 0.3)",n.shadowPattern100="0px 0px 14px rgba(0, 0, 0, 0.3)",n.shadowPatternRev50="-10px 0px 14px rgba(0, 0, 0, 0.3)",n.shadowPatternRev100="0px 0px 14px rgba(0, 0, 0, 0.1)";if(n.binding==="center"||n.binding==="middle")n.shadowPattern50="0px 0px 14px rgba(0, 0, 0, 0.3)"}else n.shadowPattern0="0px 0px 0px rgba(0, 0, 0, 0)",n.shadowPattern50="0px 0px 0px rgba(0, 0, 0, 0)",n.shadowPattern100="0px 0px 0px rgba(0, 0, 0, 0)",n.shadowPatternRev50="0px 0px 0px rgba(0, 0, 0, 0)",n.shadowPatternRev100="0px 0px 0px rgba(0, 0, 0, 0)";n.NewPageClass=t.elems+(new Date).getTime(),e.animationEnd=alice.prefixJS+"AnimationEnd",alice.prefixJS==="Moz"&&(e.animationEnd="animationend"),c=n.book.childNodes,h=0;for(p=0;p=n.realPageCount&&document.getElementById(n.bookName).setAttribute("data-page-number",n.realPageCount)),document.getElementById(n.bookName).dispatchEvent(e.onPageTrigger)},prePage:function(){var t,r,i;n.paging==="single"?t=this.pageNumber()-1:t=this.pageNumber(),n.paging==="double"&&t%2!==0&&t--,r={pageId:t,pageName:n.pageName,bookName:n.bookName,binding:n.binding,wrap:n.wrap,speed:n.speed,randomizer:n.randomize,transformOrigin:n.transformOrigin,paging:n.paging,realPageCount:n.realPageCount,transformRotate:n.transformRotate,originZero:n.originZero},i=document.getElementById(n.bookName).getAttribute("data-state"),n.paging==="single"?n.binding!=="center"&&n.binding!=="middle"?n.wrap===!0?t===0?i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",n.realPageCount)):i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",t)):t===1?i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",1)):i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",t)):t===0&&n.wrap===!0?i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",n.realPageCount)):t>1?i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",t)):i==="paused"&&(alice.plugins.caterpillar.abPageTurnR(r),document.getElementById(n.bookName).setAttribute("data-page-number",1)):t!==0?i==="paused"&&(alice.plugins.caterpillar.turnPage(r),document.getElementById(n.bookName).setAttribute("data-page-number",t-=2),t===0&&document.getElementById(n.bookName).setAttribute("data-page-number","1")):document.getElementById(n.bookName).setAttribute("data-page-number","1"),document.getElementById(n.bookName).dispatchEvent(e.onPageTrigger)},appendPages:function(t){var r=document.getElementById(n.bookName),i=n.realPageCount,s=n.paging,o=document.getElementById(n.bookName+"p_1"),u=document.getElementById(n.bookName+"p_2"),a=document.getElementById(t).childNodes,f=n.realPageCount+1,l=[];for(var c=0;c=t.realPageCount?1:t.pageId+1;if(document.getElementById(t.bookName).getAttribute("data-state")==="paused"){t.pageId===0&&t.wrap===!0&&(t.binding==="center"||t.binding==="middle")&&(pageId=t.realPageCount),r=document.getElementById(t.pageName+t.pageId),i,s;try{t.pageId>=t.realPageCount&&t.wrap===!0&&(t.pageId=0),s=document.getElementById(t.bookName+"p_"+(t.pageId+1)),s.style.display="block";if(t.binding==="center"||t.binding==="middle")s.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot90}catch(u){if(t.wrap!==!0)return console.log("This is the end of the book!"),!1}r.style.zIndex="100",r.style[alice.prefixJS+"AnimationName"]=t.pageName+"abstrPageTurnF",document.getElementById(t.bookName).setAttribute("data-state","running"),o=alice.randomize(alice.duration(t.speed),t.randomizer)+"ms",e.helper.setAnimationDefaults(r,o),t.binding!=="center"&&t.binding!=="middle"&&e.helper.piggyback(t.pageId,"standard",t.pageName,t.bookName,o,t.transformOrigin,t.binding,t.transformRotate,t.realPageCount,t.piggyBg)}},abPageTurnR:function(t){if(document.getElementById(t.bookName).getAttribute("data-state")==="paused"){var n,r,i;(t.binding==="center"||t.binding==="middle")&&t.pageId!==0&&(r=document.getElementById(t.pageName+t.pageId),r.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg90,t.pageId++),n=document.getElementById(t.pageName+t.pageId),t.binding!=="center"&&t.binding!=="middle"?t.pageId===0&&t.wrap===!0&&(n=document.getElementById(t.pageName+t.realPageCount),document.getElementById(t.bookName).setAttribute("data-page-number",t.realPageCount)):t.pageId===0&&t.wrap===!0&&(n=document.getElementById(t.pageName+"1"));try{n.style.zIndex="10"}catch(s){if(t.wrap!==!0)return console.log("This is the start of the book!"),!1}switch(t.binding){case"left":n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg270;break;case"bottom":n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rotNeg270;break;case"top":n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot270;break;case"right":n.style[alice.prefixJS+"Transform"]=t.transformRotate+e._rot270}n.style[alice.prefixJS+"AnimationName"]=t.pageName+"abstrPageReTurnF",document.getElementById(t.bookName).setAttribute("data-state","running"),i=alice.randomize(alice.duration(t.speed),t.randomizer)+"ms",e.helper.setAnimationDefaults(n,i),t.binding!=="center"&&t.binding!=="middle"&&e.helper.piggyback(t.pageId,"advanced",t.pageName,t.bookName,i,t.transformOrigin,t.binding,t.transformRotate,t.realPageCount,t.piggyBg)}},turnNextPage:function(t,n,r,i){var s,o,u,a,f;s=e.helper.getThisId(t),s=n==="odd"?s+1:s-1,a=n==="even"?r+"p_oddPageTurnR":r+"p_evenPageTurnF",o=document.getElementById(r).querySelector("div:nth-child("+s+")").getAttribute("id"),u=document.getElementById(o),u.style.zIndex=1,n==="odd"&&(u.style.display="block"),u.style[alice.prefixJS+"AnimationName"]=a,f=alice.randomize(alice.duration(i.speed),i.randomize)+"ms",e.helper.setAnimationDefaults(u,f)},turnPage:function(t){if(document.getElementById(t.bookName).getAttribute("data-state")==="paused"){var n,r,i,s,o,u,a;t.pageId%2===1?(n=t.pageId+2,r=t.bookName+"p_oddPageTurnF"):(n=t.pageId-2,r=t.bookName+"p_evenPageTurnR"),o=document.getElementById(t.bookName).querySelector("div:nth-child("+n+")"),o&&(o=o.getAttribute("id"),u=document.getElementById(o),u.style.zIndex="0",u.style.display="block"),i=document.getElementById(t.pageName+t.pageId),i.style.zIndex="1",i.style[alice.prefixJS+"AnimationName"]=r,document.getElementById(t.bookName).setAttribute("data-state","running"),a=alice.randomize(alice.duration(t.speed),t.randomizer)+"ms",e.helper.setAnimationDefaults(i,a)}}};return e}(),alice.plugins.book=function(e){"use strict";console.info("book: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,pageClass:e.pageClass||"",bookWidth:e.bookWidth||document.getElementById(e.elems||alice.anima).style.width,bookHeight:e.bookHeight||document.getElementById(e.elems||alice.anima).style.height,shadow:e.shadow||!1,speed:e.speed||"500ms",randomize:e.randomize||"15%",binding:e.binding||"left",paging:"double"};return console.log(t),alice.plugins.caterpillar.init(t)},alice.plugins.notebook=function(e){"use strict";console.info("notebook: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,pageClass:e.pageClass||"",bookWidth:e.bookWidth||document.getElementById(e.elems||alice.anima).style.width,bookHeight:e.bookHeight||document.getElementById(e.elems||alice.anima).style.height,shadow:e.shadow||!1,speed:e.speed||"500ms",randomize:e.randomize||"15%",binding:e.binding||"top",paging:"single",wrap:e.wrap||!1,piggyBg:e.pageBackground||"#222"};return console.log(t),alice.plugins.caterpillar.init(t)},alice.plugins.flipbook=function(e){"use strict";console.info("flipbook: ",arguments),e||(e="");var t={elems:e.elems||alice.anima,pageClass:e.pageClass||"",bookWidth:e.bookWidth||document.getElementById(e.elems||alice.anima).style.width,bookHeight:e.bookHeight||document.getElementById(e.elems||alice.anima).style.height,shadow:e.shadow||!1,speed:e.speed||"500ms",randomize:e.randomize||"15%",binding:e.binding||"center",paging:"single",wrap:e.wrap||!1};return console.log(t),alice.plugins.caterpillar.init(t)}; \ No newline at end of file diff --git a/build/alice.min.js.gz b/build/alice.min.js.gz index dde4ea47f0b9eaa5bd9b953a55e09b0c95fce545..7df2fc064ec97632db0b0a4a999ab593d6cd31a5 100644 GIT binary patch delta 9519 zcmV+~CD7XPQ|eQY7XinS7%&vc$v5*&EU>$}y1J^my1M%IWcN#vTp}T#JlUND(a;Ty zFF!@`*KrVC+Q!%o5}s!`5BI;n8oS2Jk)IVw-k(gTvrm;U=C4m@UN0UGS6&!qs zP%t2q8EB8!7Ny>U1jB@S#sWkW8|jo9FXxkS0Y*Jp;E0B)3*askn8UBJ4rsWkAbOgn zbNk7Y%gf8Q%ZP19@#IOs!ICHM4`07MI(^#$f<=KJ!+<7<5z}85lk@>QI(cdwo|?w1 zm#2rP1d;r7c=qo2$1~%nmnSDLkIoL?o*Ks|#_QvwH-~43$4Bt%2jk_@&&K~fJbFWu zX#zwF$&)7!sIW?LpD>fR0z3+`#_jH^%rn6I;gkIWGY<3T^C*E1I}(h~_|yK9lRg6^ z0i%;+1Ckg|=OiKvCtL&padqZkHgz6#`yBaA>VBn@4Fog+N|QnaTLIUTo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-!JY=dtA{M+TF1v26 zB6z)EtzxX2I8;qiio=^Jlh&$M{BV}h{d$(sCoWi-Wft3NScPYt*vah;pW|Zt@9+L7 znpz34X|^hGduy63&cdU*w5`5xZ|gW*g)hdL>000ebqS^oe diff --git a/src/alice.plugins.caterpillar.js b/src/alice.plugins.caterpillar.js index cc3980f..cd8b8f7 100644 --- a/src/alice.plugins.caterpillar.js +++ b/src/alice.plugins.caterpillar.js @@ -1108,8 +1108,7 @@ alice.plugins.caterpillar = (function () { if(params.pageId >= params.realPageCount && params.wrap === true){ params.pageId = 0; } - nxtPageId = document.getElementById(params.bookName).querySelector('div:nth-child('+(params.pageId + 1)+')').getAttribute('id'); - nxtPage = document.getElementById(nxtPageId); + nxtPage = document.getElementById(params.bookName+"p_"+(params.pageId+1)); nxtPage.style.display = 'block'; if(params.binding === 'center' || params.binding === 'middle'){ nxtPage.style[alice.prefixJS+'Transform'] = params.transformRotate+core._rot90;