1$( document ).ready(function() { 2 3 $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { 4 // Avoid following the href location when clicking 5 event.preventDefault(); 6 // Avoid having the menu to close when clicking 7 event.stopPropagation(); 8 9 // If a menu is already open we close it 10 $('ul.dropdown-menu [data-toggle=dropdown]').parent().removeClass('open'); 11 12 // opening the one you clicked on 13 $(this).parent().addClass('open'); 14 15 }); 16 17}); 18 19// When the user scrolls down 20px from the top of the document, show the button 20window.onscroll = function() { scrollFunction() }; 21 22function scrollFunction() { 23 if (window.pageYOffset || document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) { 24 document.getElementById("myBtn").style.display = "block"; 25 } else { 26 document.getElementById("myBtn").style.display = "none"; 27 } 28} 29 30// When the user clicks on the button, scroll to the top of the document 31function topFunction() { 32 document.body.scrollTop = 0; // For Safari 33 document.documentElement.scrollTop = 0; // For Firefox, IE and Opera 34 window.scrollTo(0,0); 35 36}
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.