vendor: 4,443 bytes, lines 1-118
1/** 2 * Copyright (c) 2007-2015 Ariel Flesler - aflesler<a>gmail<d>com | http://flesler.blogspot.com 3 * Licensed under MIT 4 * @author Ariel Flesler 5 * @version 2.1.1 6 */ 7;(function(f) { 8 "use strict"; 9 "function" === typeof define && define.amd ? define(["jquery"], f) : "undefined" !== typeof module && module.exports ? module.exports = f(require("jquery")) : f(jQuery) 10})(function($) { 11 "use strict"; 12 function n(a) { 13 return !a.nodeName || -1 !== $.inArray(a.nodeName.toLowerCase(), ["iframe", "#document", "html", "body"]) 14 } 15 function h(a) { 16 return $.isFunction(a) || $.isPlainObject(a) ? a : { 17 top: a, 18 left: a 19 } 20 } 21 var p = $.scrollTo = function(a, d, b) { 22 return $(window).scrollTo(a, d, b) 23 } 24 ; 25 p.defaults = { 26 axis: "xy", 27 duration: 0, 28 limit: !0 29 }; 30 $.fn.scrollTo = function(a, d, b) { 31 "object" === typeof d && (b = d, 32 d = 0); 33 "function" === typeof b && (b = { 34 onAfter: b 35 }); 36 "max" === a && (a = 9E9); 37 b = $.extend({}, p.defaults, b); 38 d = d || b.duration; 39 var u = b.queue && 1 < b.axis.length; 40 u && (d /= 2); 41 b.offset = h(b.offset); 42 b.over = h(b.over); 43 return this.each(function() { 44 function k(a) { 45 var k = $.extend({}, b, { 46 queue: !0, 47 duration: d, 48 complete: a && function() { 49 a.call(q, e, b) 50 } 51 }); 52 r.animate(f, k) 53 } 54 if (null !== a) { 55 var l = n(this), q = l ? this.contentWindow || window : this, r = $(q), e = a, f = {}, t; 56 switch (typeof e) { 57 case "number": 58 case "string": 59 if (/^([+-]=?)?\d+(\.\d+)?(px|%)?$/.test(e)) { 60 e = h(e); 61 break 62 } 63 e = l ? $(e) : $(e, q); 64 if (!e.length) 65 return; 66 case "object": 67 if (e.is || e.style) 68 t = (e = $(e)).offset() 69 } 70 var v = $.isFunction(b.offset) && b.offset(q, e) || b.offset; 71 $.each(b.axis.split(""), function(a, c) { 72 var d = "x" === c ? "Left" : "Top" 73 , m = d.toLowerCase() 74 , g = "scroll" + d 75 , h = r[g]() 76 , n = p.max(q, c); 77 t ? (f[g] = t[m] + (l ? 0 : h - r.offset()[m]), 78 b.margin && (f[g] -= parseInt(e.css("margin" + d), 10) || 0, 79 f[g] -= parseInt(e.css("border" + d + "Width"), 10) || 0), 80 f[g] += v[m] || 0, 81 b.over[m] && (f[g] += e["x" === c ? "width" : "height"]() * b.over[m])) : (d = e[m], 82 f[g] = d.slice && "%" === d.slice(-1) ? parseFloat(d) / 100 * n : d); 83 b.limit && /^\d+$/.test(f[g]) && (f[g] = 0 >= f[g] ? 0 : Math.min(f[g], n)); 84 !a && 1 < b.axis.length && (h === f[g] ? f = {} : u && (k(b.onAfterFirst), 85 f = {})) 86 }); 87 k(b.onAfter) 88 } 89 }) 90 } 91 ; 92 p.max = function(a, d) { 93 var b = "x" === d ? "Width" : "Height" 94 , h = "scroll" + b; 95 if (!n(a)) 96 return a[h] - $(a)[b.toLowerCase()](); 97 var b = "client" + b 98 , k = a.ownerDocument || a.document 99 , l = k.documentElement 100 , k = k.body; 101 return Math.max(l[h], k[h]) - Math.min(l[b], k[b]) 102 } 103 ; 104 $.Tween.propHooks.scrollLeft = $.Tween.propHooks.scrollTop = { 105 get: function(a) { 106 return $(a.elem)[a.prop]() 107 }, 108 set: function(a) { 109 var d = this.get(a); 110 if (a.options.interrupt && a._last && a._last !== d) 111 return $(a.elem).stop(); 112 var b = Math.round(a.now); 113 d !== b && ($(a.elem)[a.prop](b), 114 a._last = this.get(a)) 115 } 116 }; 117 return p 118});
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.