1document.getElementById('defaultOpen').click(); 2 3function showContent(evt, tabName) { 4 var i, tabcontent, tablinks; 5 tabcontent = document.getElementsByClassName("tab-content"); 6 for (i = 0; i < tabcontent.length; i++) { 7 tabcontent[i].style.display = "none"; 8 } 9 tablinks = document.getElementsByClassName("tab-item"); 10 for (i = 0; i < tablinks.length; i++) { 11 tablinks[i].className = tablinks[i].className.replace(" active", ""); 12 } 13 document.getElementById(tabName).style.display = "block"; 14 evt.currentTarget.className += " active"; 15} 16 17$(document).ready(function() { 18 // inViewport jQuery plugin 19 // https://stackoverflow.com/a/26831113/383904 20 $(function($, win) { 21 $.fn.inViewport = function(cb) { 22 return this.each(function(i, el) { 23 function visPx() { 24 var H = $(this).height(), 25 r = el.getBoundingClientRect(), 26 t = r.top, 27 b = r.bottom; 28 return cb.call(el, Math.max(0, t > 0 ? H - t : (b < H ? b : H))); 29 } 30 visPx(); 31 $(win).on("resize scroll", visPx); 32 }); 33 }; 34 }(jQuery, window)); 35 36 jQuery(function($) { // DOM ready and $ in scope 37 $(".anim-count").inViewport(function(px) { // Make use of the `px` argument!!! 38 // if element entered V.port ( px>0 ) and 39 // if prop initNumAnim flag is not yet set 40 // = Animate numbers 41 if (px > 0 && !this.initNumAnim) { 42 this.initNumAnim = true; // Set flag to true to prevent re-running the same animation 43 $(this).prop('Counter', 0).animate({ 44 Counter: $(this).text() 45 }, { 46 duration: 2000, 47 step: function(now) { 48 $(this).text(Math.ceil(now)); 49 } 50 }); 51 } 52 }); 53 54 }); 55});
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.