1/*jshint undef: true */ 2/*global jQuery: true */ 3 4/* 5 -------------------------------- 6 Infinite Scroll 7 -------------------------------- 8 + https://github.com/paulirish/infinite-scroll 9 + version 2.0b2.120519 10 + Copyright 2011/12 Paul Irish & Luke Shumard 11 + Licensed under the MIT license 12 13 + Documentation: http://infinite-scroll.com/ 14*/ 15 16(function (window, $, undefined) { 17 "use strict"; 18 19 $.infinitescroll = function infscr(options, callback, element) { 20 this.element = $(element); 21 22 // Flag the object in the event of a failed creation 23 if (!this._create(options, callback)) { 24 this.failed = true; 25 } 26 }; 27 28 $.infinitescroll.defaults = { 29 loading: { 30 finished: undefined, 31 finishedMsg: "All items loaded", 32 img: "data:image/gif;base64,R0lGODlh3AATAPQeAPDy+MnQ6LW/4N3h8MzT6rjC4sTM5r/I5NHX7N7j8c7U6tvg8OLl8uXo9Ojr9b3G5MfP6Ovu9tPZ7PT1+vX2+tbb7vf4+8/W69jd7rC73vn5/O/x+K243ai02////wAAACH/C05FVFNDQVBFMi4wAwEAAAAh+QQECgD/ACwAAAAA3AATAAAF/6AnjmRpnmiqrmzrvnAsz3Rt33iu73zv/8CgcEj0BAScpHLJbDqf0Kh0Sq1ar9isdioItAKGw+MAKYMFhbF63CW438f0mg1R2O8EuXj/aOPtaHx7fn96goR4hmuId4qDdX95c4+RBIGCB4yAjpmQhZN0YGYGXitdZBIVGAsLoq4BBKQDswm1CQRkcG6ytrYKubq8vbfAcMK9v7q7EMO1ycrHvsW6zcTKsczNz8HZw9vG3cjTsMIYqQkCLBwHCgsMDQ4RDAYIqfYSFxDxEfz88/X38Onr16+Bp4ADCco7eC8hQYMAEe57yNCew4IVBU7EGNDiRn8Z831cGLHhSIgdFf9chIeBg7oA7gjaWUWTVQAGE3LqBDCTlc9WOHfm7PkTqNCh54rePDqB6M+lR536hCpUqs2gVZM+xbrTqtGoWqdy1emValeXKzggYBBB5y1acFNZmEvXAoN2cGfJrTv3bl69Ffj2xZt3L1+/fw3XRVw4sGDGcR0fJhxZsF3KtB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start: undefined 38 }, 39 state: { 40 isDuringAjax: false, 41 isInvalidPage: false,
42 isDestroyed: false, 43 isDone: false, // For when it goes all the way through the archive. 44 isPaused: false, 45 currPage: 1 46 }, 47 debug: false, 48 behavior: undefined, 49 binder: $(window), // used to cache the selector 50 nextSelector: "div#pagination a:first", 51 navSelector: "div#pagination", 52 contentSelector: null, // rename to pageFragment 53 extraScrollPx: 150, 54 itemSelector: ".post", 55 animate: false, 56 pathParse: undefined, 57 dataType: 'html', 58 appendCallback: true, 59 bufferPx: 40, 60 errorCallback: function () { }, 61 infid: 0, //Instance ID 62 pixelsFromNavToBottom: undefined, 63 path: undefined, // Either parts of a URL as an array (e.g. ["/page/", "/"] or a function that takes in the page number and returns a URL 64 prefill: false, // When the document is smaller than the window, load data until the document is larger or links are exhausted 65 maxPage: undefined // to manually control maximum page (when maxPage is undefined, maximum page limitation is not work) 66 }; 67 68 $.infinitescroll.prototype = { 69 70 /* 71 ---------------------------- 72 Private methods 73 ---------------------------- 74 */ 75 76 // Bind or unbind from scroll 77 _binding: function infscr_binding(binding) { 78 79 var instance = this, 80 opts = instance.options; 81 82 opts.v = '2.0b2.120520'; 83 84 // if behavior is defined and this function is extended, call that instead of default 85 if (!!opts.behavior && this['_binding_'+opts.behavior] !== undefined) { 86 this['_binding_'+opts.behavior].call(this); 87 return; 88 } 89 90 if (binding !== 'bind' && binding !== 'unbind') { 91 this._debug('Binding value ' + binding + ' not valid'); 92 return false; 93 } 94 95 if (binding === 'unbind') { 96 (this.options.binder).unbind('smartscroll.infscr.' + instance.options.infid); 97 } else { 98 (this.options.binder)[binding]('smartscroll.infscr.' + instance.options.infid, function () { 99 instance.scroll(); 100 }); 101 } 102 103 this._debug('Binding', binding); 104 }, 105 106 // Fundamental aspects of the plugin are initialized 107 _create: function infscr_create(options, callback) { 108 109 // Add custom options to defaults 110 var opts = $.extend(true, {}, $.infinitescroll.defaults, options); 111 this.options = opts; 112 var $window = $(window); 113 var instance = this; 114 115 // Validate selectors 116 if (!instance._validate(options)) { 117 return false; 118 } 119 120 // Validate page fragment path 121 var path = $(opts.nextSelector).attr('href'); 122 if (!path) { 123 this._debug('Navigation selector not found'); 124 return false; 125 } 126 127 // Set the path to be a relative URL from root. 128 opts.path = opts.path || this._determinepath(path); 129 130 // contentSelector is 'page fragment' option for .load() / .ajax() calls 131 opts.contentSelector = opts.contentSelector || this.element; 132 133 // loading.selector - if we want to place the load message in a specific selector, defaulted to the contentSelector 134 opts.loading.selector = opts.loading.selector || opts.contentSelector; 135 136 var ascend_loader = ($('body').hasClass('ascend') || $('body').hasClass('material')) ? '<span class="default-loading-icon spin"></span>' : ''; 137 var ascend_loader_class = ($('body').hasClass('ascend') || $('body').hasClass('material')) ? 'default_loader ' : ''; 138 139 // Define loading.msg 140 opts.loading.msg = opts.loading.msg || $('<div class="infscr-loading-wrap"><div id="infscr-loading" class='+ascend_loader_class+'><img alt="Loading..." src="' + opts.loading.img + '" /> '+ascend_loader+' <div>' + opts.loading.msgText + '</div></div></div>'); 141 142 // Preload loading.img 143 (new Image()).src = opts.loading.img; 144 145 // distance from nav links to bottom 146 // computed as: height of the document + top offset of container - top offset of nav link 147 if(opts.pixelsFromNavToBottom === undefined) { 148 opts.pixelsFromNavToBottom = $(document).height() - $(opts.navSelector).offset().top; 149 } 150 151 var self = this; 152 153 // determine loading.start actions 154 if($('.post-area.infinite_scroll').length > 0) {
155 if($('.post-area.infinite_scroll.span_9').length > 0) { 156 var $locationToAppend = '#sidebar'; 157 } else { 158 var $locationToAppend = '.post-area.infinite_scroll'; 159 } 160 } else { 161 var $locationToAppend = '.portfolio-items.infinite_scroll'; 162 } 163 opts.loading.start = opts.loading.start || function() { 164 $(opts.navSelector).hide(); 165 opts.loading.msg 166 .insertAfter($locationToAppend) 167 .show(0, $.proxy(function() { 168 this.beginAjax(opts); 169 }, self)).transition({ scale: 1, 'opacity':1,'height':60,'padding-top':35, 'padding-bottom':35 },400,'easeOutCubic'); 170 }; 171 172 // determine loading.finished actions 173 opts.loading.finished = opts.loading.finished || function() { 174 opts.loading.msg.stop().transition({ scale: 0.5, 'opacity':0 },400,'easeOutCubic'); 175 }; 176 177 // callback loading 178 opts.callback = function(instance, data, url) { 179 if (!!opts.behavior && instance['_callback_'+opts.behavior] !== undefined) { 180 instance['_callback_'+opts.behavior].call($(opts.contentSelector)[0], data, url); 181 } 182 183 if (callback) { 184 callback.call($(opts.contentSelector)[0], data, opts, url); 185 } 186 187 if (opts.prefill) { 188 $window.bind("resize.infinite-scroll", instance._prefill); 189 } 190 }; 191 192 if (options.debug) { 193 // Tell IE9 to use its built-in console 194 if (Function.prototype.bind && (typeof console === 'object' || typeof console === 'function') && typeof console.log === "object") { 195 ["log","info","warn","error","assert","dir","clear","profile","profileEnd"] 196 .forEach(function (method) { 197 console[method] = this.call(console[method], console); 198 }, Function.prototype.bind); 199 } 200 } 201 202 this._setup(); 203 204 // Setups the prefill method for use 205 if (opts.prefill) { 206 this._prefill(); 207 } 208 209 210 $('.portfolio-wrap, .post-area.masonry').css('margin-bottom',0); 211 212 // Return true to indicate successful creation 213 return true; 214 }, 215 216 _prefill: function infscr_prefill() { 217 var instance = this; 218 var $document = $(document); 219 var $window = $(window); 220 221 function needsPrefill() { 222 return ($document.height() <= $window.height()); 223 } 224 225 this._prefill = function() { 226 if (needsPrefill()) { 227 instance.scroll(); 228 } 229 230 $window.bind("resize.infinite-scroll", function() { 231 if (needsPrefill()) { 232 $window.unbind("resize.infinite-scroll"); 233 instance.scroll(); 234 } 235 }); 236 }; 237 238 // Call self after setting up the new function 239 this._prefill(); 240 }, 241 242 // Console log wrapper 243 _debug: function infscr_debug() { 244 if (true !== this.options.debug) { 245 return; 246 } 247 248 if (typeof console !== 'undefined' && typeof console.log === 'function') { 249 // Modern browsers 250 // Single argument, which is a string 251 if ((Array.prototype.slice.call(arguments)).length === 1 && typeof Array.prototype.slice.call(arguments)[0] === 'string') { 252 console.log( (Array.prototype.slice.call(arguments)).toString() ); 253 } else { 254 console.log( Array.prototype.slice.call(arguments) ); 255 } 256 } else if (!Function.prototype.bind && typeof console !== 'undefined' && typeof console.log === 'object') { 257 // IE8 258 Function.prototype.call.call(console.log, console, Array.prototype.slice.call(arguments)); 259 } 260 }, 261 262 // find the number to increment in the path. 263 _determinepath: function infscr_determinepath(path) { 264 265 var opts = this.options; 266 267 // if behavior is defined and this function is extended, call that instead of default 268 if (!!opts.behavior && this['_determinepath_'+opts.behavior] !== undefined) { 269 return this['_determinepath_'+opts.behavior].call(this,path); 270 } 271 272 if (!!opts.pathParse) { 273 274 this._debug('pathParse manual'); 275 return opts.pathParse(path, this.options.state.currPage+1); 276 277 } else if (path.match(/^(.*?)\b2\b(.*?$)/)) { 278 path = path.match(/^(.*?)\b2\b(.*?$)/).slice(1); 279 280 // if there is any 2 in the url at all. 281 } else if (path.match(/^(.*?)2(.*?$)/)) { 282 283 // page= is used in django: 284 // http://www.infinite-scroll.com/changelog/comment-page-1/#comment-127 285 if (path.match(/^(.*?page=)2(\/.*|$)/)) { 286 path = path.match(/^(.*?page=)2(\/.*|$)/).slice(1); 287 return path; 288 } 289 290 path = path.match(/^(.*?)2(.*?$)/).slice(1); 291 292 } else { 293 294 // page= is used in drupal too but second page is page=1 not page=2: 295 // thx Jerod Fritz, vladikoff 296 if (path.match(/^(.*?page=)1(\/.*|$)/)) { 297 path = path.match(/^(.*?page=)1(\/.*|$)/).slice(1); 298 return path; 299 } else { 300 this._debug('Sorry, we couldn\'t parse your Next (Previous Posts) URL. Verify your the css selector points to the correct A tag. If you still get this error: yell, scream, and kindly ask for help at infinite-scroll.com.'); 301 // Get rid of isInvalidPage to allow permalink to state 302 opts.state.isInvalidPage = true; //prevent it from running on this page. 303 } 304 } 305 this._debug('determinePath', path); 306 return path; 307 308 }, 309 310 // Custom error 311 _error: function infscr_error(xhr) { 312 313 var opts = this.options; 314 315 // if behavior is defined and this function is extended, call that instead of default 316 if (!!opts.behavior && this['_error_'+opts.behavior] !== undefined) { 317 this['_error_'+opts.behavior].call(this,xhr); 318 return; 319 } 320 321 if (xhr !== 'destroy' && xhr !== 'end') { 322 xhr = 'unknown'; 323 } 324 325 this._debug('Error', xhr); 326 327 if (xhr === 'end') { 328 this._showdonemsg(); 329 } 330 331 opts.state.isDone = true; 332 opts.state.currPage = 1; // if you need to go back to this instance
333 opts.state.isPaused = false; 334 this._binding('unbind'); 335 336 }, 337 338 // Load Callback 339 _loadcallback: function infscr_loadcallback(box, data, url) { 340 var opts = this.options, 341 callback = this.options.callback, // GLOBAL OBJECT FOR CALLBACK 342 result = (opts.state.isDone) ? 'done' : (!opts.appendCallback) ? 'no-append' : 'append', 343 frag; 344 345 // if behavior is defined and this function is extended, call that instead of default 346 if (!!opts.behavior && this['_loadcallback_'+opts.behavior] !== undefined) { 347 this['_loadcallback_'+opts.behavior].call(this,box,data); 348 return; 349 } 350 351 switch (result) { 352 case 'done': 353 this._showdonemsg(); 354 return false; 355 356 case 'no-append': 357 if (opts.dataType === 'html') { 358 data = '<div>' + data + '</div>'; 359 data = $(data).find(opts.itemSelector); 360 } 361 break; 362 363 case 'append': 364 var children = box.children(); 365 // if it didn't return anything 366 if (children.length === 0) { 367 return this._error('end'); 368 } 369 370 // use a documentFragment because it works when content is going into a table or UL 371 frag = document.createDocumentFragment(); 372 while (box[0].firstChild) { 373 frag.appendChild(box[0].firstChild); 374 } 375 376 this._debug('contentSelector', $(opts.contentSelector)[0]); 377 $(opts.contentSelector)[0].appendChild(frag); 378 // previously, we would pass in the new DOM element as context for the callback 379 // however we're now using a documentfragment, which doesn't have parents or children, 380 // so the context is the contentContainer guy, and we pass in an array 381 // of the elements collected as the first argument. 382 383 data = children.get(); 384 break; 385 } 386 387 // loadingEnd function 388 opts.loading.finished.call($(opts.contentSelector)[0],opts); 389 390 // smooth scroll to ease in the new content 391 if (opts.animate) { 392 var scrollTo = $(window).scrollTop() + $('#infscr-loading').height() + opts.extraScrollPx + 'px'; 393 $('html,body').animate({ scrollTop: scrollTo }, 800, function () { opts.state.isDuringAjax = false; }); 394 } 395 396 if (!opts.animate) { 397 // once the call is done, we can allow it again. 398 opts.state.isDuringAjax = false; 399 } 400 401 callback(this, data, url); 402 403 if (opts.prefill) { 404 this._prefill(); 405 } 406 }, 407 408 _nearbottom: function infscr_nearbottom() { 409 410 var opts = this.options, 411 pixelsFromWindowBottomToBottom = 0 + $(document).height() - (opts.binder.scrollTop()) - $(window).height(); 412 413 // if behavior is defined and this function is extended, call that instead of default 414 if (!!opts.behavior && this['_nearbottom_'+opts.behavior] !== undefined) { 415 return this['_nearbottom_'+opts.behavior].call(this); 416 } 417 418 this._debug('math:', pixelsFromWindowBottomToBottom, opts.pixelsFromNavToBottom); 419 420 // if distance remaining in the scroll (including buffer) is less than the orignal nav to bottom.... 421 return (pixelsFromWindowBottomToBottom - opts.bufferPx < opts.pixelsFromNavToBottom); 422 423 }, 424 425 // Pause / temporarily disable plugin from firing 426 _pausing: function infscr_pausing(pause) { 427 428 var opts = this.options; 429 430 // if behavior is defined and this function is extended, call that instead of default 431 if (!!opts.behavior && this['_pausing_'+opts.behavior] !== undefined) { 432 this['_pausing_'+opts.behavior].call(this,pause); 433 return; 434 } 435 436 // If pause is not 'pause' or 'resume', toggle it's value 437 if (pause !== 'pause' && pause !== 'resume' && pause !== null) { 438 this._debug('Invalid argument. Toggling pause value instead'); 439 } 440 441 pause = (pause && (pause === 'pause' || pause === 'resume')) ? pause : 'toggle'; 442 443 switch (pause) { 444 case 'pause':
445 opts.state.isPaused = true; 446 break; 447 448 case 'resume': 449 opts.state.isPaused = false; 450 break; 451 452 case 'toggle': 453 opts.state.isPaused = !opts.state.isPaused; 454 break; 455 } 456 457 this._debug('Paused', opts.state.isPaused); 458 return false; 459 460 }, 461 462 // Behavior is determined 463 // If the behavior option is undefined, it will set to default and bind to scroll 464 _setup: function infscr_setup() { 465 466 var opts = this.options; 467 468 // if behavior is defined and this function is extended, call that instead of default 469 if (!!opts.behavior && this['_setup_'+opts.behavior] !== undefined) { 470 this['_setup_'+opts.behavior].call(this); 471 return; 472 } 473 474 this._binding('bind'); 475 476 return false; 477 478 }, 479 480 // Show done message 481 _showdonemsg: function infscr_showdonemsg() { 482 483 var opts = this.options; 484 485 // if behavior is defined and this function is extended, call that instead of default 486 if (!!opts.behavior && this['_showdonemsg_'+opts.behavior] !== undefined) { 487 this['_showdonemsg_'+opts.behavior].call(this); 488 return; 489 } 490 491 492 opts.loading.msg 493 .find('img, .default-loading-icon') 494 .hide() 495 .parent() 496 .find('div').html($('#pagination').attr('data-is-text')).animate({ opacity: 1 }, 500, function () { 497 $(this).parent().delay(2100).transition({ scale: 0.4, 'opacity':0 },500,'easeOutCubic'); 498 $(this).parent().parent().delay(2100).animate({'height':'0', 'padding':0},500,'easeOutCubic'); 499 }); 500 501 502 opts.loading.msg.find('#infscr-loading').css({'height':'auto', 'width' : 'auto', 'padding' : '13px 17px' ,'background-image' : 'none', 'border-width' : '2px'}) 503 504 // user provided callback when done 505 opts.errorCallback.call($(opts.contentSelector)[0],'done'); 506 }, 507 508 // grab each selector option and see if any fail 509 _validate: function infscr_validate(opts) { 510 for (var key in opts) { 511 if (key.indexOf && key.indexOf('Selector') > -1 && $(opts[key]).length === 0) { 512 this._debug('Your ' + key + ' found no elements.'); 513 return false; 514 } 515 } 516 517 return true; 518 }, 519 520 /* 521 ---------------------------- 522 Public methods 523 ---------------------------- 524 */ 525 526 // Bind to scroll 527 bind: function infscr_bind() { 528 this._binding('bind'); 529 }, 530 531 // Destroy current instance of plugin 532 destroy: function infscr_destroy() { 533 this.options.state.isDestroyed = true; 534 this.options.loading.finished(); 535 return this._error('destroy'); 536 }, 537 538 // Set pause value to false 539 pause: function infscr_pause() { 540 this._pausing('pause'); 541 }, 542 543 // Set pause value to false 544 resume: function infscr_resume() { 545 this._pausing('resume'); 546 }, 547 548 beginAjax: function infscr_ajax(opts) { 549 var instance = this, 550 path = opts.path, 551 box, desturl, method, condition; 552 553 // increment the URL bit. e.g. /page/3/ 554 opts.state.currPage++; 555 556 // Manually control maximum page 557 if ( opts.maxPage != undefined && opts.state.currPage > opts.maxPage ){ 558 this.destroy(); 559 return; 560 } 561 562 // if we're dealing with a table we can't use DIVs 563 box = $(opts.contentSelector).is('table') ? $('<tbody/>') : $('<div/>'); 564 565 desturl = (typeof path === 'function') ? path(opts.state.currPage) : path.join(opts.state.currPage); 566 instance._debug('heading into ajax', desturl); 567 568 method = (opts.dataType === 'html' || opts.dataType === 'json' ) ? opts.dataType : 'html+callback'; 569 if (opts.appendCallback && opts.dataType === 'html') { 570 method += '+callback'; 571 } 572 573 switch (method) { 574 case 'html+callback': 575 instance._debug('Using HTML via .load() method'); 576 box.load(desturl + ' ' + opts.itemSelector, undefined, function infscr_ajax_callback(responseText) { 577 instance._loadcallback(box, responseText, desturl); 578 }); 579 580 break; 581
582 case 'html': 583 instance._debug('Using ' + (method.toUpperCase()) + ' via $.ajax() method'); 584 $.ajax({ 585 // params 586 url: desturl, 587 dataType: opts.dataType, 588 complete: function infscr_ajax_callback(jqXHR, textStatus) { 589 condition = (typeof (jqXHR.isResolved) !== 'undefined') ? (jqXHR.isResolved()) : (textStatus === "success" || textStatus === "notmodified"); 590 if (condition) { 591 instance._loadcallback(box, jqXHR.responseText, desturl); 592 } else { 593 instance._error('end'); 594 } 595 } 596 }); 597 598 break; 599 case 'json': 600 instance._debug('Using ' + (method.toUpperCase()) + ' via $.ajax() method'); 601 $.ajax({ 602 dataType: 'json', 603 type: 'GET', 604 url: desturl, 605 success: function (data, textStatus, jqXHR) { 606 condition = (typeof (jqXHR.isResolved) !== 'undefined') ? (jqXHR.isResolved()) : (textStatus === "success" || textStatus === "notmodified"); 607 if (opts.appendCallback) { 608 // if appendCallback is true, you must defined template in options. 609 // note that data passed into _loadcallback is already an html (after processed in opts.template(data)). 610 if (opts.template !== undefined) { 611 var theData = opts.template(data); 612 box.append(theData); 613 if (condition) { 614 instance._loadcallback(box, theData); 615 } else { 616 instance._error('end'); 617 } 618 } else { 619 instance._debug("template must be defined."); 620 instance._error('end'); 621 } 622 } else { 623 // if appendCallback is false, we will pass in the JSON object. you should handle it yourself in your callback. 624 if (condition) { 625 instance._loadcallback(box, data, desturl); 626 } else { 627 instance._error('end'); 628 } 629 } 630 }, 631 error: function() { 632 instance._debug("JSON ajax request failed."); 633 instance._error('end'); 634 } 635 }); 636 637 break; 638 } 639 }, 640 641 // Retrieve next set of content items 642 retrieve: function infscr_retrieve(pageNum) { 643 pageNum = pageNum || null; 644 645 var instance = this, 646 opts = instance.options; 647 648 // if behavior is defined and this function is extended, call that instead of default 649 if (!!opts.behavior && this['retrieve_'+opts.behavior] !== undefined) { 650 this['retrieve_'+opts.behavior].call(this,pageNum); 651 return; 652 } 653 654 // for manual triggers, if destroyed, get out of here 655 if (opts.state.isDestroyed) { 656 this._debug('Instance is destroyed'); 657 return false; 658 } 659 660 // we dont want to fire the ajax multiple times 661 opts.state.isDuringAjax = true; 662 663 opts.loading.start.call($(opts.contentSelector)[0],opts); 664 }, 665 666 // Check to see next page is needed 667 scroll: function infscr_scroll() { 668 669 var opts = this.options, 670 state = opts.state; 671 672 // if behavior is defined and this function is extended, call that instead of default 673 if (!!opts.behavior && this['scroll_'+opts.behavior] !== undefined) { 674 this['scroll_'+opts.behavior].call(this); 675 return; 676 } 677 678 if (state.isDuringAjax || state.isInvalidPage || state.isDone || state.isDestroyed || state.isPaused) { 679 return; 680 } 681 682 if (!this._nearbottom()) { 683 return; 684 } 685 686 this.retrieve(); 687 688 }, 689 690 // Toggle pause value 691 toggle: function infscr_toggle() { 692 this._pausing(); 693 }, 694 695 // Unbind from scroll 696 unbind: function infscr_unbind() { 697 this._binding('unbind'); 698 }, 699 700 // update options 701 update: function infscr_options(key) { 702 if ($.isPlainObject(key)) { 703 this.options = $.extend(true,this.options,key); 704 } 705 } 706 }; 707 708 709 /* 710 ---------------------------- 711 Infinite Scroll function 712 ---------------------------- 713 714 Borrowed logic from the following... 715 716 jQuery UI 717 - https://github.com/jquery/jquery-ui/blob/master/ui/jquery.ui.widget.js 718 719 jCarousel 720 - https://github.com/jsor/jcarousel/blob/master/lib/jquery.jcarou
720sel.js 721 722 Masonry 723 - https://github.com/desandro/masonry/blob/master/jquery.masonry.js 724 725*/ 726 727 $.fn.infinitescroll = function infscr_init(options, callback) { 728 729 730 var thisCall = typeof options; 731 732 switch (thisCall) { 733 734 // method 735 case 'string': 736 var args = Array.prototype.slice.call(arguments, 1); 737 738 this.each(function () { 739 var instance = $.data(this, 'infinitescroll'); 740 741 if (!instance) { 742 // not setup yet 743 // return $.error('Method ' + options + ' cannot be called until Infinite Scroll is setup'); 744 return false; 745 } 746 747 if (!$.isFunction(instance[options]) || options.charAt(0) === "_") { 748 // return $.error('No such method ' + options + ' for Infinite Scroll'); 749 return false; 750 } 751 752 // no errors! 753 instance[options].apply(instance, args); 754 }); 755 756 break; 757 758 // creation 759 case 'object': 760 761 this.each(function () { 762 763 var instance = $.data(this, 'infinitescroll'); 764 765 if (instance) { 766 767 // update options of current instance 768 instance.update(options); 769 770 } else { 771 772 // initialize new instance 773 instance = new $.infinitescroll(options, callback, this); 774 775 // don't attach if instantiation failed 776 if (!instance.failed) { 777 $.data(this, 'infinitescroll', instance); 778 } 779 780 } 781 782 }); 783 784 break; 785 786 } 787 788 return this; 789 }; 790 791 792 793 /* 794 * smartscroll: debounced scroll event for jQuery * 795 * https://github.com/lukeshumard/smartscroll 796 * Based on smartresize by @louis_remi: https://github.com/lrbabe/jquery.smartresize.js * 797 * Copyright 2011 Louis-Remi & Luke Shumard * Licensed under the MIT license. * 798 */ 799 800 var event = $.event, 801 scrollTimeout; 802 803 event.special.smartscroll = { 804 setup: function () { 805 $(this).bind("scroll", event.special.smartscroll.handler); 806 }, 807 teardown: function () { 808 $(this).unbind("scroll", event.special.smartscroll.handler); 809 }, 810 handler: function (event, execAsap) { 811 // Save the context 812 var context = this, 813 args = arguments; 814 815 // set correct event type 816 event.type = "smartscroll"; 817 818 if (scrollTimeout) { clearTimeout(scrollTimeout); } 819 scrollTimeout = setTimeout(function () { 820 $(context).trigger('smartscroll', args); 821 }, execAsap === "execAsap" ? 0 : 100); 822 } 823 }; 824 825 $.fn.smartscroll = function (fn) { 826 return fn ? this.bind("smartscroll", fn) : this.trigger("smartscroll", ["execAsap"]); 827 }; 828 829 830})(window, jQuery);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.