1/*! iOSList - v2.0.0 - * https://brianhadaway.github.io/iOSList 2 * Copyright (c) 2014 Brian Hadaway; Licensed MIT */ 3/* Classes Edited By Pages - Revox Pvt Ltd */ 4! function (a) { 5 var b = function (b, c) { 6 this.$elem = a(b), this.$elem.data("instance", this), this.init(c) 7 }; 8 b.prototype = { 9 defaults: { 10 classes: { 11 animated: "list-view-animated", 12 container: "list-view-wrapper", 13 hidden: "list-view-hidden", 14 stationaryHeader: "list-view-fake-header" 15 }, 16 selectors: { 17 groupContainer: ".list-view-group-container", 18 groupHeader: ".list-view-group-header", 19 stationaryHeader: "h2" 20 } 21 }, 22 init: function (b) { 23 var c = this, 24 d = navigator.userAgent.match(/ipad|iphone|ipod/gi) ? !0 : !1; 25 this.options = a.extend(!0, {}, this.defaults, b || {}), this.elems = [], this.$elem.addClass("list-view"), this.$elem.children().wrapAll(["<div class='", this.options.classes.container, "' data-ios='", d, "'></div>"].join("")), this.$elem.prepend(["<", this.options.selectors.stationaryHeader, "/>"].join("")), this.$listWrapper = this.$elem.find("." + this.options.classes.container), this.$fakeHeader = this.$elem.find(this.options.selectors.stationaryHeader).eq(0), this.$fakeHeader.addClass(this.options.classes.stationaryHeader), this.$elem.find(this.options.selectors.groupContainer).each(function (a) { 26 var b = c.$elem.find(c.options.selectors.groupContainer).eq(a), 27 d = b.find(c.options.selectors.groupHeader).eq(0), 28 e = b.height(), 29 f = b.position().top; 30 c.elems.push({ 31 list: b, 32 header: d, 33 listHeight: e, 34 headerText: d.text(), 35 headerHeight: d.outerHeight(), 36 listOffset: f, 37 listBottom: e + f 38 }) 39 }), this.$fakeHeader.text(this.elems[0].headerText), this.$listWrapper.scroll(function () { 40 c.testPosition() 41 }) 42 }, 43 testPosition: function () { 44 for (var b, c, d, e = this.$listWrapper.scrollTop(), f = 0; this.elems[f].listOffset - e <= 0 && (b = this.elems[f], d = b.listBottom - e, d < -b.headerHeight && (c = b), f++, !(f >= this.elems.length));); 45 0 > d && d > -b.headerHeight ? (this.$fakeHeader.addClass(this.options.classes.hidden), a(b.list).addClass(this.options.classes.animated)) : (this.$fakeHeader.removeClass(this.options.classes.hidden), b && a(b.list).removeClass(this.options.classes.animated)), b && this.$fakeHeader.text(b.headerText) 46 } 47 }, a.fn.ioslist = function (c, d) { 48 return this.each("string" == typeof c ? function () { 49 a(this).data("instance")[c](d) 50 } : function () { 51 new b(this, c) 52 }) 53 } 54}(jQuery, window, document);
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.