PageSourceSearch

https://www.vtc.edu.hk/.resources/templates/webresources/dist/js/jquery.scrollend.min.js

js vtc.edu.hk collected 2026-09-24 08:53:17 UTC 2,491 bytes, 16 lines download raw bytes

1/*!
2 * jQuery scrollend - A jQuery plugin that allows for window scroll-start event handling.
3 * 
4 * Copyright (c) 2015 Erik Nielsen
5 * 
6 * Licensed under the MIT license:
7 *    http://www.opensource.org/licenses/mit-license.php
8 * 
9 * Project home:
10 *    https://nielse63.github.io/jquery.scrollend/
11 * 
12 * Version:  0.2.0
13 * 
14 */
15
16!function(a){var b=window.Chicago||{utils:{now:Date.now||function(){return(new Date).getTime()},uid:function(a){return(a||"id")+b.utils.now()+"RAND"+Math.ceil(1e5*Math.random())},is:{number:function(a){return!isNaN(parseFloat(a))&&isFinite(a)},fn:function(a){return"function"==typeof a},object:function(a){return"[object Object]"===Object.prototype.toString.call(a)}},debounce:function(a,b,c){var d;return function(){var e=this,f=arguments,g=function(){d=null,c||a.apply(e,f)},h=c&&!d;d&&clearTimeout(d),d=setTimeout(g,b),h&&a.apply(e,f)}}},$:window.jQuery||null};if("function"==typeof define&&define.amd&&define("chicago",function(){return b.load=function(a,c,d,e){var f=a.split(","),g=[],h=(e.config&&e.config.chicago&&e.config.chicago.base?e.config.chicago.base:"").replace(/\/+$/g,"");if(!h)throw new Error("Please define base path to jQuery scrollend in the requirejs config.");for(var i=0;i<f.length;){var j=f[i].replace(/\./g,"/");g.push(h+"/"+j),i+=1}c(g,function(){d(b)})},b}),window&&window.jQuery)return a(b,window,window.document);if(!window.jQuery)throw new Error("jQuery scrollend requires jQuery")}(function(a,b,c){a.$win=a.$(b),a.$doc=a.$(c),a.events||(a.events={}),a.events.scrollend={defaults:{delay:150},setup:function(b){var c,d=arguments,e={delay:a.$.event.special.scrollend.defaults.delay};a.utils.is.fn(d[0])?c=d[0]:a.utils.is.number(d[0])?e.delay=d[0]:a.utils.is.object(d[0])&&(e=a.$.extend({},e,d[0]));var f=a.utils.uid("scrollend"),g=a.$.extend({delay:a.$.event.special.scrollend.defaults.delay},e),h=null,i=function(b){h?clearTimeout(h):(b.type="scrollend.chicago.dom",a.$(b.target).trigger("scrollend",b)),h=setTimeout(function(){h=null},g.delay)};return a.$(this).data("chicago.event.scrollend.uid",f),a.$(this).on("scroll",a.utils.debounce(i,100)).data(f,i)},teardown:function(){var b=a.$(this).data("chicago.event.scrollend.uid");return a.$(this).off("scroll",a.$(this).data(b)),a.$(this).removeData(b),a.$(this).removeData("chicago.event.scrollend.uid")}},function(){a.$.event.special.scrollend=a.events.scrollend,a.$.fn.scrollend=function(b,c){return this.each(function(){a.$(this).on("scrollend",b,c)})}}()});

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.