diff --git a/css/hopscotch.css b/css/hopscotch.css index ab3411b5..39fd3985 100644 --- a/css/hopscotch.css +++ b/css/hopscotch.css @@ -21,6 +21,8 @@ div#hopscotch-bubble #hopscotch-bubble-arrow-container.left .hopscotch-bubble-ar div#hopscotch-bubble #hopscotch-bubble-arrow-container.right{top:10px;right:-46px;}div#hopscotch-bubble #hopscotch-bubble-arrow-container.right .hopscotch-bubble-arrow{border-bottom:20px solid transparent;border-left:20px solid #ffffff;border-top:20px solid transparent;position:relative;left:-11.516px;top:-40px;} div#hopscotch-bubble #hopscotch-bubble-arrow-container.right .hopscotch-bubble-arrow-border{border-left:20px solid #000000;border-left:20px solid rgba(0, 0, 0, 0.5);border-bottom:20px solid transparent;border-top:20px solid transparent;} div#hopscotch-bubble #hopscotch-actions{text-align:right;} -div#hopscotch-bubble input.hopscotch-nav-button{background:#FFCF0B;background:-moz-linear-gradient(top, #fff5bd 0, #fff5bd 1px, #ffe976 1px, #ffcf0b 100%);background:-o-linear-gradient(top, #fff5bd 0, #fff5bd 1px, #ffe976 1px, #ffcf0b 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #fff5bd), color-stop(5%, #fff5bd), color-stop(5%, #ffe976), color-stop(100%, #ffcf0b));background:linear-gradient(top, #fff5bd 0, #fff5bd 1px, #ffe976 1px, #ffcf0b 100%);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#FFE976', endColorstr='#FFCF0B', GradientType=0);border-color:#e8b463;border-width:1px;border-style:solid;color:#333;cursor:pointer;font-size:12px;font-weight:bold;line-height:1.35;margin:0 0 0 10px;overflow:visible;padding:3px 10px 2px;*padding:2px 10px 1px;text-decoration:none;vertical-align:top;width:auto;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;}div#hopscotch-bubble input.hopscotch-nav-button.hide-all{display:none;} -div#hopscotch-bubble input.hopscotch-nav-button:hover{background:#F6C408;background:-moz-linear-gradient(top, #faeeae 0, #faeeae 1px, #f5db59 1px, #f6c408 100%);background:-o-linear-gradient(top, #faeeae 0, #faeeae 1px, #f5db59 1px, #f6c408 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #faeeae), color-stop(5%, #faeeae), color-stop(5%, #f5db59), color-stop(100%, #f6c408));background:linear-gradient(top, #faeeae 0, #faeeae 1px, #f5db59 1px, #f6c408 100%);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#F5DB59', endColorstr='#F6C408', GradientType=0);} -div#hopscotch-bubble input.hopscotch-nav-button:active{background:#F5DD61;background:-moz-linear-gradient(top, #f6c202 0, #f5dd61 100%);background:-o-linear-gradient(top, #f6c202 0, #f5dd61 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #f6c202), color-stop(100%, #f5dd61));background:linear-gradient(top, #f6c202 0, #f5dd61 100%);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#F6C202', endColorstr='#F5DD61', GradientType=0);} +div#hopscotch-bubble input.hopscotch-nav-button{border-width:1px;border-style:solid;cursor:pointer;font-size:12px;line-height:1.35;margin:0;overflow:visible;padding:3px 10px 2px;*padding:2px 10px 1px;text-decoration:none !important;vertical-align:top;width:auto;-moz-border-radius:3px;-ms-border-radius:3px;-o-border-radius:3px;-webkit-border-radius:3px;border-radius:3px;*padding:3px 10px;}div#hopscotch-bubble input.hopscotch-nav-button.next{background:#FFCF0B;background:-moz-linear-gradient(top, #fff5bd 0, #fff5bd 1px, #ffe976 1px, #ffcf0b 100%);background:-o-linear-gradient(top, #fff5bd 0, #fff5bd 1px, #ffe976 1px, #ffcf0b 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #fff5bd), color-stop(5%, #fff5bd), color-stop(5%, #ffe976), color-stop(100%, #ffcf0b));background:linear-gradient(top, #fff5bd 0, #fff5bd 1px, #ffe976 1px, #ffcf0b 100%);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#FFE976', endColorstr='#FFCF0B', GradientType=0);border-color:#e8b463;color:#333;font-weight:bold;margin:0 0 0 10px;overflow:visible;}div#hopscotch-bubble input.hopscotch-nav-button.next.hide-all{display:none;} +div#hopscotch-bubble input.hopscotch-nav-button.next:hover{background:#F6C408;background:-moz-linear-gradient(top, #faeeae 0, #faeeae 1px, #f5db59 1px, #f6c408 100%);background:-o-linear-gradient(top, #faeeae 0, #faeeae 1px, #f5db59 1px, #f6c408 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #faeeae), color-stop(5%, #faeeae), color-stop(5%, #f5db59), color-stop(100%, #f6c408));background:linear-gradient(top, #faeeae 0, #faeeae 1px, #f5db59 1px, #f6c408 100%);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#F5DB59', endColorstr='#F6C408', GradientType=0);} +div#hopscotch-bubble input.hopscotch-nav-button.next:active{background:#F5DD61;background:-moz-linear-gradient(top, #f6c202 0, #f5dd61 100%);background:-o-linear-gradient(top, #f6c202 0, #f5dd61 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #f6c202), color-stop(100%, #f5dd61));background:linear-gradient(top, #f6c202 0, #f5dd61 100%);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#F6C202', endColorstr='#F5DD61', GradientType=0);} +div#hopscotch-bubble input.hopscotch-nav-button.prev{background:#CECECE;background:-moz-linear-gradient(top, #f2f2f2 0, #f2f2f2 1px, #e4e4e4 1px, #cecece 100%);background:-o-linear-gradient(top, #f2f2f2 0, #f2f2f2 1px, #e4e4e4 1px, #cecece 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #f2f2f2), color-stop(5%, #f2f2f2), color-stop(5%, #e4e4e4), color-stop(100%, #cecece));background:linear-gradient(top, #f2f2f2 0, #f2f2f2 1px, #e4e4e4 1px, #cecece 100%);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#E4E4E4', endColorstr='#CECECE', GradientType=0);border-color:#999;color:#666 !important;}div#hopscotch-bubble input.hopscotch-nav-button.prev:hover{background:#B7B7B7;background:-moz-linear-gradient(top, #e4e4e4 0, #e4e4e4 1px, #c8c8c8 1px, #b7b7b7 100%);background:-o-linear-gradient(top, #e4e4e4 0, #e4e4e4 1px, #c8c8c8 1px, #b7b7b7 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #e4e4e4), color-stop(5%, #e4e4e4), color-stop(5%, #c8c8c8), color-stop(100%, #b7b7b7));background:linear-gradient(top, #e4e4e4 0, #e4e4e4 1px, #c8c8c8 1px, #b7b7b7 100%);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#C8C8C8', endColorstr='#B7B7B7', GradientType=0);} +div#hopscotch-bubble input.hopscotch-nav-button.prev:active{background:#C9C9C9;background:-moz-linear-gradient(top, #b6b6b6 0, #c9c9c9 100%);background:-o-linear-gradient(top, #b6b6b6 0, #c9c9c9 100%);background:-webkit-gradient(linear, left top, left bottom, color-stop(0, #b6b6b6), color-stop(100%, #c9c9c9));background:linear-gradient(top, #b6b6b6 0, #c9c9c9 100%);filter:progid:dximagetransform.microsoft.gradient(startColorstr='#B6B6B6', endColorstr='#C9C9C9', GradientType=0);} diff --git a/js/hopscotch-min.js b/js/hopscotch-min.js index 238258f3..a9f42983 100644 --- a/js/hopscotch-min.js +++ b/js/hopscotch-min.js @@ -1 +1 @@ -(function(){var l,f,k,j,a,i="undefined",h=false,b=false,c=(typeof window.jQuery!==i),e=(typeof window.localStorage!==i),g=document.body.style,d=(typeof g.MozTransition!==i||typeof g.MsTransition!==i||typeof g.webkitTransition!==i||typeof g.OTransition!==i||typeof g.transition!==i);if(window.hopscotch){return}a=function(){h=true;if(b){window.hopscotch.startTour()}};if(window.addEventListener){window.addEventListener("load",a)}else{if(window.attachEvent){window.attachEvent("onload",a)}}j={addClass:function(o,q){var n,p,m;if(c){$(o).addClass(q)}else{if(o.className.length===0){o.className=q}else{n=o.className.split(" ");for(p=0,m=n.length;p0||v>0));this.showNextButton(this.nextBtnEl&&t&&!w);if(w){j.removeClass(this.doneBtnEl,"hide")}else{j.addClass(this.doneBtnEl,"hide")}this.setArrow(u.orientation);y=j.getPixelValue(u.width)||r.bubbleWidth;x=j.valOrDefault(u.padding,r.bubblePadding);this.containerEl.style.width=y+"px";this.containerEl.style.padding=x+"px";if(u.orientation==="top"){setTimeout(function(){p(B,u);if(A){A()}},5)}else{p(this,u);if(A){A()}}return this};this.setTitle=function(s){if(s){this.titleEl.innerHTML=s;j.removeClass(this.titleEl,"hide")}else{j.addClass(this.titleEl,"hide")}return this};this.setContent=function(s){if(s){this.contentEl.innerHTML=s;j.removeClass(this.contentEl,"hide")}else{j.addClass(this.contentEl,"hide")}return this};this.setNum=function(s){if(k.stepNums&&s0)?B[x]:B},y=function(){var B=s.steps[o].length;if(x0)?0:undefined;return true}}return false},v=function(){var B;if(x>0){--x;return true}else{if(o>0){B=s.steps[--o].length;if(B){x=B-1}else{x=undefined}return true}}return false},m=function(){return s.steps[o].length>0},u=function(){var R=q().element,N=j.getPixelValue(R.style.top),M=N+j.getPixelValue(R.offsetHeight),K=document.getElementById(z().targetId),S=K.getBoundingClientRect(),P=S.top+j.getScrollTop(),L=S.bottom+j.getScrollTop(),I=(NL)?M:L,O=j.getScrollTop(),D=O+j.getWindowHeight(),E=I-p.scrollTopMargin,C,H,G,Q,F,J;if(c){$("body, html").animate({scrollTop:E},p.scrollDuration);return}else{if(typeof YAHOO!==i&&typeof YAHOO.env!==i&&typeof YAHOO.env.ua!==i&&typeof YAHOO.util!==i&&typeof YAHOO.util.Scroll!==i){C=YAHOO.env.ua.webkit?document.body:document.documentElement;G=YAHOO.util.Easing?YAHOO.util.Easing.easeOut:undefined;H=new YAHOO.util.Scroll(C,{scroll:{to:[0,E]}},p.scrollDuration/1000,G);H.animate();return}}if(E<0){E=0}if(I>=O&&I<=O+p.scrollTopMargin){return}if(ID){if(p.smoothScroll){Q=(O>I)?-1:1;F=Math.abs(O-E)/(p.scrollDuration/10);J=setInterval(function(){var U=j.getScrollTop(),T=U+(Q*F);if((Q>0&&T>=E)||Q<0&&T<=E){T=E;clearInterval(J)}window.scrollTo(0,T);if(j.getScrollTop()===U){clearInterval(J)}},10)}else{window.scrollTo(0,E)}}};this.init=function(){var B,C;if(n){this.configure(n)}return this};this.loadTour=function(E){var D={},B,F,C;s=E;for(F in E){if(E.hasOwnProperty(F)&&F!=="id"&&F!=="steps"){D[F]=E[F]}}this.configure(D);tourState=j.getState(p.cookieName);if(tourState){tourPair=tourState.split(":");A=tourPair[0];r=tourPair[1];t=undefined;C=r.split("-");if(C.length>1){r=parseInt(C[0],10);t=parseInt(C[1],10)}else{r=parseInt(r,10)}if(tourPair.length>2&&tourPair[2]==="mp"){if(t&&t0){t=0}else{t=undefined}}}}}B=q();B.showPrevButton(p.showPrevButton,true);B.showNextButton(p.showNextButton,true);return this};this.startTour=function(){var B,C;if(!s){throw"Need to load a tour before you start it!"}if(document.readyState!=="complete"){b=true;return}if(s.id===A&&typeof r!==i){o=r;x=t;C=z();if(!document.getElementById(C.targetId)){v();C=z();if(!document.getElementById(C.targetId)){this.endTour(false);return}}}else{o=0}if(!x&&m()){x=0}this.showStep(o,x);B=q().show();if(p.animate){B.initAnimate()}this.isActive=true;return this};this.showStep=function(F,D){var I=s.steps,G=I[F],E=I.length,C=s.id+":"+F,B=q(),H;o=F;x=D;if(typeof D!==i){G=G[D];C+="-"+D}currStep=G;H=(F===E-1)||(D>=G.length-1);B.renderStep(G,F,D,H,u);if(G.multiPage){C+=":mp"}j.setState(p.cookieName,C,1);return this};this.prevStep=function(){var B=z();if(B.onPrev){B.onPrev()}if(v()){this.showStep(o,x)}return this};this.nextStep=function(){var B=z();if(p.onNext){p.onNext(B,o)}if(B.onNext){B.onNext()}if(y()){this.showStep(o,x)}return this};this.endTour=function(C){var B=q();C=j.valOrDefault(C,true);o=0;x=0;r=undefined;B.hide();if(C){j.clearState(p.cookieName)}this.isActive=false;return this};this.configure=function(B){if(!p){p={}}j.extend(p,B);p.animate=j.valOrDefault(p.animate,false);p.smoothScroll=j.valOrDefault(p.smoothScroll,true);p.scrollDuration=j.valOrDefault(p.scrollDuration,1000);p.scrollTopMargin=j.valOrDefault(p.scrollTopMargin,50);p.showCloseButton=j.valOrDefault(p.showCloseButton,true);p.showPrevButton=j.valOrDefault(p.showPrevButton,false);p.showNextButton=j.valOrDefault(p.showNextButton,true);p.bubbleWidth=j.valOrDefault(p.bubbleWidth,280);p.bubblePadding=j.valOrDefault(p.bubblePadding,15);p.bubbleBorder=j.valOrDefault(p.bubbleBorder,6);p.arrowWidth=j.valOrDefault(p.arrowWidth,20);p.onNext=j.valOrDefault(p.onNext,null);p.cookieName=j.valOrDefault(p.cookieName,"hopscotch.tour.state");if(B){j.extend(k,B.i18n)}if(p.animate){q().initAnimate()}else{q().removeAnimate()}q().showPrevButton(p.showPrevButton,true);q().showNextButton(p.showNextButton,true);q().showCloseButton(p.showCloseButton,true);return this};this.init(n)};window.hopscotch=new l()}()); \ No newline at end of file +(function(){var l,f,k,j,a,i="undefined",h=false,b=false,c=(typeof window.jQuery!==i),e=(typeof window.localStorage!==i),g=document.body.style,d=(typeof g.MozTransition!==i||typeof g.MsTransition!==i||typeof g.webkitTransition!==i||typeof g.OTransition!==i||typeof g.transition!==i);if(window.hopscotch){return}a=function(){h=true;if(b){window.hopscotch.startTour()}};if(window.addEventListener){window.addEventListener("load",a)}else{if(window.attachEvent){window.attachEvent("onload",a)}}j={addClass:function(o,q){var n,p,m;if(c){$(o).addClass(q)}else{if(o.className.length===0){o.className=q}else{n=o.className.split(" ");for(p=0,m=n.length;p=0){j.addClass(s,"prev")}else{j.addClass(s,"next")}return s},o=function(t,s,v){var u="hide";if(v){u="hide-all"}if(typeof s===i){s=true}if(s){j.removeClass(t,u)}else{j.addClass(t,u)}},p=function(z,v,G){var C,s,A,u,x,y,B,w,F=document.getElementById(v.targetId),t=z.element,E=z.arrowEl,D=j.getPixelValue(v.arrowOffset);G=j.valOrDefault(G,true);C=j.getPixelValue(v.width)||r.bubbleWidth;A=j.valOrDefault(v.padding,r.bubblePadding);bubbleBorder=j.valOrDefault(v.padding,r.bubbleBorder);j.removeClass(t,"bounce-down bounce-up bounce-left bounce-right");u=F.getBoundingClientRect();if(v.orientation==="top"){s=t.offsetHeight;B=(u.top-s)-r.arrowWidth;w=u.left;y="bounce-down"}else{if(v.orientation==="bottom"){B=u.bottom+r.arrowWidth;w=u.left;y="bounce-up"}else{if(v.orientation==="left"){B=u.top;w=u.left-C-2*A-2*bubbleBorder-r.arrowWidth;y="bounce-right"}else{if(v.orientation==="right"){B=u.top;w=u.right+r.arrowWidth;y="bounce-left"}}}}if(!D){E.style.top="";E.style.left=""}else{if(v.orientation==="top"||v.orientation==="bottom"){E.style.left=D+"px"}else{if(v.orientation==="left"||v.orientation==="right"){E.style.top=D+"px"}}}w+=j.getPixelValue(v.xOffset);B+=j.getPixelValue(v.yOffset);B+=j.getScrollTop();w+=j.getScrollLeft();if(r.animate){if(!d&&c&&r.animate){$(t).animate({top:B+"px",left:w+"px"})}else{t.style.top=B+"px";t.style.left=w+"px"}}else{t.style.top=B+"px";t.style.left=w+"px";if(G){x=r.smoothScroll?r.scrollDuration:0;setTimeout(function(){j.addClass(t,y)},x);setTimeout(function(){j.removeClass(t,y)},x+2000)}}};this.init=function(){var v=document.createElement("div"),w=document.createElement("div"),u=this,t=false,s;this.element=v;this.containerEl=w;this.titleEl=document.createElement("h3");this.numberEl=document.createElement("span");this.contentEl=document.createElement("p");v.setAttribute("id","hopscotch-bubble");j.addClass(v,"animated");w.setAttribute("id","hopscotch-bubble-container");this.numberEl.setAttribute("id","hopscotch-bubble-number");w.appendChild(this.numberEl);w.appendChild(this.titleEl);w.appendChild(this.contentEl);v.appendChild(w);this.initNavButtons();if(r&&r.showCloseButton){this.initCloseButton()}this.initArrow();window.onresize=function(){if(t||!m){return}t=true;s=setTimeout(function(){p(u,n,false);t=false},200)};document.body.appendChild(v);return this};this.initNavButtons=function(){var s=document.createElement("div");this.prevBtnEl=q("hopscotch-prev",k.prevBtn);this.nextBtnEl=q("hopscotch-next",k.nextBtn);this.doneBtnEl=q("hopscotch-done",k.doneBtn);j.addClass(this.doneBtnEl,"hide");s.appendChild(this.prevBtnEl);s.appendChild(this.nextBtnEl);s.appendChild(this.doneBtnEl);j.addClickListener(this.prevBtnEl,function(t){window.hopscotch.prevStep()});j.addClickListener(this.nextBtnEl,function(t){window.hopscotch.nextStep()});j.addClickListener(this.doneBtnEl,window.hopscotch.endTour);s.setAttribute("id","hopscotch-actions");this.buttonsEl=s;this.containerEl.appendChild(s);return this};this.initCloseButton=function(){var s=document.createElement("a");s.setAttribute("id","hopscotch-bubble-close");s.setAttribute("href","#");s.setAttribute("title",k.closeTooltip);s.innerHTML="x";j.addClickListener(s,function(t){window.hopscotch.endTour();j.evtPreventDefault(t)});this.closeBtnEl=s;this.containerEl.appendChild(s);return this};this.initArrow=function(){var s;this.arrowEl=document.createElement("div");this.arrowEl.setAttribute("id","hopscotch-bubble-arrow-container");s=document.createElement("div");s.className="hopscotch-bubble-arrow-border";arrowEl=document.createElement("div");arrowEl.className="hopscotch-bubble-arrow";this.arrowEl.appendChild(s);this.arrowEl.appendChild(arrowEl);this.element.appendChild(this.arrowEl)};this.renderStep=function(u,z,v,w,A){var B=this,t=j.valOrDefault(u.showNextButton,r.showNextButton),s=j.valOrDefault(u.showPrevButton,r.showPrevButton),y,x;this.setTitle(u.title?u.title:"");this.setContent(u.content?u.content:"");this.setNum(z);this.showPrevButton(this.prevBtnEl&&s&&(z>0||v>0));this.showNextButton(this.nextBtnEl&&t&&!w);if(w){j.removeClass(this.doneBtnEl,"hide")}else{j.addClass(this.doneBtnEl,"hide")}this.setArrow(u.orientation);y=j.getPixelValue(u.width)||r.bubbleWidth;x=j.valOrDefault(u.padding,r.bubblePadding);this.containerEl.style.width=y+"px";this.containerEl.style.padding=x+"px";if(u.orientation==="top"){setTimeout(function(){p(B,u);if(A){A()}},5)}else{p(this,u);if(A){A()}}return this};this.setTitle=function(s){if(s){this.titleEl.innerHTML=s;j.removeClass(this.titleEl,"hide")}else{j.addClass(this.titleEl,"hide")}return this};this.setContent=function(s){if(s){this.contentEl.innerHTML=s;j.removeClass(this.contentEl,"hide")}else{j.addClass(this.contentEl,"hide")}return this};this.setNum=function(s){if(k.stepNums&&s0)?B[x]:B},y=function(){var B=s.steps[o].length;if(x0)?0:undefined;return true}}return false},v=function(){var B;if(x>0){--x;return true}else{if(o>0){B=s.steps[--o].length;if(B){x=B-1}else{x=undefined}return true}}return false},m=function(){return s.steps[o].length>0},u=function(){var R=q().element,N=j.getPixelValue(R.style.top),M=N+j.getPixelValue(R.offsetHeight),K=document.getElementById(z().targetId),S=K.getBoundingClientRect(),P=S.top+j.getScrollTop(),L=S.bottom+j.getScrollTop(),I=(NL)?M:L,O=j.getScrollTop(),D=O+j.getWindowHeight(),E=I-p.scrollTopMargin,C,H,G,Q,F,J;if(c){$("body, html").animate({scrollTop:E},p.scrollDuration);return}else{if(typeof YAHOO!==i&&typeof YAHOO.env!==i&&typeof YAHOO.env.ua!==i&&typeof YAHOO.util!==i&&typeof YAHOO.util.Scroll!==i){C=YAHOO.env.ua.webkit?document.body:document.documentElement;G=YAHOO.util.Easing?YAHOO.util.Easing.easeOut:undefined;H=new YAHOO.util.Scroll(C,{scroll:{to:[0,E]}},p.scrollDuration/1000,G);H.animate();return}}if(E<0){E=0}if(I>=O&&I<=O+p.scrollTopMargin){return}if(ID){if(p.smoothScroll){Q=(O>I)?-1:1;F=Math.abs(O-E)/(p.scrollDuration/10);J=setInterval(function(){var U=j.getScrollTop(),T=U+(Q*F);if((Q>0&&T>=E)||Q<0&&T<=E){T=E;clearInterval(J)}window.scrollTo(0,T);if(j.getScrollTop()===U){clearInterval(J)}},10)}else{window.scrollTo(0,E)}}};this.init=function(){var B,C;if(n){this.configure(n)}return this};this.loadTour=function(E){var D={},B,F,C;s=E;for(F in E){if(E.hasOwnProperty(F)&&F!=="id"&&F!=="steps"){D[F]=E[F]}}this.configure(D);tourState=j.getState(p.cookieName);if(tourState){tourPair=tourState.split(":");A=tourPair[0];r=tourPair[1];t=undefined;C=r.split("-");if(C.length>1){r=parseInt(C[0],10);t=parseInt(C[1],10)}else{r=parseInt(r,10)}if(tourPair.length>2&&tourPair[2]==="mp"){if(t&&t0){t=0}else{t=undefined}}}}}B=q();B.showPrevButton(p.showPrevButton,true);B.showNextButton(p.showNextButton,true);return this};this.startTour=function(){var B,C;if(!s){throw"Need to load a tour before you start it!"}if(document.readyState!=="complete"){b=true;return}if(s.id===A&&typeof r!==i){o=r;x=t;C=z();if(!document.getElementById(C.targetId)){v();C=z();if(!document.getElementById(C.targetId)){this.endTour(false);return}}}else{o=0}if(!x&&m()){x=0}this.showStep(o,x);B=q().show();if(p.animate){B.initAnimate()}this.isActive=true;return this};this.showStep=function(F,D){var I=s.steps,G=I[F],E=I.length,C=s.id+":"+F,B=q(),H;o=F;x=D;if(typeof D!==i){G=G[D];C+="-"+D}currStep=G;H=(F===E-1)||(D>=G.length-1);B.renderStep(G,F,D,H,u);if(G.multiPage){C+=":mp"}j.setState(p.cookieName,C,1);return this};this.prevStep=function(){var B=z();if(B.onPrev){B.onPrev()}if(v()){this.showStep(o,x)}return this};this.nextStep=function(){var B=z();if(p.onNext){p.onNext(B,o)}if(B.onNext){B.onNext()}if(y()){this.showStep(o,x)}return this};this.endTour=function(C){var B=q();C=j.valOrDefault(C,true);o=0;x=0;r=undefined;B.hide();if(C){j.clearState(p.cookieName)}this.isActive=false;return this};this.configure=function(B){if(!p){p={}}j.extend(p,B);p.animate=j.valOrDefault(p.animate,false);p.smoothScroll=j.valOrDefault(p.smoothScroll,true);p.scrollDuration=j.valOrDefault(p.scrollDuration,1000);p.scrollTopMargin=j.valOrDefault(p.scrollTopMargin,50);p.showCloseButton=j.valOrDefault(p.showCloseButton,true);p.showPrevButton=j.valOrDefault(p.showPrevButton,false);p.showNextButton=j.valOrDefault(p.showNextButton,true);p.bubbleWidth=j.valOrDefault(p.bubbleWidth,280);p.bubblePadding=j.valOrDefault(p.bubblePadding,15);p.bubbleBorder=j.valOrDefault(p.bubbleBorder,6);p.arrowWidth=j.valOrDefault(p.arrowWidth,20);p.onNext=j.valOrDefault(p.onNext,null);p.cookieName=j.valOrDefault(p.cookieName,"hopscotch.tour.state");if(B){j.extend(k,B.i18n)}if(p.animate){q().initAnimate()}else{q().removeAnimate()}q().showPrevButton(p.showPrevButton,true);q().showNextButton(p.showNextButton,true);q().showCloseButton(p.showCloseButton,true);return this};this.init(n)};window.hopscotch=new l()}()); \ No newline at end of file