vendor: 1,600 bytes, lines 1-28
1/* Waypoints Sticky Element Shortcut - 4.0.1 || Copyright © 2011-2016 Caleb Troughton || Licensed under the MIT license. || https://github.com/imakewebthings/waypoints/blob/master/licenses.txt*/ ! function() { 2 "use strict"; 3 4 function t(s) { 5 this.options = e.extend({}, i.defaults, t.defaults, s), this.element = this.options.element, this.$element = e(this.element), this.createWrapper(), this.createWaypoint() 6 } 7 var e = window.jQuery, 8 i = window.Waypoint; 9 t.prototype.createWaypoint = function() { 10 var t = this.options.handler; 11 this.waypoint = new i(e.extend({}, this.options, { 12 element: this.wrapper, 13 handler: e.proxy(function(e) { 14 var i = this.options.direction.indexOf(e) > -1, 15 s = i ? this.$element.outerHeight(!0) : ""; 16 this.$wrapper.height(s), this.$element.toggleClass(this.options.stuckClass, i), t && t.call(this, e) 17 }, this) 18 })) 19 }, t.prototype.createWrapper = function() { 20 this.options.wrapper && this.$element.wrap(this.options.wrapper), this.$wrapper = this.$element.parent(), this.wrapper = this.$wrapper[0] 21 }, t.prototype.destroy = function() { 22 this.$element.parent()[0] === this.wrapper && (this.waypoint.destroy(), this.$element.removeClass(this.options.stuckClass), this.options.wrapper && this.$element.unwrap()) 23 }, t.defaults = { 24 wrapper: '<div class="sticky-wrapper" />', 25 stuckClass: "is-fixed", 26 direction: "down right" 27 }, i.Sticky = t 28}();
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.