From 7426f3041bf396c57a93c08a3a7e468648da89e8 Mon Sep 17 00:00:00 2001 From: Gordon Koo Date: Mon, 18 Mar 2013 11:30:04 -0700 Subject: [PATCH] update minified JS --- js/hopscotch-0.0.5.min.js | 66 ++++++++++++++++++++------------------- 1 file changed, 34 insertions(+), 32 deletions(-) diff --git a/js/hopscotch-0.0.5.min.js b/js/hopscotch-0.0.5.min.js index 7020ced9..f437fa64 100644 --- a/js/hopscotch-0.0.5.min.js +++ b/js/hopscotch-0.0.5.min.js @@ -1,32 +1,34 @@ -(function(t,u){var j,v,A,l,B=window.Sizzle||null,b,p,i=t[u],C=!1,q={animate:!1,smoothScroll:!0,scrollDuration:1E3,scrollTopMargin:200,showCloseButton:!0,showPrevButton:!1,showNextButton:!0,bubbleWidth:280,bubblePadding:15,arrowWidth:20,skipIfNoElement:!0},y="undefined"!==typeof window.jQuery,r="undefined"!==typeof window.sessionStorage;j=document.body.style;var D="undefined"!==typeof j.MozTransition||"undefined"!==typeof j.MsTransition||"undefined"!==typeof j.webkitTransition||"undefined"!==typeof j.OTransition|| -"undefined"!==typeof j.transition;i||(j=function(){C&&i.startTour()},window.addEventListener?window.addEventListener("load",j,!1):window.attachEvent&&window.attachEvent("onload",j),b={addClass:function(a,f){var b,d,e;if(0===a.className.length)a.className=f;else{b=a.className.split(/\s+/);d=0;for(e=b.length;dg||g>=h.steps.length?null:h.steps[g]},t=function(){f.nextStep(!1)},z=function(a,e){var d,c;0<=g+a&&g+ad&&i.onPrev)i.onPrev();b.invokeCallbacks(0g?f:g,h=b.getScrollTop(),g=h+b.getWindowHeight(),m=a-e.scrollTopMargin,w,j,l;a>=h&&(a<=h+e.scrollTopMargin||f<=g)?d&&d():e.smoothScroll?"undefined"!==typeof YAHOO&&"undefined"!==typeof YAHOO.env&& -"undefined"!==typeof YAHOO.env.ua&&"undefined"!==typeof YAHOO.util&&"undefined"!==typeof YAHOO.util.Scroll?(a=YAHOO.env.ua.webkit?document.body:document.documentElement,f=YAHOO.util.Easing?YAHOO.util.Easing.easeOut:void 0,a=new YAHOO.util.Scroll(a,{scroll:{to:[0,m]}},e.scrollDuration/1E3,f),a.onComplete.subscribe(d),a.animate()):y?$("body, html").animate({scrollTop:m},e.scrollDuration,d):(0>m&&(m=0),w=h>a?-1:1,j=Math.abs(h-m)/(e.scrollDuration/10),l=function(){var a=b.getScrollTop(),c=a+w*j;0=m||0>w&&c<=m?(c=m,d&&d(),window.scrollTo(0,c)):(window.scrollTo(0,c),b.getScrollTop()===a?d&&d():setTimeout(l,10))},l()):(window.scrollTo(0,m),d&&d())}else i.show();if(c.onShow)c.onShow();c.nextOnTargetClick&&b.addClickListener(k,t)});b.invokeCallbacks("show",[h.id,g]);c.multipage&&(f+=":mp");b.setState(e.cookieName,f,1)},c.delay||0);return this};this.prevStep=function(a){u.call(this,a,-1);return this};this.nextStep=function(a){var c=n(),d=b.getStepTarget(c);c.nextOnTargetClick&&b.removeClickListener(d, -t);u.call(this,a,1);return this};this.endTour=function(a,c){var d=s(),a=b.valOrDefault(a,!0),c=b.valOrDefault(c,!0);g=0;k=void 0;d.hide();a&&b.clearState(e.cookieName);i.isActive=!1;h&&c&&b.invokeCallbacks("end",[h.id]);i.removeCallbacks(!0);h=null;return this};this.getCurrTour=function(){return h};this.getCurrStepNum=function(){return g};this.listen=function(a,b,c){a&&b&&p[a].push({cb:b,fromTour:c});return this};this.removeCallback=function(a,b){var c=p[a],d,e;d=0;for(e=c.length;dg||g>=h.steps.length?null:h.steps[g]},u=function(){e.nextStep(!1)},z=function(a,d){var q,f;0<=g+a&&g+ad&&e.onPrev&&b.invokeCallback(e.onPrev),b.invokeEventCallbacks(0g?e:g,h=b.getScrollTop(),g=h+b.getWindowHeight(),m=a-f.scrollTopMargin,q,E,j;a>=h&&(a<=h+f.scrollTopMargin||e<=g)?d&&d():f.smoothScroll?"undefined"!==typeof YAHOO&&"undefined"!==typeof YAHOO.env&& +"undefined"!==typeof YAHOO.env.ua&&"undefined"!==typeof YAHOO.util&&"undefined"!==typeof YAHOO.util.Scroll?(a=YAHOO.env.ua.webkit?document.body:document.documentElement,e=YAHOO.util.Easing?YAHOO.util.Easing.easeOut:void 0,a=new YAHOO.util.Scroll(a,{scroll:{to:[0,m]}},f.scrollDuration/1E3,e),a.onComplete.subscribe(d),a.animate()):y?$("body, html").animate({scrollTop:m},f.scrollDuration,d):(0>m&&(m=0),q=h>a?-1:1,E=Math.abs(h-m)/(f.scrollDuration/10),j=function(){var a=b.getScrollTop(),c=a+q*E;0=m||0>q&&c<=m?(c=m,d&&d(),window.scrollTo(0,c)):(window.scrollTo(0,c),b.getScrollTop()===a?d&&d():setTimeout(j,10))},j()):(window.scrollTo(0,m),d&&d())}else i.show();c.onShow&&b.invokeCallback(c.onShow);c.nextOnTargetClick&&b.addClickListener(k,u)});b.invokeEventCallbacks("show");c.multipage&&(e+=":mp");b.setState(f.cookieName,e,1)},c.delay||0);return this};this.prevStep=function(a){v.call(this,a,-1);return this};this.nextStep=function(a){var c=p(),d=b.getStepTarget(c);c.nextOnTargetClick&&b.removeClickListener(d, +u);v.call(this,a,1);return this};this.endTour=function(a,c){var d=t(),a=b.valOrDefault(a,!0),c=b.valOrDefault(c,!0);g=0;k=void 0;d.hide();a&&b.clearState(f.cookieName);i.isActive=!1;h&&c&&b.invokeEventCallbacks("end");i.removeCallbacks(!0);h=null;return this};this.getCurrTour=function(){return h};this.getCurrStepNum=function(){return g};this.listen=function(a,b,c){a&&n[a].push({cb:b,fromTour:c});return this};this.unlisten=function(a,b){var c=n[a],d,e;d=0;for(e=c.length;d