1var ImageSlide = function(e) { 2 this.project = W(e.project), 3 this.content = this.project.query(e.content), 4 this.tigger = e.tigger ? this.project.query(e.tigger) : null, 5 this.watch = e.watch ? this.project.query(e.watch) : null, 6 this.dot = e.dot ? this.project.query(e.dot) : null, 7 this.isAuto = e.auto || !0, 8 this.hide = e.hide && !0, 9 this.init() 10}; 11ImageSlide.prototype.init = function() { 12 this.register(), 13 this.isAuto && this.auto() 14}, 15ImageSlide.prototype.register = function() { 16 var e = this; 17 this.tigger && this.tigger.forEach(function(t, n) { 18 W(t).on("mouseover", 19 function() { 20 return e.stop(), 21 e.show(n), 22 !1 23 }) 24 }), 25 this.dot && this.dot.forEach(function(t, n) { 26 W(t).on("click", 27 function() { 28 return e.stop(), 29 e.show(n), 30 !1 31 }), 32 W(t).on("mouseover", 33 function() { 34 return e.stop(), 35 e.show(n), 36 !1 37 }) 38 }), 39 this.watch && this.watch.forEach(function(t, n) { 40 W(t).on("mouseup", 41 function() { 42 e.stop(), 43 this.className += " down" 44 }), 45 W(t).on("mousedown", 46 function() { 47 e.stop(), 48 this.className = this.className.replace("down", "") 49 }), 50 W(t).on("mouseover", 51 function() { 52 W(this).removeClass("down") 53 }), 54 W(t).on("mouseout", 55 function() { 56 W(this).addClass("down") 57 }), 58 W(t).on("click", 59 function() { 60 var t = e.index(); 61 this.className.indexOf("pre") >= 0 && (t = t - 1 < 0 ? e.content.length - 1 : t - 1), 62 this.className.indexOf("next") >= 0 && (t = t + 1 > e.content.length - 1 ? 0 : t + 1), 63 e.show(t) 64 }) 65 }), 66 this.project.on("mouseenter", 67 function() { 68 e.tigger && e.hide && e.tigger.css("display", ""), 69 e.watch && e.hide && e.watch.css("display", "inline-block"), 70 e.stop() 71 }), 72 this.project.on("mouseleave", 73 function() { 74 e.tigger && e.hide && e.tigger.css("display", "none"), 75 e.watch && e.hide && e.watch.css("display", "none"), 76 e.auto() 77 }) 78}, 79ImageSlide.prototype.index = function() { 80 var e = 0, 81 t = this.content; 82 for (var n = 0, 83 r = t.length; n < r; n++) t[n].className.indexOf("current") > -1 && (e = n); 84 return e 85}, 86ImageSlide.prototype.auto = function() { 87 var e = this; 88 this.timer = setInterval(function() { 89 var t = e.index(); 90 t = t >= e.content.length - 1 ? 0 : t + 1, 91 e.show(t) 92 }, 93 5e3) 94}, 95ImageSlide.prototype.stop = function() { 96 this.timer && clearInterval(this.timer) 97}, 98ImageSlide.prototype.show = function(e) { 99 this.tigger && this.tigger.addClass && this.tigger.removeClass("current").item(e).addClass("current"), 100 this.dot && this.dot.addClass && this.dot.removeClass("current").item(e).addClass("current"), 101 this.content && this.content.addClass && (this.content.filter(".current").removeClass("current"), this.content.item(e).addClass("current")) 102};
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.