1(function ($) { 2 "use strict"; 3 4 var $sliders = $('input[type="range"]'); 5 6 if (!$sliders.length) { 7 return; 8 } 9 10 $sliders.rangeslider({ 11 polyfill: false, 12 onInit: function () { 13 updateHandle( 14 $(".rangeslider__handle", this.range)[0], 15 addCommas(this.value) 16 ); 17 } 18 }).on("input", function (e) { 19 updateHandle( 20 $(".rangeslider__handle", e.target.nextSibling)[0], 21 addCommas(this.value) 22 ); 23 }); 24 25 function updateHandle(handle, value) { 26 if (handle) { 27 handle.textContent = value; 28 } 29 } 30 31 function addCommas(value) { 32 var nStr = String(value); 33 var parts = nStr.split("."); 34 var x1 = parts[0]; 35 var x2 = parts.length > 1 ? "." + parts[1] : ""; 36 var rgx = /(\d+)(\d{3})/; 37 38 while (rgx.test(x1)) { 39 x1 = x1.replace(rgx, "$1,$2"); 40 } 41 42 return x1 + x2; 43 } 44})(jQuery);
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.