_debug("Paused",n.state.isPaused),!1}this["_pausing_"+n.behavior].call(this,t);return},_setup:function(){var t=this.options;if(!t.behavior||this["_setup_"+t.behavior]===undefined)return this._binding("bind"),!1;this["_setup_"+t.behavior].call(this);return},_showdonemsg:function(){var n=this.options;if(!!n.behavior&&this["_showdonemsg_"+n.behavior]!==undefined){this["_showdonemsg_"+n.behavior].call(this);return}n.loading.msg.find("img").hide().parent().find("div").html(n.loading.finishedMsg).animate({opacity:1},2e3,function(){t(this).parent().fadeOut(n.loading.speed)}),n.errorCallback.call(t(n.contentSelector)[0],"done")},_validate:function(n){for(var r in n)if(r.indexOf&&r.indexOf("Selector")>-1&&t(n[r]).length===0)return this._debug("Your "+r+" found no elements."),!1;return!0},bind:function(){this._binding("bind")},destroy:function(){return this.options.state.isDestroyed=!0,this._error("destroy")},pause:function(){this._pausing("pause")},resume:function(){this._pausing("resume")},updateNavLocation:function(){var n=this.options;n.pixelsFromNavToBottom=t(document).height()-t(n.navSelector).offset().top},beginAjax:function(n){var r=this,i=n.path,s,o,u,a;n.state.currPage++,s=t(n.contentSelector).is("table")?t("<tbody/>"):t("<div/>"),o=typeof i=="function"?i(n.state.currPage):i.join(n.state.currPage),r._debug("heading into ajax",o),u=n.dataType==="html"||n.dataType==="json"?n.dataType:"html+callback",n.appendCallback&&n.dataType==="html"&&(u+="+callback");switch(u){case"html+callback":r._debug("Using HTML via .load() method"),s.load(o+" "+n.itemSelector,undefined,function(t){r._loadcallback(s,t)});break;case"html":r._debug("Using "+u.toUpperCase()+" via $.ajax() method"),t.ajax({url:o,dataType:n.dataType,complete:function(t,n){a=typeof t.isResolved!="undefined"?t.isResolved():n==="success"||n==="notmodified",a?r._loadcallback(s,t.responseText):r._error("end")}});break;case"json":r._debug("Using "+u.toUpperCase()+" via $.ajax() method"),t.ajax({dataType:"json",type:"GET",url:o,success:function(e,t,i){a=typeof i.isResolved!="undefined"?i.isResolved():t==="success"||t==="notmodified";if(n.appendCallback)if(n.template!==undefined){var o=n.template(e);s.append(o),a?r._loadcallback(s,o):r._error("end")}else r._debug("template must be defined."),r._error("end");else a?r._loadcallback(s,e):r._error("end")},error:function(){r._debug("JSON ajax request failed."),r._error("end")}})}},retrieve:function(n){n=n||null;var r=this,i=r.options;if(!!i.behavior&&this["retrieve_"+i.behavior]!==undefined){this["retrieve_"+i.behavior].call(this,n);return}if(i.state.isDestroyed)return this._debug("Instance is destroyed"),!1;i.state.isDuringAjax=!0,i.loading.start.call(t(i.contentSelector)[0],i)},scroll:function(){var t=this.options,n=t.state;if(!!t.behavior&&this["scroll_"+t.behavior]!==undefined){this["scroll_"+t.behavior].call(this);return}if(n.isDuringAjax||n.isInvalidPage||n.isDone||n.isDestroyed||n.isPaused)return;if(!this._nearbottom())return;this.retrieve()},toggle:function(){this._pausing()},unbind:function(){this._binding("unbind")},update:function(n){t.isPlainObject(n)&&(this.options=t.extend(!0,this.options,n))}},t.fn.infinitescroll=function(n,r){var i=typeof n;switch(i){case"string":var s=Array.prototype.slice.call(arguments,1);this.each(function(){var e=t.data(this,"infinitescroll");if(!e)return!1;if(!t.isFunction(e[n])||n.charAt(0)==="_")return!1;e[n].apply(e,s)});break;case"object":this.each(function(){var e=t.data(this,"infinitescroll");e?e.update(n):(e=new t.infinitescroll(n,r,this),e.failed||t.data(this,"infinitescroll",e))})}return this}}),define("plugins/jquery.throttle-debounce",["require","jquery"],function(e){var t=e("jquery"),n,r=undefined;t.throttle=n=function(e,n,i,s){function a(){function p(){u=+(new Date),i.apply(t,l)}function v(){o=r}var t=this,a=+(new Date)-u,l=arguments;s&&!o&&p(),o&&clearTimeout(o),s===r&&a>e?p():n!==!0&&(o=setTimeout(s?v:p,s===r?e-a:e))}var o,u=0;return typeof n!="boolean"&&(s=i,i=n,n=r),t.guid&&(a.guid=i.guid=i.guid||t.guid++),a},t.debounce=function(e,t,i){return i===r?n(e,t,!1):n(e,i,t!==!1)}}),function(){var e=0,t=["ms","moz","webkit","o"];for(var n=0;n<t.length&&!window.requestAnimationFrame;++n)window.requestAnimationFrame=window[t[n]+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t[n]+"CancelAnimationFrame"]||window[t[n]+"CancelRequestAnimationFrame"];window.requestAnimationFrame?Modernizr.raf=!0:(window.requestAnimationFrame=function(t,n){var r=(new Date).getTime(),i=Math.max(0,16-(r-e)),s=window.setTimeout(function(){t(r+i)},i);return e=r+i,s},Modernizr.raf=!1),window.cancelAnimationFrame||(window.cancelAnimationFrame=function(e){clearTimeout(e)})}(),define("plugins/rAF",function(){}),function(e,t){function n(e){return s===""?e:(e=e.charAt(0).toUpperCase()+e.substr(1),s+e)}var r=Math,i=t.createElement("div").style,s=function(){var e="t,webkitT,MozT,msT,OT".split(","),t,n=0,r=e.length;for(;n<r;n++){t=e[n]+"ransform";if(t in i)return e[n].substr(0,e[n].length-1)}return!1}(),o=s?"-"+s.toLowerCase()+"-":"",u=n("transform"),a=n("transitionProperty"),f=n("transitionDuration"),l=n("transformOrigin"),c=n("transitionTimingFunction"),h=n("transitionDelay"),p=/android/gi.test(navigator.appVersion),d=/iphone|ipad|ipod/gi.test(navigator.appVersion),v=n("perspective")in i,m=navigator.pointerEnabled||navigator.msPointerEnabled,g="ontouchstart"in e,y=s!==!1,b=n("transition")in i,w="addEventListener"in t,E=w?"":"on",S=w?"addEventListener":"attachEvent",x=w?"removeEventListener":"detachEvent",T="onorientationchange"in e?"orientationchange":"resize",N=g?"touchstart":m?"MSPointerDown":"mousedown",C=g?"touchmove":m?"MSPointerMove":"mousemove",k=g?"touchend":m?"MSPointerUp":"mouseup",L=g?"touchcancel":m?"MSPointerCancel":"mousecancel",A=function(){if(s===!1)return!1;var e={"":"transitionend",webkit:"webkitTransitionEnd",Moz:"transitionend",O:"otransitionend",ms:"MSTransitionEnd"};return e[s]}(),O=function(){return e.requestAnimationFrame||e.webkitRequestAnimationFrame||e.mozRequestAnimationFrame||e.oRequestAnimationFrame||e.msRequestAnimationFrame||function(e){return setTimeout(e,1)}}(),M=function(){return e.

Prev | Next
Pg.: 1 ... 19 20 21 22 23 24 25 26 27 28 29 ... 41


Back to home | File page

Subscribe | Register | Login | N