diff --git a/DOCUMENTATION.md b/DOCUMENTATION.md index 52b67c5..e2bfe34 100755 --- a/DOCUMENTATION.md +++ b/DOCUMENTATION.md @@ -690,13 +690,15 @@ Whether there should be a delay between a step animating out and the next animat #### `reverseWhenNavigatingBackwards` -- Type: true/false -- Default: `false` +**Note**: not yet implemented. + +~~- Type: true/false~~ +~~- Default: `false`~~ -Whether animations should be reversed when a user navigates backwards by clicking a previous button/swiping/pressing the left key. +~~Whether animations should be reversed when a user navigates backwards by clicking a previous button/swiping/pressing the left key.~~ -- `true`: when navigating backwards, Sequence will animate the preceding step from its "animate-out" position to its "animate-in" position (creating a reversed animation). -- `false`: when navigating backwards, Sequence will animate the preceding step from its "start" position to its "animate-in" position (as it does when navigating forwards). +~~- `true`: when navigating backwards, Sequence will animate the preceding step from its "animate-out" position to its "animate-in" position (creating a reversed animation).~~ +~~- `false`: when navigating backwards, Sequence will animate the preceding step from its "start" position to its "animate-in" position (as it does when navigating forwards).~~ #### `moveActiveStepToTop` diff --git a/scripts/sequence.js b/scripts/sequence.js index 5f35b76..dfae8b9 100755 --- a/scripts/sequence.js +++ b/scripts/sequence.js @@ -4,7 +4,7 @@ * * @link https://github.com/IanLunn/Sequence * @author IanLunn - * @version 2.0.0-alpha.2 + * @version 2.0.0-alpha.3 * @license https://github.com/IanLunn/Sequence/blob/master/LICENSE * @copyright IanLunn */ @@ -2337,6 +2337,9 @@ function defineSequence(imagesLoaded, Hammer) { var correspondingStepId, newHashTag; + // Does the browser support pushstate? + self.hasPushstate = !!(window.history && history.pushState); + // Get the current hashTag newHashTag = location.hash.replace("#!", ""); @@ -2410,6 +2413,7 @@ function defineSequence(imagesLoaded, Hammer) { * * - hashTags are being used and this isn't the first run * - hashTags are being used, this is the first run, and the first hash change is allowed in the options + * - the current step has a hashTag */ update: function() { @@ -2424,13 +2428,18 @@ function defineSequence(imagesLoaded, Hammer) { // Get the current hashTag self.currentHashTag = self.stepHashTags[hashTagId]; - // Add the hashTag to the URL - if (history.pushState) { - history.pushState(null, null, "#!" + self.currentHashTag); - } - else { - location.hash = "#!" + self.currentHashTag; + if(self.currentHashtag !== "") { + + // Add the hashTag to the URL + if (self.hasPushstate === true) { + history.pushState(null, null, "#!" + self.currentHashTag); + } + else { + location.hash = "#!" + self.currentHashTag; + } } + + } }, diff --git a/scripts/sequence.min.js b/scripts/sequence.min.js index ee64219..a9aabb1 100755 --- a/scripts/sequence.min.js +++ b/scripts/sequence.min.js @@ -4,10 +4,10 @@ * * @link https://github.com/IanLunn/Sequence * @author IanLunn - * @version 2.0.0-alpha.2 + * @version 2.0.0-alpha.3 * @license https://github.com/IanLunn/Sequence/blob/master/LICENSE * @copyright IanLunn */ -function defineSequence(imagesLoaded,Hammer){"use strict";var Sequence=function(element,options){function isArray(object){return"[object Array]"===Object.prototype.toString.call(object)?!0:!1}function extend(a,b){for(var i in b)a[i]=b[i];return a}function addEvent(obj,type,fn){return obj.attachEvent===!0?(obj["e"+type+fn]=fn,obj[type+fn]=function(){obj["e"+type+fn](window.event)},obj.attachEvent("on"+type,obj[type+fn])):obj.addEventListener(type,fn,!1),fn}function removeEvent(obj,type,fn){obj.detachEvent===!0?(obj.detachEvent("on"+type,obj[type+fn]),obj[type+fn]=null):obj.removeEventListener(type,fn,!1)}function getElementsByClassName(node,classname){return node.getElementsByClassName===!0?node.getElementsByClassName(classname):function(searchClass,node){null===node&&(node=document);var i,j,classElements=[],els=node.getElementsByTagName("*"),elsLen=els.length,pattern=new RegExp("(^|\\s)"+searchClass+"(\\s|$)");for(i=0,j=0;elsLen>i;i++)pattern.test(els[i].className)&&(classElements[j]=els[i],j++);return classElements}(classname,node)}function convertTimeToMs(time){var convertedTime,fraction;return fraction=time.indexOf("ms")>-1?1:1e3,convertedTime="0s"==time?0:parseFloat(time.replace("s",""))*fraction}function hasClass(el,name){return new RegExp("(\\s|^)"+name+"(\\s|$)").test(el.className)}function addClass(elements,name){var element,i,elementsLength=elements.length;for(isArray(elements)===!1&&(elementsLength=1,elements=[elements]),i=0;elementsLength>i;i++)element=elements[i],hasClass(element,name)===!1&&(element.className+=(element.className?" ":"")+name)}function removeClass(elements,name){var element,i,elementsLength=elements.length;for(isArray(elements)===!1&&(elementsLength=1,elements=[elements]),i=0;elementsLength>i;i++)element=elements[i],hasClass(element,name)===!0&&(element.className=element.className.replace(new RegExp("(\\s|^)"+name+"(\\s|$)")," ").replace(/^\s+|\s+$/g,""))}function removeNoJsClass(self){if(self.transitionsSupported!==!1)for(var i=0;ii;i++){var element=elements[i],parent=element.parentNode;hasClass(parent,"sequence-canvas")===!0&&steps.push(element)}return steps}function propertiesToCss(properties,polar){var css="";return css+="translateX("+properties.sequenceX+"px) ",css+="translateY("+properties.sequenceY+"px) ",css+="translateZ("+properties.sequenceZ+"px) ",polar!==!0?(css+="rotateX("+properties.sequenceRotateX+"deg) ",css+="rotateY("+properties.sequenceRotateY+"deg) ",css+="rotateZ("+properties.sequenceRotate+"deg) ",css+="scale("+properties.sequenceScale+")"):(css+="rotateZ("+properties.sequenceRotate+"deg) ",css+="rotateY("+properties.sequenceRotateY+"deg) ",css+="rotateX("+properties.sequenceRotateX+"deg) "),css}if("true"!==element.dataset.sequence){element.dataset.sequence=!0;var defaults={startingStepId:1,startingStepAnimatesIn:!1,cycle:!0,phaseThreshold:!0,reverseWhenNavigatingBackwards:!1,moveActiveStepToTop:!0,animateCanvas:!0,animateCanvasDuration:500,autoPlay:!0,autoPlayThreshold:5e3,autoPlayDirection:1,navigationSkip:!0,navigationSkipThreshold:250,fadeStepWhenSkipped:!1,fadeStepTime:500,preventReverseSkipping:!1,nextButton:!0,prevButton:!0,pauseButton:!0,unpauseThreshold:null,pauseOnHover:!0,pagination:!0,preloader:!1,preloadTheseSteps:[1],preloadTheseImages:[],hideStepsUntilPreloaded:!0,keyNavigation:!1,numericKeysGoToSteps:!1,keyEvents:{left:function(sequence){sequence.prev()},right:function(sequence){sequence.next()}},swipeNavigation:!0,swipeEvents:{left:function(sequence){sequence.prev()},right:function(sequence){sequence.next()},up:!1,down:!1},swipeHammerOptions:{prevent_mouseevents:!0,drag_min_distance:10,stop_browser_behavior:!1},hashTags:!1,hashDataAttribute:!1,hashChangesOnFirstStep:!1,fallback:{speed:500,layout:"auto"}},domThreshold=50,resizeThreshold=100,Modernizr=function(a,b,c){function x(a){i.cssText=a}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b){for(var d in a){var e=a[d];if(!A(e,"-")&&i[e]!==c)return"pfx"==b?e:!0}return!1}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}function D(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+m.join(d+" ")+d).split(" ");return z(b,"string")||z(b,"undefined")?B(e,b):(e=(a+" "+n.join(d+" ")+d).split(" "),C(e,b,c))}var j,u,w,d="2.8.2",e={},f=b.documentElement,g="modernizr",h=b.createElement(g),i=h.style,l=({}.toString,"Webkit Moz O ms"),m=l.split(" "),n=l.toLowerCase().split(" "),o={svg:"http://www.w3.org/2000/svg"},p={},s=[],t=s.slice,v={}.hasOwnProperty;w=z(v,"undefined")||z(v.call,"undefined")?function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")}:function(a,b){return v.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if("function"!=typeof c)throw new TypeError;var d=t.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(t.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(t.call(arguments)))};return e}),p.cssanimations=function(){return D("animationName")},p.csstransitions=function(){return D("transition")},p.svg=function(){return!!b.createElementNS&&!!b.createElementNS(o.svg,"svg").createSVGRect};for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));return e.addTest=function(a,b){if("object"==typeof a)for(var d in a)w(a,d)&&e.addTest(d,a[d]);else{if(a=a.toLowerCase(),e[a]!==c)return e;b="function"==typeof b?b():b,"undefined"!=typeof enableClasses&&enableClasses&&(f.className+=" "+(b?"":"no-")+a),e[a]=b}return e},x(""),h=j=null,e._version=d,e._domPrefixes=n,e._cssomPrefixes=m,e.testProp=function(a){return B([a])},e.testAllProps=D,e.prefixed=function(a,b,c){return b?D(a,b,c):D(a,"pfx")},e}(this,window.document),transformOrigin=Modernizr.prefixed("transformOrigin").replace("mO","m-o"),self={};return self._getAnimationMap={init:function(element){if(this.animationMap={},self.transitionsSupported===!0)this.clonedSequence=this.createClone(element),this.clonedCanvas=getElementsByClassName(this.clonedSequence,"sequence-canvas")[0],this.clonedSteps=getSteps(this.clonedCanvas),this.originalClasses=this.clonedSequence.className,this.animationMap.stepsAnimating=0,this.steps(),this.destroyClone(this.clonedSequence);else for(var i=0;ielementNo;elementNo++){element=clonedStepChildren[elementNo],realElement=realStepChildren[elementNo],styles=getComputedStyle(element,null)||element.currentStyle,elementProperties={};var transitionDuration=convertTimeToMs(styles[Modernizr.prefixed("transitionDuration")]),transitionDelay=convertTimeToMs(styles[Modernizr.prefixed("transitionDelay")]),transitionTimingFunction=styles[Modernizr.prefixed("transitionTimingFunction")],computedDuration=transitionDuration+transitionDelay;0!==computedDuration&&(elementProperties.element=realElement,elementProperties.duration=transitionDuration,elementProperties.delay=transitionDelay,elementProperties.timingFunction=transitionTimingFunction,elements.push(elementProperties),(void 0===maxDuration||transitionDuration>maxDuration)&&(maxDuration=transitionDuration),(void 0===maxDelay||transitionDelay>maxDelay)&&(maxDelay=transitionDelay),(void 0===maxComputedDuration||computedDuration>maxComputedDuration)&&(maxComputedDuration=computedDuration))}removeClass(clonedStepElement,phase),this.animationMap[stepName][phase].elements=elements,this.animationMap[stepName][phase].noOfElements=elements.length,this.animationMap[stepName][phase].maxDuration=maxDuration,this.animationMap[stepName][phase].maxDelay=maxDelay,this.animationMap[stepName][phase].computedDuration=maxComputedDuration},createClone:function(element){var clonedSequence=element.cloneNode(!0);return clonedSequence.style.display="none",clonedSequence.id="sequence",element.parentNode.insertBefore(clonedSequence,element),clonedSequence},destroyClone:function(element){element.parentNode.removeChild(element)}},self._ui={defaultElements:{nextButton:".sequence-next",prevButton:".sequence-prev",pauseButton:".sequence-pause",pagination:".sequence-pagination",preloader:".sequence-preloader"},getElements:function(type,option){var element,elements,elementsLength,rel,i,relatedElements=[];for(elements=document.querySelectorAll(option===!0?this.defaultElements[type]:option),elementsLength=elements.length,i=0;elementsLength>i;i++)element=elements[i],rel=element.getAttribute("rel"),(null===rel||rel===self.container.getAttribute("id"))&&relatedElements.push(element);return relatedElements},show:function(element,duration){self.transitionsSupported===!0&&(element.style[Modernizr.prefixed("transitionDuration")]=duration+"ms",element.style[Modernizr.prefixed("transitionProperty")]="opacity, "+Modernizr.prefixed("transform"),element.style.opacity=1)},hide:function(element,duration,callback){self.transitionsSupported===!0&&(element.style[Modernizr.prefixed("transitionDuration")]=duration+"ms",element.style[Modernizr.prefixed("transitionProperty")]="opacity, "+Modernizr.prefixed("transform"),element.style.opacity=".2"),void 0!==callback&&setTimeout(function(){callback()},duration)}},self._autoPlay={init:function(){self.isAutoPlayActive=!1,self.isPaused=self.options.autoPlay===!0?!1:!0,self.options.unpauseThreshold=null===self.options.unpauseThreshold?self.options.autoPlayThreshold:self.options.unpauseThreshold,self.options.autoPlay===!0&&self.isPaused===!1&&this.start()},unpause:function(){self.isPaused===!0&&(self.isPaused=!1,this.start(),removeClass(self.container,"sequence-paused"),removeClass(self.pauseButton,"sequence-paused"),self.unpaused(self))},pause:function(){self.isPaused===!1&&(self.isPaused=!0,this.stop(),addClass(self.container,"sequence-paused"),addClass(self.pauseButton,"sequence-paused"),self.paused(self))},start:function(){var threshold;threshold=self.isPaused===!1?self.options.autoPlayThreshold:self.options.unpauseThreshold,self.isAutoPlayActive=!0,self.options.autoPlay=!0,clearTimeout(self.autoPlayTimer),self.autoPlayTimer=setTimeout(function(){1===self.options.autoPlayDirection?self.next():self.prev()},threshold)},stop:function(){self.isAutoPlayActive=!1,self.options.autoPlay=!1,clearTimeout(self.autoPlayTimer)}},self._canvas={getTransformCss:function(id){var transformCss,stepName="step"+id,origin=self.animationMap[stepName].transformOrigin,canvasTransformProperties=self.animationMap[stepName].canvasTransform,originX=(self.animationMap[stepName].stepTransform,origin.x+-1*canvasTransformProperties.sequenceX),originY=origin.y+-1*canvasTransformProperties.sequenceY,originZ=origin.z+-1*canvasTransformProperties.sequenceZ;return transformCss=propertiesToCss(canvasTransformProperties,!0),{origins:originX+"px "+originY+"px "+originZ+"px",string:transformCss,scale:canvasTransformProperties.sequenceScale}},move:function(id,animate){if(self.options.animateCanvas===!0){var transformCss,canvas=self.canvas,duration=0;animate===!0&&self._firstRun===!1&&(duration=self.options.animateCanvasDuration),self.transitionsSupported===!0&&(transformCss=this.getTransformCss(id),self.screen.style[Modernizr.prefixed("transitionDuration")]=duration+"ms",self.screen.style[Modernizr.prefixed("transitionProperty")]=Modernizr.prefixed("transform"),self.screen.style[Modernizr.prefixed("transform")]="scale("+transformCss.scale+")",canvas.style[Modernizr.prefixed("transitionDuration")]=duration+"ms",canvas.style[Modernizr.prefixed("transitionProperty")]=Modernizr.prefixed("transform")+", "+transformOrigin,canvas.style[Modernizr.prefixed("transformOrigin")]=transformCss.origins,canvas.style[Modernizr.prefixed("transform")]=transformCss.string)}}},self._animation={moveActiveStepToTop:function(currentStepElement,nextStepElement){if(self.options.moveActiveStepToTop===!0){var prevStepElement=self.animationMap["step"+self.prevStepId].element;prevStepElement.style.zIndex=1,currentStepElement.style.zIndex=self.noOfSteps-1,nextStepElement.style.zIndex=self.noOfSteps}},manageNavigationSkip:function(id,direction,currentStep,nextStep,nextStepElement){if(self.transitionsSupported!==!1){if(self._ui.show(nextStepElement,0),self.options.navigationSkip===!0){self.navigationSkipThresholdActive=!0;var activeStepsLength=self.animationMap.stepsAnimating;if(self.animationMap[currentStep].isAnimating=!0,self.animationMap[nextStep].isAnimating=!0,self.animationMap.stepsAnimating+=2,0!==activeStepsLength&&(clearTimeout(self.phaseThresholdTimer),self.options.fadeStepWhenSkipped===!0))for(var i=1;i<=self.noOfSteps;i++){var step="step"+i,stepProperties=self.animationMap[step];if(stepProperties.isAnimating===!0&&i!==id){var stepElement=stepProperties.element;self._animation.stepSkipped(direction,step,stepElement)}}setTimeout(function(){self.navigationSkipThresholdActive=!1},self.options.navigationSkipThreshold)}}},stepSkipped:function(direction,step,stepElement){self._ui.hide(stepElement,self.options.fadeStepTime,function(){})},changeStep:function(id){var stepToAdd="step"+id;if(void 0!==self.currentStepId){var stepToRemove="step"+self.currentStepId;addClass(self.container,stepToAdd),removeClass(self.container,stepToRemove)}else addClass(self.container,stepToAdd)},reverseProperties:function(step,phase,stepDurations){for(var _animation=this,stepProperties=self.animationMap[step][phase],i=0;i0?nextDelay=reverseThreshold:currentDelay=Math.abs(reverseThreshold)}currentPhaseDuration=self.animationMap[currentStep]["animate-in"].maxDuration,nextPhaseDuration=self.animationMap[nextStep]["animate-out"].maxDuration,nextDelay+=self.animationMap[currentStep]["animate-in"].maxDelay,currentDelay+=self.animationMap[nextStep]["animate-out"].maxDelay}var currentPhaseDurationTotal=currentPhaseDuration+currentDelay,nextPhaseDurationTotal=nextPhaseDuration+nextDelay;switch(durations["current-phase"].animation=currentPhaseDuration,durations["current-phase"].delay=currentDelay,durations["current-phase"].total=currentPhaseDurationTotal,durations["next-phase"].animation=nextPhaseDuration,durations["next-phase"].delay=nextDelay,phaseThreshold){case!1:durations["next-phase"].total=nextPhaseDurationTotal,durations["step-total"]=currentPhaseDurationTotal>nextPhaseDurationTotal?currentPhaseDurationTotal:nextPhaseDurationTotal;break;case!0:durations["next-phase-threshold"]=currentPhaseDurationTotal,durations["next-phase"].total=currentPhaseDurationTotal+nextPhaseDurationTotal,durations["step-total"]=currentPhaseDurationTotal+nextPhaseDurationTotal;break;default:durations["next-phase-threshold"]=phaseThreshold;var nextPhaseDurationIncThreshold=nextPhaseDurationTotal+phaseThreshold;durations["next-phase"].total=nextPhaseDurationIncThreshold,durations["step-total"]=currentPhaseDurationTotal>nextPhaseDurationIncThreshold?currentPhaseDurationTotal:nextPhaseDurationIncThreshold}return durations}},reversePhase:function(phase){var reversePhase={"animate-out":"animate-in","animate-in":"animate-out"};return reversePhase[phase]},domDelay:function(callback){setTimeout(function(){callback()},domThreshold)},reverseTimingFunction:function(timingFunction){var timingFunctionToCubicBezier={linear:"cubic-bezier(0.0,0.0,1.0,1.0)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1.0)","ease-in":"cubic-bezier(0.42, 0.0, 1.0, 1.0)","ease-in-out":"cubic-bezier(0.42, 0.0, 0.58, 1.0)","ease-out":"cubic-bezier(0.0, 0.0, 0.58, 1.0)"};timingFunction.indexOf("cubic-bezier")<0&&(timingFunction=timingFunctionToCubicBezier[timingFunction]);for(var cubicBezier=timingFunction.replace("cubic-bezier(","").replace(")","").split(","),cubicBezierLength=cubicBezier.length,i=0;cubicBezierLength>i;i++)cubicBezier[i]=parseFloat(cubicBezier[i]);var reversedCubicBezier=[1-cubicBezier[2],1-cubicBezier[3],1-cubicBezier[0],1-cubicBezier[1]];return timingFunction="cubic-bezier("+reversedCubicBezier+")"},getStepProperties:function(step,phase){var stepProperties={};return stepProperties.duration=self.animationMap[step][phase].maxDuration,stepProperties.delay=self.animationMap[step][phase].maxDelay,stepProperties.computedDuration=self.animationMap[step][phase].computedDuration,stepProperties.elements=self.animationMap[step][phase].elements,stepProperties.noOfElements=self.animationMap[step][phase].noOfElements,stepProperties},resetInheritedSpeed:function(step,phase){if(self.transitionsSupported!==!1){for(var stepElements=self.animationMap[step][phase].elements,numberOfStepElements=self.animationMap[step][phase].noOfElements,i=0;numberOfStepElements>i;i++){var stepProperties=stepElements[i];stepProperties.element.style[Modernizr.prefixed("transition")]="0ms 0ms"}setTimeout(function(){for(var i=0;numberOfStepElements>i;i++){var stepProperties=stepElements[i];stepProperties.element.style[Modernizr.prefixed("transition")]=""}},domThreshold)}},getShortestDirection:function(nextId,currentId,noOfSteps){var forwardDirection,reverseDirection,direction;return nextId>currentId?(forwardDirection=nextId-currentId,reverseDirection=currentId+(noOfSteps-nextId)):(reverseDirection=currentId-nextId,forwardDirection=nextId+(noOfSteps-currentId)),direction=reverseDirection>=forwardDirection?1:-1},getDirection:function(id,direction){var _animation=this;return void 0!==direction?direction:(self.options.reverseWhenNavigatingBackwards===!0||self.transitionsSupported===!1?void 0===direction&&self.options.cycle===!0?direction=_animation.getShortestDirection(id,self.currentStepId,self.noOfSteps):void 0===direction&&(direction=idj;j++)childElement=childElements[j],1===childElement.nodeType&&paginationLinks.push(childElement);self.paginationLinks.push(paginationLinks)},update:function(){var paginationLength=self.pagination.length;if(paginationLength>0){var i,j,currentPaginationLink,currentPaginationLinksLength,id=self.currentStepId-1;if(void 0!==self.currentPaginationLinks){currentPaginationLinksLength=self.currentPaginationLinks.length;for(var i=0;currentPaginationLinksLength>i;i++)currentPaginationLink=self.currentPaginationLinks[i],removeClass(currentPaginationLink,"sequence-current")}for(self.currentPaginationLinks=[],j=0;paginationLength>j;j++)currentPaginationLink=self.paginationLinks[j][id],self.currentPaginationLinks.push(currentPaginationLink),addClass(currentPaginationLink,"sequence-current")}}},self._hashTags={init:function(id){if(self.options.hashTags===!0){var correspondingStepId,newHashTag;if(newHashTag=location.hash.replace("#!",""),self.stepHashTags=this.getStepHashTags(),""===newHashTag)return id;self.currentHashTag=newHashTag,correspondingStepId=this.hasCorrespondingStep(),correspondingStepId>-1&&(id=correspondingStepId+1)}return id},hasCorrespondingStep:function(){var correspondingStep=-1,correspondingStepId=self.stepHashTags.indexOf(self.currentHashTag);return correspondingStepId>-1&&(correspondingStep=correspondingStepId),correspondingStep},getStepHashTags:function(){for(var elementHashTag,stepHashTags=[],i=0;i=0;i--)hashChangeFuncs[i]===func&&hashChangeFuncs.splice(i,1)},setInterval(function(){var newHref=location.href;if(oldHref!==newHref){var _oldHref=oldHref;oldHref=newHref;for(var i=0;ii;i++)pattern.test(els[i].className)&&(classElements[j]=els[i],j++);return classElements}(classname,node)}function convertTimeToMs(time){var convertedTime,fraction;return fraction=time.indexOf("ms")>-1?1:1e3,convertedTime="0s"==time?0:parseFloat(time.replace("s",""))*fraction}function hasClass(el,name){return new RegExp("(\\s|^)"+name+"(\\s|$)").test(el.className)}function addClass(elements,name){var element,i,elementsLength=elements.length;for(isArray(elements)===!1&&(elementsLength=1,elements=[elements]),i=0;elementsLength>i;i++)element=elements[i],hasClass(element,name)===!1&&(element.className+=(element.className?" ":"")+name)}function removeClass(elements,name){var element,i,elementsLength=elements.length;for(isArray(elements)===!1&&(elementsLength=1,elements=[elements]),i=0;elementsLength>i;i++)element=elements[i],hasClass(element,name)===!0&&(element.className=element.className.replace(new RegExp("(\\s|^)"+name+"(\\s|$)")," ").replace(/^\s+|\s+$/g,""))}function removeNoJsClass(self){if(self.transitionsSupported!==!1)for(var i=0;ii;i++){var element=elements[i],parent=element.parentNode;hasClass(parent,"sequence-canvas")===!0&&steps.push(element)}return steps}function propertiesToCss(properties,polar){var css="";return css+="translateX("+properties.sequenceX+"px) ",css+="translateY("+properties.sequenceY+"px) ",css+="translateZ("+properties.sequenceZ+"px) ",polar!==!0?(css+="rotateX("+properties.sequenceRotateX+"deg) ",css+="rotateY("+properties.sequenceRotateY+"deg) ",css+="rotateZ("+properties.sequenceRotate+"deg) ",css+="scale("+properties.sequenceScale+")"):(css+="rotateZ("+properties.sequenceRotate+"deg) ",css+="rotateY("+properties.sequenceRotateY+"deg) ",css+="rotateX("+properties.sequenceRotateX+"deg) "),css}if("true"!==element.dataset.sequence){element.dataset.sequence=!0;var defaults={startingStepId:1,startingStepAnimatesIn:!1,cycle:!0,phaseThreshold:!0,reverseWhenNavigatingBackwards:!1,moveActiveStepToTop:!0,animateCanvas:!0,animateCanvasDuration:500,autoPlay:!0,autoPlayThreshold:5e3,autoPlayDirection:1,navigationSkip:!0,navigationSkipThreshold:250,fadeStepWhenSkipped:!1,fadeStepTime:500,preventReverseSkipping:!1,nextButton:!0,prevButton:!0,pauseButton:!0,unpauseThreshold:null,pauseOnHover:!0,pagination:!0,preloader:!1,preloadTheseSteps:[1],preloadTheseImages:[],hideStepsUntilPreloaded:!0,keyNavigation:!1,numericKeysGoToSteps:!1,keyEvents:{left:function(sequence){sequence.prev()},right:function(sequence){sequence.next()}},swipeNavigation:!0,swipeEvents:{left:function(sequence){sequence.prev()},right:function(sequence){sequence.next()},up:!1,down:!1},swipeHammerOptions:{prevent_mouseevents:!0,drag_min_distance:10,stop_browser_behavior:!1},hashTags:!1,hashDataAttribute:!1,hashChangesOnFirstStep:!1,fallback:{speed:500,layout:"auto"}},domThreshold=50,resizeThreshold=100,Modernizr=function(a,b,c){function x(a){i.cssText=a}function z(a,b){return typeof a===b}function A(a,b){return!!~(""+a).indexOf(b)}function B(a,b){for(var d in a){var e=a[d];if(!A(e,"-")&&i[e]!==c)return"pfx"==b?e:!0}return!1}function C(a,b,d){for(var e in a){var f=b[a[e]];if(f!==c)return d===!1?a[e]:z(f,"function")?f.bind(d||b):f}return!1}function D(a,b,c){var d=a.charAt(0).toUpperCase()+a.slice(1),e=(a+" "+m.join(d+" ")+d).split(" ");return z(b,"string")||z(b,"undefined")?B(e,b):(e=(a+" "+n.join(d+" ")+d).split(" "),C(e,b,c))}var j,u,w,d="2.8.2",e={},f=b.documentElement,g="modernizr",h=b.createElement(g),i=h.style,l=({}.toString,"Webkit Moz O ms"),m=l.split(" "),n=l.toLowerCase().split(" "),o={svg:"http://www.w3.org/2000/svg"},p={},s=[],t=s.slice,v={}.hasOwnProperty;w=z(v,"undefined")||z(v.call,"undefined")?function(a,b){return b in a&&z(a.constructor.prototype[b],"undefined")}:function(a,b){return v.call(a,b)},Function.prototype.bind||(Function.prototype.bind=function(b){var c=this;if("function"!=typeof c)throw new TypeError;var d=t.call(arguments,1),e=function(){if(this instanceof e){var a=function(){};a.prototype=c.prototype;var f=new a,g=c.apply(f,d.concat(t.call(arguments)));return Object(g)===g?g:f}return c.apply(b,d.concat(t.call(arguments)))};return e}),p.cssanimations=function(){return D("animationName")},p.csstransitions=function(){return D("transition")},p.svg=function(){return!!b.createElementNS&&!!b.createElementNS(o.svg,"svg").createSVGRect};for(var E in p)w(p,E)&&(u=E.toLowerCase(),e[u]=p[E](),s.push((e[u]?"":"no-")+u));return e.addTest=function(a,b){if("object"==typeof a)for(var d in a)w(a,d)&&e.addTest(d,a[d]);else{if(a=a.toLowerCase(),e[a]!==c)return e;b="function"==typeof b?b():b,"undefined"!=typeof enableClasses&&enableClasses&&(f.className+=" "+(b?"":"no-")+a),e[a]=b}return e},x(""),h=j=null,e._version=d,e._domPrefixes=n,e._cssomPrefixes=m,e.testProp=function(a){return B([a])},e.testAllProps=D,e.prefixed=function(a,b,c){return b?D(a,b,c):D(a,"pfx")},e}(this,window.document),transformOrigin=Modernizr.prefixed("transformOrigin").replace("mO","m-o"),self={};return self._getAnimationMap={init:function(element){if(this.animationMap={},self.transitionsSupported===!0)this.clonedSequence=this.createClone(element),this.clonedCanvas=getElementsByClassName(this.clonedSequence,"sequence-canvas")[0],this.clonedSteps=getSteps(this.clonedCanvas),this.originalClasses=this.clonedSequence.className,this.animationMap.stepsAnimating=0,this.steps(),this.destroyClone(this.clonedSequence);else for(var i=0;ielementNo;elementNo++){element=clonedStepChildren[elementNo],realElement=realStepChildren[elementNo],styles=getComputedStyle(element,null)||element.currentStyle,elementProperties={};var transitionDuration=convertTimeToMs(styles[Modernizr.prefixed("transitionDuration")]),transitionDelay=convertTimeToMs(styles[Modernizr.prefixed("transitionDelay")]),transitionTimingFunction=styles[Modernizr.prefixed("transitionTimingFunction")],computedDuration=transitionDuration+transitionDelay;0!==computedDuration&&(elementProperties.element=realElement,elementProperties.duration=transitionDuration,elementProperties.delay=transitionDelay,elementProperties.timingFunction=transitionTimingFunction,elements.push(elementProperties),(void 0===maxDuration||transitionDuration>maxDuration)&&(maxDuration=transitionDuration),(void 0===maxDelay||transitionDelay>maxDelay)&&(maxDelay=transitionDelay),(void 0===maxComputedDuration||computedDuration>maxComputedDuration)&&(maxComputedDuration=computedDuration))}removeClass(clonedStepElement,phase),this.animationMap[stepName][phase].elements=elements,this.animationMap[stepName][phase].noOfElements=elements.length,this.animationMap[stepName][phase].maxDuration=maxDuration,this.animationMap[stepName][phase].maxDelay=maxDelay,this.animationMap[stepName][phase].computedDuration=maxComputedDuration},createClone:function(element){var clonedSequence=element.cloneNode(!0);return clonedSequence.style.display="none",clonedSequence.id="sequence",element.parentNode.insertBefore(clonedSequence,element),clonedSequence},destroyClone:function(element){element.parentNode.removeChild(element)}},self._ui={defaultElements:{nextButton:".sequence-next",prevButton:".sequence-prev",pauseButton:".sequence-pause",pagination:".sequence-pagination",preloader:".sequence-preloader"},getElements:function(type,option){var element,elements,elementsLength,rel,i,relatedElements=[];for(elements=document.querySelectorAll(option===!0?this.defaultElements[type]:option),elementsLength=elements.length,i=0;elementsLength>i;i++)element=elements[i],rel=element.getAttribute("rel"),(null===rel||rel===self.container.getAttribute("id"))&&relatedElements.push(element);return relatedElements},show:function(element,duration){self.transitionsSupported===!0&&(element.style[Modernizr.prefixed("transitionDuration")]=duration+"ms",element.style[Modernizr.prefixed("transitionProperty")]="opacity, "+Modernizr.prefixed("transform"),element.style.opacity=1)},hide:function(element,duration,callback){self.transitionsSupported===!0&&(element.style[Modernizr.prefixed("transitionDuration")]=duration+"ms",element.style[Modernizr.prefixed("transitionProperty")]="opacity, "+Modernizr.prefixed("transform"),element.style.opacity=".2"),void 0!==callback&&setTimeout(function(){callback()},duration)}},self._autoPlay={init:function(){self.isAutoPlayActive=!1,self.isPaused=self.options.autoPlay===!0?!1:!0,self.options.unpauseThreshold=null===self.options.unpauseThreshold?self.options.autoPlayThreshold:self.options.unpauseThreshold,self.options.autoPlay===!0&&self.isPaused===!1&&this.start()},unpause:function(){self.isPaused===!0&&(self.isPaused=!1,this.start(),removeClass(self.container,"sequence-paused"),removeClass(self.pauseButton,"sequence-paused"),self.unpaused(self))},pause:function(){self.isPaused===!1&&(self.isPaused=!0,this.stop(),addClass(self.container,"sequence-paused"),addClass(self.pauseButton,"sequence-paused"),self.paused(self))},start:function(){var threshold;threshold=self.isPaused===!1?self.options.autoPlayThreshold:self.options.unpauseThreshold,self.isAutoPlayActive=!0,self.options.autoPlay=!0,clearTimeout(self.autoPlayTimer),self.autoPlayTimer=setTimeout(function(){1===self.options.autoPlayDirection?self.next():self.prev()},threshold)},stop:function(){self.isAutoPlayActive=!1,self.options.autoPlay=!1,clearTimeout(self.autoPlayTimer)}},self._canvas={getTransformCss:function(id){var transformCss,stepName="step"+id,origin=self.animationMap[stepName].transformOrigin,canvasTransformProperties=self.animationMap[stepName].canvasTransform,originX=(self.animationMap[stepName].stepTransform,origin.x+-1*canvasTransformProperties.sequenceX),originY=origin.y+-1*canvasTransformProperties.sequenceY,originZ=origin.z+-1*canvasTransformProperties.sequenceZ;return transformCss=propertiesToCss(canvasTransformProperties,!0),{origins:originX+"px "+originY+"px "+originZ+"px",string:transformCss,scale:canvasTransformProperties.sequenceScale}},move:function(id,animate){if(self.options.animateCanvas===!0){var transformCss,canvas=self.canvas,duration=0;animate===!0&&self._firstRun===!1&&(duration=self.options.animateCanvasDuration),self.transitionsSupported===!0&&(transformCss=this.getTransformCss(id),self.screen.style[Modernizr.prefixed("transitionDuration")]=duration+"ms",self.screen.style[Modernizr.prefixed("transitionProperty")]=Modernizr.prefixed("transform"),self.screen.style[Modernizr.prefixed("transform")]="scale("+transformCss.scale+")",canvas.style[Modernizr.prefixed("transitionDuration")]=duration+"ms",canvas.style[Modernizr.prefixed("transitionProperty")]=Modernizr.prefixed("transform")+", "+transformOrigin,canvas.style[Modernizr.prefixed("transformOrigin")]=transformCss.origins,canvas.style[Modernizr.prefixed("transform")]=transformCss.string)}}},self._animation={moveActiveStepToTop:function(currentStepElement,nextStepElement){if(self.options.moveActiveStepToTop===!0){var prevStepElement=self.animationMap["step"+self.prevStepId].element;prevStepElement.style.zIndex=1,currentStepElement.style.zIndex=self.noOfSteps-1,nextStepElement.style.zIndex=self.noOfSteps}},manageNavigationSkip:function(id,direction,currentStep,nextStep,nextStepElement){if(self.transitionsSupported!==!1){if(self._ui.show(nextStepElement,0),self.options.navigationSkip===!0){self.navigationSkipThresholdActive=!0;var activeStepsLength=self.animationMap.stepsAnimating;if(self.animationMap[currentStep].isAnimating=!0,self.animationMap[nextStep].isAnimating=!0,self.animationMap.stepsAnimating+=2,0!==activeStepsLength&&(clearTimeout(self.phaseThresholdTimer),self.options.fadeStepWhenSkipped===!0))for(var i=1;i<=self.noOfSteps;i++){var step="step"+i,stepProperties=self.animationMap[step];if(stepProperties.isAnimating===!0&&i!==id){var stepElement=stepProperties.element;self._animation.stepSkipped(direction,step,stepElement)}}setTimeout(function(){self.navigationSkipThresholdActive=!1},self.options.navigationSkipThreshold)}}},stepSkipped:function(direction,step,stepElement){self._ui.hide(stepElement,self.options.fadeStepTime,function(){})},changeStep:function(id){var stepToAdd="step"+id;if(void 0!==self.currentStepId){var stepToRemove="step"+self.currentStepId;addClass(self.container,stepToAdd),removeClass(self.container,stepToRemove)}else addClass(self.container,stepToAdd)},reverseProperties:function(step,phase,stepDurations){for(var _animation=this,stepProperties=self.animationMap[step][phase],i=0;i0?nextDelay=reverseThreshold:currentDelay=Math.abs(reverseThreshold)}currentPhaseDuration=self.animationMap[currentStep]["animate-in"].maxDuration,nextPhaseDuration=self.animationMap[nextStep]["animate-out"].maxDuration,nextDelay+=self.animationMap[currentStep]["animate-in"].maxDelay,currentDelay+=self.animationMap[nextStep]["animate-out"].maxDelay}var currentPhaseDurationTotal=currentPhaseDuration+currentDelay,nextPhaseDurationTotal=nextPhaseDuration+nextDelay;switch(durations["current-phase"].animation=currentPhaseDuration,durations["current-phase"].delay=currentDelay,durations["current-phase"].total=currentPhaseDurationTotal,durations["next-phase"].animation=nextPhaseDuration,durations["next-phase"].delay=nextDelay,phaseThreshold){case!1:durations["next-phase"].total=nextPhaseDurationTotal,durations["step-total"]=currentPhaseDurationTotal>nextPhaseDurationTotal?currentPhaseDurationTotal:nextPhaseDurationTotal;break;case!0:durations["next-phase-threshold"]=currentPhaseDurationTotal,durations["next-phase"].total=currentPhaseDurationTotal+nextPhaseDurationTotal,durations["step-total"]=currentPhaseDurationTotal+nextPhaseDurationTotal;break;default:durations["next-phase-threshold"]=phaseThreshold;var nextPhaseDurationIncThreshold=nextPhaseDurationTotal+phaseThreshold;durations["next-phase"].total=nextPhaseDurationIncThreshold,durations["step-total"]=currentPhaseDurationTotal>nextPhaseDurationIncThreshold?currentPhaseDurationTotal:nextPhaseDurationIncThreshold}return durations}},reversePhase:function(phase){var reversePhase={"animate-out":"animate-in","animate-in":"animate-out"};return reversePhase[phase]},domDelay:function(callback){setTimeout(function(){callback()},domThreshold)},reverseTimingFunction:function(timingFunction){var timingFunctionToCubicBezier={linear:"cubic-bezier(0.0,0.0,1.0,1.0)",ease:"cubic-bezier(0.25, 0.1, 0.25, 1.0)","ease-in":"cubic-bezier(0.42, 0.0, 1.0, 1.0)","ease-in-out":"cubic-bezier(0.42, 0.0, 0.58, 1.0)","ease-out":"cubic-bezier(0.0, 0.0, 0.58, 1.0)"};timingFunction.indexOf("cubic-bezier")<0&&(timingFunction=timingFunctionToCubicBezier[timingFunction]);for(var cubicBezier=timingFunction.replace("cubic-bezier(","").replace(")","").split(","),cubicBezierLength=cubicBezier.length,i=0;cubicBezierLength>i;i++)cubicBezier[i]=parseFloat(cubicBezier[i]);var reversedCubicBezier=[1-cubicBezier[2],1-cubicBezier[3],1-cubicBezier[0],1-cubicBezier[1]];return timingFunction="cubic-bezier("+reversedCubicBezier+")"},getStepProperties:function(step,phase){var stepProperties={};return stepProperties.duration=self.animationMap[step][phase].maxDuration,stepProperties.delay=self.animationMap[step][phase].maxDelay,stepProperties.computedDuration=self.animationMap[step][phase].computedDuration,stepProperties.elements=self.animationMap[step][phase].elements,stepProperties.noOfElements=self.animationMap[step][phase].noOfElements,stepProperties},resetInheritedSpeed:function(step,phase){if(self.transitionsSupported!==!1){for(var stepElements=self.animationMap[step][phase].elements,numberOfStepElements=self.animationMap[step][phase].noOfElements,i=0;numberOfStepElements>i;i++){var stepProperties=stepElements[i];stepProperties.element.style[Modernizr.prefixed("transition")]="0ms 0ms"}setTimeout(function(){for(var i=0;numberOfStepElements>i;i++){var stepProperties=stepElements[i];stepProperties.element.style[Modernizr.prefixed("transition")]=""}},domThreshold)}},getShortestDirection:function(nextId,currentId,noOfSteps){var forwardDirection,reverseDirection,direction;return nextId>currentId?(forwardDirection=nextId-currentId,reverseDirection=currentId+(noOfSteps-nextId)):(reverseDirection=currentId-nextId,forwardDirection=nextId+(noOfSteps-currentId)),direction=reverseDirection>=forwardDirection?1:-1},getDirection:function(id,direction){var _animation=this;return void 0!==direction?direction:(self.options.reverseWhenNavigatingBackwards===!0||self.transitionsSupported===!1?void 0===direction&&self.options.cycle===!0?direction=_animation.getShortestDirection(id,self.currentStepId,self.noOfSteps):void 0===direction&&(direction=idj;j++)childElement=childElements[j],1===childElement.nodeType&&paginationLinks.push(childElement);self.paginationLinks.push(paginationLinks)},update:function(){var paginationLength=self.pagination.length;if(paginationLength>0){var i,j,currentPaginationLink,currentPaginationLinksLength,id=self.currentStepId-1;if(void 0!==self.currentPaginationLinks){currentPaginationLinksLength=self.currentPaginationLinks.length;for(var i=0;currentPaginationLinksLength>i;i++)currentPaginationLink=self.currentPaginationLinks[i],removeClass(currentPaginationLink,"sequence-current")}for(self.currentPaginationLinks=[],j=0;paginationLength>j;j++)currentPaginationLink=self.paginationLinks[j][id],self.currentPaginationLinks.push(currentPaginationLink),addClass(currentPaginationLink,"sequence-current")}}},self._hashTags={init:function(id){if(self.options.hashTags===!0){var correspondingStepId,newHashTag;if(self.hasPushstate=!(!window.history||!history.pushState),newHashTag=location.hash.replace("#!",""),self.stepHashTags=this.getStepHashTags(),""===newHashTag)return id;self.currentHashTag=newHashTag,correspondingStepId=this.hasCorrespondingStep(),correspondingStepId>-1&&(id=correspondingStepId+1)}return id},hasCorrespondingStep:function(){var correspondingStep=-1,correspondingStepId=self.stepHashTags.indexOf(self.currentHashTag);return correspondingStepId>-1&&(correspondingStep=correspondingStepId),correspondingStep},getStepHashTags:function(){for(var elementHashTag,stepHashTags=[],i=0;i=0;i--)hashChangeFuncs[i]===func&&hashChangeFuncs.splice(i,1)},setInterval(function(){var newHref=location.href;if(oldHref!==newHref){var _oldHref=oldHref;oldHref=newHref;for(var i=0;ii;i++)for(var step=self.steps[i],imagesInStep=step.getElementsByTagName("img"),imagesInStepLength=imagesInStep.length,j=0;imagesInStepLength>j;j++){var image=imagesInStep[j];imagesToPreload.push(image)}else for(var img=[],i=0;imageLength>i;i++){var src=images[i];img[i]=new Image,img[i].src=src,imagesToPreload.push(img[i])}return imagesToPreload},hide:function(){var _preload=this;self.transitionsSupported===!0?addClass(self.preloader,"preload-complete"):self._ui.hide(self.preloader,500),clearInterval(this.preloadIndicatorTimer),setTimeout(function(){_preload.remove()},500)},append:function(){self.options.preloader===!0&&0===self.preloader.length&&(self.preloader=document.createElement("div"),self.preloader.className="sequence-preloader",self.preloader=[self.preloader],self.preloader[0].innerHTML=Modernizr.svg===!0?'':'
',self.container.insertBefore(self.preloader[0],null))},remove:function(){self.preloader[0].parentNode.removeChild(self.preloader[0]),self.options.preloader===!0&&this.removeStyles()},hideAndShowSteps:function(type){if(self.options.hideStepsUntilPreloaded===!0&&0!==self.preloader.length)for(var i=0;ii;i++){var eventProperties=eventElements[i];removeEvent(eventProperties.element,type,eventProperties.handler)}}},add:{hashChange:function(){self._hashTags.setupEvent();var handler=function(e){var newHashTag,id;newHashTag=e.newURL||location.href,newHashTag=newHashTag.split("#!")[1],self.currentHashTag!==newHashTag&&(id=self.stepHashTags.indexOf(newHashTag)+1,self.currentHashTag=newHashTag,self.goTo(id,void 0,void 0,!0))};addHashChange(handler),self.manageEvent.list.hashchange.push({element:window,handler:handler})},button:function(elements,type,callback){var handler,element,rel,id,i,elementLength=elements.length;if("nav"===type)var buttonEvent=function(){handler=addEvent(element,"click",function(){callback()})};else var buttonEvent=function(element,rel,i){handler=addEvent(element,"click",function(e){id=hasParent(this,e.target),self.goTo(id)}),self._pagination.getLinks(element,rel,i)};for(i=0;elementLength>i;i++)element=elements[i],rel=element.getAttribute("rel"),rel===self.container.getAttribute("id")&&"true"!==element.dataset.sequence?(element.dataset.sequence=!0,buttonEvent(element,rel,i)):null===rel&&"true"!==element.dataset.sequence&&buttonEvent(element,rel,i),self.manageEvent.list.click.push({element:element,handler:handler})},pauseOnHover:function(){var handler,insideElement=function(element,cursor){var elementLeft=element.offsetLeft,elementRight=elementLeft+element.clientWidth,elementTop=element.offsetTop,elementBottom=elementTop+element.clientHeight;return cursor.clientX>=elementLeft&&cursor.clientX<=elementRight&&cursor.clientY>=elementTop&&cursor.clientY<=elementBottom?!0:!1},previouslyInside=!1;handler=addEvent(self.container,"mousemove",function(e){insideElement(this,e)===!0?(previouslyInside===!1&&self.options.pauseOnHover===!0&&self._autoPlay.pause(),previouslyInside=!0):(previouslyInside===!0&&self.isHardPaused===!1&&self.options.pauseOnHover===!0&&self._autoPlay.unpause(),previouslyInside=!1)}),self.manageEvent.list.mousemove.push({element:self.container,handler:handler}),handler=addEvent(self.container,"mouseleave",function(){self.isHardPaused===!1&&self.options.pauseOnHover===!0&&self._autoPlay.unpause(),previouslyInside=!1}),self.manageEvent.list.mouseleave.push({element:self.container,handler:handler})},swipeNavigation:function(){var handler=function(e){switch(e.type){case"dragleft":case"dragright":e.gesture.preventDefault();break;case"release":if(Math.abs(e.gesture.deltaX)>=self.hammerTime.options.drag_min_distance||Math.abs(e.gesture.deltaY)>=self.hammerTime.options.drag_min_distance)switch(e.gesture.direction){case"left":self.options.swipeEvents.left(self);break;case"right":self.options.swipeEvents.right(self);break;case"up":self.options.swipeEvents.up!==!1&&self.options.swipeEvents.up(self);break;case"down":self.options.swipeEvents.down!==!1&&self.options.swipeEvents.down(self)}}};self.hammerTime=Hammer(self.container,self.options.swipeHammerOptions).on("dragleft dragright release",handler),self.manageEvent.list.Hammer.push({element:self.container,handler:handler})},keyNavigation:function(){var handler=addEvent(window,"keydown",function(e){var keyCodeChar=parseInt(String.fromCharCode(e.keyCode));switch(keyCodeChar>0&&keyCodeChar<=self.noOfSteps&&self.options.numericKeysGoToSteps&&self.goTo(keyCodeChar),e.keyCode){case 37:self.options.keyEvents.left(self);break;case 39:self.options.keyEvents.right(self)}});self.manageEvent.list.keydown.push({element:window,handler:handler})},resizeThrottle:function(){function throttledEvents(){var i,step,stepName;for(i=0;iprevStepId?self.noOfSteps:prevStepId):(prevStepId=id+1,self.prevStepId=prevStepId>self.noOfSteps?1:prevStepId),self.currentStepId=self.prevStepId,prevStep="step"+self.prevStepId,self._animationFallback.setupCanvas(id),goToFirstStep=function(){self.options.autoPlay===!0&&self.unpaused(self),self._animation.domDelay(function(){self._animation.resetInheritedSpeed(prevStep,"animate-out")}),self.goTo(id,self.options.autoPlayDirection,!0)},self.options.preloader!==!1?self._preload.init(function(){goToFirstStep(),self._animation.domDelay(function(){self.ready(self)})}):(goToFirstStep(),self._animation.domDelay(function(){self.ready(self)}))},self.destroy=function(){var eventList,eventType,theEvents,i,step,lastStep;clearTimeout(self.autoPlayTimer),clearTimeout(self.phaseThresholdTimer),eventList=self.manageEvent.list;for(eventType in eventList)eventList.hasOwnProperty(eventType)===!0&&(theEvents=eventList[eventType],self.manageEvent.remove(eventType));for(removeClass(self.currentPaginationLinks,"sequence-current"),removeClass(self.container,"sequence-paused"),removeClass(self.container,"step"+self.currentStepId),self.screen.removeAttribute("style"),self.canvas.removeAttribute("style"),i=0;iself.noOfSteps&&self.options.cycle===!0&&(nextStepId=1),self.goTo(nextStepId)},self.prev=function(){var prevStepId=self.currentStepId-1;1>prevStepId&&self.options.cycle===!0&&(prevStepId=self.noOfSteps),self.goTo(prevStepId)},self.togglePause=function(){self.isPaused===!1?self.pause():self.unpause()},self.pause=function(){self.isHardPaused=!0,self._autoPlay.pause()},self.unpause=function(){self.isHardPaused=!1,self._autoPlay.unpause()},self.goTo=function(id,direction,ignorePhaseThreshold,hashTagNav){if(direction=self._animation.getDirection(id,direction),void 0===id||1>id||id>self.noOfSteps||id===self.currentStepId||self.options.navigationSkip===!1&&self.isActive===!0||self.options.navigationSkip===!0&&self.navigationSkipThresholdActive===!0&&void 0===hashTagNav||self.options.preventReverseSkipping===!0&&self.direction!==direction&&self.isActive===!0)return!1;var phaseThreshold=0;self.direction=direction,void 0===ignorePhaseThreshold&&(phaseThreshold=self.options.phaseThreshold);var currentStep="step"+self.currentStepId,nextStep="step"+id,currentStepElement=self.animationMap[currentStep].element,nextStepElement=self.animationMap[nextStep].element;if(self._animation.manageNavigationSkip(id,direction,currentStep,nextStep,nextStepElement),self._animation.moveActiveStepToTop(currentStepElement,nextStepElement),self.isActive=!0,self._animation.changeStep(id),self.transitionsSupported===!0){self._canvas.move(id,!0),self._animation.resetInheritedSpeed(nextStep,"animate-out");var stepDurations=self._animation.getStepDurations(id,nextStep,currentStep,direction);1===direction?self._animation.forward(id,nextStep,nextStepElement,currentStep,currentStepElement,stepDurations,hashTagNav):self._animation.reverse(id,nextStep,nextStepElement,currentStep,currentStepElement,stepDurations,hashTagNav)}else self._animationFallback.goTo(id,currentStep,currentStepElement,nextStep,nextStepElement,direction,hashTagNav)},self.paused=function(){},self.unpaused=function(){},self.animationStarted=function(){},self.animationFinished=function(){},self.currentPhaseStarted=function(){},self.currentPhaseEnded=function(){},self.nextPhaseStarted=function(){},self.nextPhaseEnded=function(){},self.throttledResize=function(){},self.preloaded=function(){},self.preloadProgress=function(){},self.ready=function(){},self.destroyed=function(){},self._init(element),self}};return Sequence}sequence=defineSequence(imagesLoaded,Hammer); //# sourceMappingURL=sequence.min.map \ No newline at end of file diff --git a/scripts/sequence.min.map b/scripts/sequence.min.map index b8a4dcf..5860b92 100755 --- a/scripts/sequence.min.map +++ b/scripts/sequence.min.map @@ -1 +1 @@ -{"version":3,"file":"sequence.min.js","sources":["../src/sequence.js"],"names":["defineSequence","imagesLoaded","Hammer","Sequence","element","options","isArray","object","Object","prototype","toString","call","extend","a","b","i","addEvent","obj","type","fn","attachEvent","window","event","addEventListener","removeEvent","detachEvent","removeEventListener","getElementsByClassName","node","classname","searchClass","document","j","classElements","els","getElementsByTagName","elsLen","length","pattern","RegExp","test","className","convertTimeToMs","time","convertedTime","fraction","indexOf","parseFloat","replace","hasClass","el","name","addClass","elements","elementsLength","removeClass","removeNoJsClass","self","transitionsSupported","steps","step","_animation","resetInheritedSpeed","hasParent","parent","target","previousTarget","localName","parentNode","undefined","topLevel","allTopLevel","getSteps","push","propertiesToCss","properties","polar","css","sequenceX","sequenceY","sequenceZ","sequenceRotateX","sequenceRotateY","sequenceRotate","sequenceScale","dataset","sequence","defaults","startingStepId","startingStepAnimatesIn","cycle","phaseThreshold","reverseWhenNavigatingBackwards","moveActiveStepToTop","animateCanvas","animateCanvasDuration","autoPlay","autoPlayThreshold","autoPlayDirection","navigationSkip","navigationSkipThreshold","fadeStepWhenSkipped","fadeStepTime","preventReverseSkipping","nextButton","prevButton","pauseButton","unpauseThreshold","pauseOnHover","pagination","preloader","preloadTheseSteps","preloadTheseImages","hideStepsUntilPreloaded","keyNavigation","numericKeysGoToSteps","keyEvents","left","prev","right","next","swipeNavigation","swipeEvents","up","down","swipeHammerOptions","prevent_mouseevents","drag_min_distance","stop_browser_behavior","hashTags","hashDataAttribute","hashChangesOnFirstStep","fallback","speed","layout","domThreshold","resizeThreshold","Modernizr","c","x","cssText","z","A","B","d","e","C","f","bind","D","charAt","toUpperCase","slice","m","join","split","n","u","w","documentElement","g","h","createElement","style","l","toLowerCase","o","svg","p","s","t","v","hasOwnProperty","constructor","Function","this","TypeError","arguments","apply","concat","cssanimations","csstransitions","createElementNS","createSVGRect","E","addTest","enableClasses","_version","_domPrefixes","_cssomPrefixes","testProp","testAllProps","prefixed","transformOrigin","_getAnimationMap","init","animationMap","clonedSequence","createClone","clonedCanvas","clonedSteps","originalClasses","destroyClone","noOfSteps","getTransformProperties","stepName","attribute","attributeReversed","property","origins","stepProperties","originX","originY","originZ","stepTransform","canvasTransform","styles","getComputedStyle","offsetLeft","offsetTop","y","clonedStepElement","realStepElement","clonedStepChildren","realStepChildren","noOfStepChildren","transformCss","phases","phase","realElement","elementNo","maxDuration","maxDelay","maxComputedDuration","elementProperties","currentStyle","transitionDuration","transitionDelay","transitionTimingFunction","computedDuration","duration","delay","timingFunction","cloneNode","display","id","insertBefore","removeChild","_ui","defaultElements","getElements","option","rel","relatedElements","querySelectorAll","getAttribute","container","show","opacity","hide","callback","setTimeout","_autoPlay","isAutoPlayActive","isPaused","start","unpause","unpaused","pause","stop","paused","threshold","clearTimeout","autoPlayTimer","_canvas","getTransformCss","origin","canvasTransformProperties","string","scale","move","animate","canvas","_firstRun","screen","currentStepElement","nextStepElement","prevStepElement","prevStepId","zIndex","manageNavigationSkip","direction","currentStep","nextStep","navigationSkipThresholdActive","activeStepsLength","phaseThresholdTimer","isAnimating","stepElement","stepSkipped","changeStep","stepToAdd","currentStepId","stepToRemove","reverseProperties","stepDurations","noOfElements","stepElements","reverseTimingFunction","forward","hashTagNav","domDelay","startAnimateIn","reverse","currentPhaseDuration","nextPhaseDuration","nextPhaseThreshold","stepDurationTotal","animationStarted","_currentPhaseStarted","_nextPhaseStarted","phaseEnded","_currentPhaseEnded","_nextPhaseEnded","stepEnded","currentPhaseStarted","_pagination","update","currentPhaseEnded","_hashTags","nextPhaseStarted","nextPhaseEnded","isActive","animationFinished","getStepDurations","nextStepId","durations","nextDelay","currentDelay","reverseThreshold","Math","abs","currentPhaseDurationTotal","nextPhaseDurationTotal","nextPhaseDurationIncThreshold","reversePhase","animate-out","animate-in","timingFunctionToCubicBezier","linear","ease","ease-in","ease-in-out","ease-out","cubicBezier","cubicBezierLength","reversedCubicBezier","getStepProperties","numberOfStepElements","getShortestDirection","nextId","currentId","forwardDirection","reverseDirection","getDirection","propertySupport","animationsSupported","_animationFallback","unit","from","to","Date","getTime","timer","setInterval","min","clearInterval","setupCanvas","overflow","whiteSpace","canvasWidth","offsetWidth","position","width","height","layoutOption","moveCanvas","currentStepX","currentStepY","nextStepX","nextStepY","top","goTo","getLinks","childElement","childElements","childElementsLength","paginationLinks","childNodes","nodeType","paginationLength","currentPaginationLink","currentPaginationLinksLength","currentPaginationLinks","correspondingStepId","newHashTag","location","hash","stepHashTags","getStepHashTags","currentHashTag","hasCorrespondingStep","correspondingStep","elementHashTag","sequenceHashtag","hashTagId","history","pushState","setupEvent","addHashChange","func","before","removeHashChange","hashChangeFuncs","oldHref","href","splice","newHref","_oldHref","newURL","oldURL","_preload","append","addStyles","hideAndShowSteps","stepImagesToPreload","saveImagesToArray","individualImagesToPreload","imagesToPreload","imgLoad","on","complete","progress","instance","image","result","isLoaded","preloadProgress","img","src","preloaded","defaultStyles","head","styleElement","styleSheet","appendChild","createTextNode","preloadIndicator","firstChild","preloadIndicatorTimer","removeStyles","images","srcOnly","imageLength","imagesInStep","imagesInStepLength","Image","remove","innerHTML","manageEvent","list","load","click","mousemove","mouseleave","keydown","hashchange","resize","add","hashChange","resizeThrottle","button","togglePause","eventElements","eventElementsLength","handler","hammerTime","off","eventProperties","elementLength","buttonEvent","insideElement","cursor","elementLeft","elementRight","clientWidth","elementTop","elementBottom","clientHeight","clientX","clientY","previouslyInside","isHardPaused","gesture","preventDefault","deltaX","deltaY","keyCodeChar","parseInt","String","fromCharCode","keyCode","throttledEvents","throttledResize","throttleTimer","_init","prevStep","goToFirstStep","elementsAnimating","ready","destroy","eventList","eventType","theEvents","lastStep","removeAttribute","destroyed","ignorePhaseThreshold"],"mappings":";;;;;;;;;;AAWA,QAASA,gBAAeC,aAAcC,QAEpC,YAUA,IAAIC,UAAW,SAAUC,QAASC,SAsQhC,QAASC,SAAQC,QAEf,MAAkD,mBAA7CC,OAAOC,UAAUC,SAASC,KAAMJ,SAC5B,GAEA,EAYX,QAASK,QAAOC,EAAGC,GAEjB,IAAK,GAAIC,KAAKD,GACZD,EAAEE,GAAKD,EAAEC,EAGX,OAAOF,GAaT,QAASG,UAASC,IAAKC,KAAMC,IAW3B,MATIF,KAAI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BAAsB,aAW3B5Q,KAAK+Q,kBAAoB,aAWzB/Q,KAAKiR,iBAAmB,aAWxBjR,KAAKkR,eAAiB,aAWtBlR,KAAKwc,gBAAkB,aAWvBxc,KAAKyY,UAAY,aAejBzY,KAAKsY,gBAAkB,aAavBtY,KAAK8c,MAAQ,aAWb9c,KAAKqd,UAAY,aASjBrd,KAAK0c,MAAM/f,SAGJqD,MAGT,OAAOtD,UAGTmF,SAAWtF,eAAeC,aAAcC"} \ No newline at end of file +{"version":3,"file":"sequence.min.js","sources":["../src/sequence.js"],"names":["defineSequence","imagesLoaded","Hammer","Sequence","element","options","isArray","object","Object","prototype","toString","call","extend","a","b","i","addEvent","obj","type","fn","attachEvent","window","event","addEventListener","removeEvent","detachEvent","removeEventListener","getElementsByClassName","node","classname","searchClass","document","j","classElements","els","getElementsByTagName","elsLen","length","pattern","RegExp","test","className","convertTimeToMs","time","convertedTime","fraction","indexOf","parseFloat","replace","hasClass","el","name","addClass","elements","elementsLength","removeClass","removeNoJsClass","self","transitionsSupported","steps","step","_animation","resetInheritedSpeed","hasParent","parent","target","previousTarget","localName","parentNode","undefined","topLevel","allTopLevel","getSteps","push","propertiesToCss","properties","polar","css","sequenceX","sequenceY","sequenceZ","sequenceRotateX","sequenceRotateY","sequenceRotate","sequenceScale","dataset","sequence","defaults","startingStepId","startingStepAnimatesIn","cycle","phaseThreshold","reverseWhenNavigatingBackwards","moveActiveStepToTop","animateCanvas","animateCanvasDuration","autoPlay","autoPlayThreshold","autoPlayDirection","navigationSkip","navigationSkipThreshold","fadeStepWhenSkipped","fadeStepTime","preventReverseSkipping","nextButton","prevButton","pauseButton","unpauseThreshold","pauseOnHover","pagination","preloader","preloadTheseSteps","preloadTheseImages","hideStepsUntilPreloaded","keyNavigation","numericKeysGoToSteps","keyEvents","left","prev","right","next","swipeNavigation","swipeEvents","up","down","swipeHammerOptions","prevent_mouseevents","drag_min_distance","stop_browser_behavior","hashTags","hashDataAttribute","hashChangesOnFirstStep","fallback","speed","layout","domThreshold","resizeThreshold","Modernizr","c","x","cssText","z","A","B","d","e","C","f","bind","D","charAt","toUpperCase","slice","m","join","split","n","u","w","documentElement","g","h","createElement","style","l","toLowerCase","o","svg","p","s","t","v","hasOwnProperty","constructor","Function","this","TypeError","arguments","apply","concat","cssanimations","csstransitions","createElementNS","createSVGRect","E","addTest","enableClasses","_version","_domPrefixes","_cssomPrefixes","testProp","testAllProps","prefixed","transformOrigin","_getAnimationMap","init","animationMap","clonedSequence","createClone","clonedCanvas","clonedSteps","originalClasses","destroyClone","noOfSteps","getTransformProperties","stepName","attribute","attributeReversed","property","origins","stepProperties","originX","originY","originZ","stepTransform","canvasTransform","styles","getComputedStyle","offsetLeft","offsetTop","y","clonedStepElement","realStepElement","clonedStepChildren","realStepChildren","noOfStepChildren","transformCss","phases","phase","realElement","elementNo","maxDuration","maxDelay","maxComputedDuration","elementProperties","currentStyle","transitionDuration","transitionDelay","transitionTimingFunction","computedDuration","duration","delay","timingFunction","cloneNode","display","id","insertBefore","removeChild","_ui","defaultElements","getElements","option","rel","relatedElements","querySelectorAll","getAttribute","container","show","opacity","hide","callback","setTimeout","_autoPlay","isAutoPlayActive","isPaused","start","unpause","unpaused","pause","stop","paused","threshold","clearTimeout","autoPlayTimer","_canvas","getTransformCss","origin","canvasTransformProperties","string","scale","move","animate","canvas","_firstRun","screen","currentStepElement","nextStepElement","prevStepElement","prevStepId","zIndex","manageNavigationSkip","direction","currentStep","nextStep","navigationSkipThresholdActive","activeStepsLength","phaseThresholdTimer","isAnimating","stepElement","stepSkipped","changeStep","stepToAdd","currentStepId","stepToRemove","reverseProperties","stepDurations","noOfElements","stepElements","reverseTimingFunction","forward","hashTagNav","domDelay","startAnimateIn","reverse","currentPhaseDuration","nextPhaseDuration","nextPhaseThreshold","stepDurationTotal","animationStarted","_currentPhaseStarted","_nextPhaseStarted","phaseEnded","_currentPhaseEnded","_nextPhaseEnded","stepEnded","currentPhaseStarted","_pagination","update","currentPhaseEnded","_hashTags","nextPhaseStarted","nextPhaseEnded","isActive","animationFinished","getStepDurations","nextStepId","durations","nextDelay","currentDelay","reverseThreshold","Math","abs","currentPhaseDurationTotal","nextPhaseDurationTotal","nextPhaseDurationIncThreshold","reversePhase","animate-out","animate-in","timingFunctionToCubicBezier","linear","ease","ease-in","ease-in-out","ease-out","cubicBezier","cubicBezierLength","reversedCubicBezier","getStepProperties","numberOfStepElements","getShortestDirection","nextId","currentId","forwardDirection","reverseDirection","getDirection","propertySupport","animationsSupported","_animationFallback","unit","from","to","Date","getTime","timer","setInterval","min","clearInterval","setupCanvas","overflow","whiteSpace","canvasWidth","offsetWidth","position","width","height","layoutOption","moveCanvas","currentStepX","currentStepY","nextStepX","nextStepY","top","goTo","getLinks","childElement","childElements","childElementsLength","paginationLinks","childNodes","nodeType","paginationLength","currentPaginationLink","currentPaginationLinksLength","currentPaginationLinks","correspondingStepId","newHashTag","hasPushstate","history","pushState","location","hash","stepHashTags","getStepHashTags","currentHashTag","hasCorrespondingStep","correspondingStep","elementHashTag","sequenceHashtag","hashTagId","currentHashtag","setupEvent","addHashChange","func","before","removeHashChange","hashChangeFuncs","oldHref","href","splice","newHref","_oldHref","newURL","oldURL","_preload","append","addStyles","hideAndShowSteps","stepImagesToPreload","saveImagesToArray","individualImagesToPreload","imagesToPreload","imgLoad","on","complete","progress","instance","image","result","isLoaded","preloadProgress","img","src","preloaded","defaultStyles","head","styleElement","styleSheet","appendChild","createTextNode","preloadIndicator","firstChild","preloadIndicatorTimer","removeStyles","images","srcOnly","imageLength","imagesInStep","imagesInStepLength","Image","remove","innerHTML","manageEvent","list","load","click","mousemove","mouseleave","keydown","hashchange","resize","add","hashChange","resizeThrottle","button","togglePause","eventElements","eventElementsLength","handler","hammerTime","off","eventProperties","elementLength","buttonEvent","insideElement","cursor","elementLeft","elementRight","clientWidth","elementTop","elementBottom","clientHeight","clientX","clientY","previouslyInside","isHardPaused","gesture","preventDefault","deltaX","deltaY","keyCodeChar","parseInt","String","fromCharCode","keyCode","throttledEvents","throttledResize","throttleTimer","_init","prevStep","goToFirstStep","elementsAnimating","ready","destroy","eventList","eventType","theEvents","lastStep","removeAttribute","destroyed","ignorePhaseThreshold"],"mappings":";;;;;;;;;;AAWA,QAASA,gBAAeC,aAAcC,QAEpC,YAUA,IAAIC,UAAW,SAAUC,QAASC,SAsQhC,QAASC,SAAQC,QAEf,MAAkD,mBAA7CC,OAAOC,UAAUC,SAASC,KAAMJ,SAC5B,GAEA,EAYX,QAASK,QAAOC,EAAGC,GAEjB,IAAK,GAAIC,KAAKD,GACZD,EAAEE,GAAKD,EAAEC,EAGX,OAAOF,GAaT,QAASG,UAASC,IAAKC,KAAMC,IAW3B,MATIF,KAAIG,eAAgB,GAEtBH,IAAI,IAAIC,KAAKC,IAAMA,GACnBF,IAAIC,KAAKC,IAAM,WAAWF,IAAI,IAAIC,KAAKC,IAAKE,OAAOC,QACnDL,IAAIG,YAAY,KAAKF,KAAMD,IAAIC,KAAKC,MAEpCF,IAAIM,iBAAiBL,KAAMC,IAAI,GAG1BA,GAYT,QAASK,aAAYP,IAAKC,KAAMC,IAE1BF,IAAIQ,eAAgB,GAEtBR,IAAIQ,YAAY,KAAKP,KAAMD,IAAIC,KAAKC,KACpCF,IAAIC,KAAKC,IAAM,MAEfF,IAAIS,oBAAoBR,KAAMC,IAAI,GAqBtC,QAASQ,wBAAuBC,KAAMC,WAGpC,MAAID,MAAKD,0BAA2B,EAC3BC,KAAKD,uBAAuBE,WAK7B,SAA6BC,YAAYF,MAChC,OAATA,OACFA,KAAOG,SACP,IAG2DhB,GAAGiB,EAH1DC,iBACAC,IAAMN,KAAKO,qBAAqB,KAChCC,OAASF,IAAIG,OACbC,QAAU,GAAIC,QAAO,UAAUT,YAAY,UAEjD,KAAKf,EAAI,EAAGiB,EAAI,EAAOI,OAAJrB,EAAYA,IAEzBuB,QAAQE,KAAKN,IAAInB,GAAG0B,aACtBR,cAAcD,GAAKE,IAAInB,GACvBiB,IAIJ,OAAOC,gBACNJ,U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,QAAQM,KAAKnC,IAAI,GAGtB5L,KAAKI,WAAWC,oBAAoBuO,SAAU,cAG9C,IAAIY,eAAgBxP,KAAKI,WAAWiR,iBAAiBzF,GAAIgD,SAAUD,YAAaD,UAG9D,KAAdA,UACF1O,KAAKI,WAAWwP,QAAQhE,GAAIgD,SAAUP,gBAAiBM,YAAaP,mBAAoBoB,cAAeK,YAEvG7P,KAAKI,WAAW4P,QAAQpE,GAAIgD,SAAUP,gBAAiBM,YAAaP,mBAAoBoB,cAAeK,gBAOzG7P,MAAKsT,mBAAmByB,KAAKnJ,GAAI+C,YAAaP,mBAAoBQ,SAAUP,gBAAiBK,UAAWmB,aAS5G7P,KAAKqN,OAAS,aAOdrN,KAAKkN,SAAW,aAWhBlN,KAAKqQ,iBAAmB,aAYxBrQ,KAAKoR,kBAAoB,aAWzBpR,KAAK4Q,oBAAsB,aAW3B5Q,KAAK+Q,kBAAoB,aAWzB/Q,KAAKiR,iBAAmB,aAWxBjR,KAAKkR,eAAiB,aAWtBlR,KAAK0c,gBAAkB,aAWvB1c,KAAK2Y,UAAY,aAejB3Y,KAAKwY,gBAAkB,aAavBxY,KAAKgd,MAAQ,aAWbhd,KAAKud,UAAY,aASjBvd,KAAK4c,MAAMjgB,SAGJqD,MAGT,OAAOtD,UAGTmF,SAAWtF,eAAeC,aAAcC"} \ No newline at end of file diff --git a/src/sequence.js b/src/sequence.js index e98a876..dfae8b9 100755 --- a/src/sequence.js +++ b/src/sequence.js @@ -2337,6 +2337,9 @@ function defineSequence(imagesLoaded, Hammer) { var correspondingStepId, newHashTag; + // Does the browser support pushstate? + self.hasPushstate = !!(window.history && history.pushState); + // Get the current hashTag newHashTag = location.hash.replace("#!", ""); @@ -2410,6 +2413,7 @@ function defineSequence(imagesLoaded, Hammer) { * * - hashTags are being used and this isn't the first run * - hashTags are being used, this is the first run, and the first hash change is allowed in the options + * - the current step has a hashTag */ update: function() { @@ -2424,13 +2428,18 @@ function defineSequence(imagesLoaded, Hammer) { // Get the current hashTag self.currentHashTag = self.stepHashTags[hashTagId]; - // Add the hashTag to the URL - if (history.pushState) { - history.pushState(null, null, "#!" + self.currentHashTag); - } - else { - location.hash = "#!" + self.currentHashTag; + if(self.currentHashtag !== "") { + + // Add the hashTag to the URL + if (self.hasPushstate === true) { + history.pushState(null, null, "#!" + self.currentHashTag); + } + else { + location.hash = "#!" + self.currentHashTag; + } } + + } }, diff --git a/themes/test-theme/index.html b/themes/test-theme/index.html index 0ffc1c0..a36bec8 100644 --- a/themes/test-theme/index.html +++ b/themes/test-theme/index.html @@ -24,13 +24,13 @@
    -
  • +
  • Box 1
  • -
  • +
  • Box 2
  • -
  • +
  • Box 3
diff --git a/themes/test-theme/scripts/sequence-theme.test-theme.js b/themes/test-theme/scripts/sequence-theme.test-theme.js index f068c0c..9ed9a69 100644 --- a/themes/test-theme/scripts/sequence-theme.test-theme.js +++ b/themes/test-theme/scripts/sequence-theme.test-theme.js @@ -24,7 +24,9 @@ var sequenceElement = document.getElementById("sequence"); var options = { animateCanvas: false, phaseThreshold: false, - reverseWhenNavigatingBackwards: true + reverseWhenNavigatingBackwards: true, + hashTags: true, + keyNavigation: true } var mySequence, diff --git a/themes/test-theme/scripts/sequence-theme.test-theme.min.js b/themes/test-theme/scripts/sequence-theme.test-theme.min.js index 6a4c525..a04a38d 100644 --- a/themes/test-theme/scripts/sequence-theme.test-theme.min.js +++ b/themes/test-theme/scripts/sequence-theme.test-theme.min.js @@ -15,4 +15,4 @@ * * Sequence.js and its dependencies are copyright (c) Ian Lunn 2014 unless otherwise stated. */ -function init(){void 0===mySequence&&(mySequence=sequence(sequenceElement,options),mySequence.paused=function(){pauseButton.innerHTML="Unpause"},mySequence.unpaused=function(){pauseButton.innerHTML="Pause"})}var sequenceElement=document.getElementById("sequence"),options={animateCanvas:!1,phaseThreshold:!1,reverseWhenNavigatingBackwards:!0},mySequence,pauseButton=document.getElementById("pause"),initButton=document.getElementById("init"),destroyButton=document.getElementById("destroy");init(),initButton.addEventListener("click",function(){init()}),destroyButton.addEventListener("click",function(){void 0!==mySequence&&(mySequence.destroy(),mySequence=void 0)}); \ No newline at end of file +function init(){void 0===mySequence&&(mySequence=sequence(sequenceElement,options),mySequence.paused=function(){pauseButton.innerHTML="Unpause"},mySequence.unpaused=function(){pauseButton.innerHTML="Pause"})}var sequenceElement=document.getElementById("sequence"),options={animateCanvas:!1,phaseThreshold:!1,reverseWhenNavigatingBackwards:!0,hashTags:!0,keyNavigation:!0},mySequence,pauseButton=document.getElementById("pause"),initButton=document.getElementById("init"),destroyButton=document.getElementById("destroy");init(),initButton.addEventListener("click",function(){init()}),destroyButton.addEventListener("click",function(){void 0!==mySequence&&(mySequence.destroy(),mySequence=void 0)}); \ No newline at end of file