1(function ($) { 2 'use strict'; 3 // auto hide top nav on scroll via bootstrap-autohidingnavbar plugin 4 function hideDetect() { 5 $("div.jumbotron-header").autoHidingNavbar(); 6 if ($(window).width() > 1100) { 7 // Keep menu on big screens 8 $('div.jumbotron-header').autoHidingNavbar('setDisableAutohide', true); 9 $("div.jumbotron-header").autoHidingNavbar('show'); 10 } else { 11 // Auto-hide menu on tiny screens 12 $('div.jumbotron-header').autoHidingNavbar('setDisableAutohide', false); 13 } 14 } 15 if (!$.fn.autoHidingNavbar) { 16 $.ajax({ 17 url: "https://cdnjs.cloudflare.com/ajax/libs/bootstrap-autohidingnavbar/4.0.0/jquery.bootstrap-autohidingnavbar.min.js", 18 dataType: "script", 19 cache: true, 20 success: function () { 21 // console.log("load bootstrap-autohidingnavbar plugin successfully"); 22 $(function () { 23 // Re-launch dection in window resized 24 $(window).resize(function () { 25 hideDetect(); 26 }); 27 //autohide top nav on scroll 28 hideDetect(); 29 }); 30 } 31 }); 32 } else { 33 $(function () { 34 // Re-launch dection in window resized 35 $(window).resize(function () { 36 hideDetect(); 37 }); 38 // auto hide top nav on scroll 39 hideDetect(); 40 }); 41 } 42 $(function () { 43 /* workaround: rollback initial value in custom.css */ 44 $('.jumbotron-footer div.panel').attr("style", "max-height: 0px; transition: max-height 0.2s ease-out;"); 45 46 $('.jumbotron-footer .accordion').click(function (e) { 47 e.preventDefault(); // need to prevent trigger form postback! 48 e.stopPropagation(); 49 $(this).toggleClass('active'); 50 $(this).next('.panel').each(function (i, elem) { 51 $(elem).toggleClass('active'); 52 if (parseInt(elem.style.maxHeight) !== 0) { 53 elem.style.maxHeight = 0; 54 } else { 55 elem.style.maxHeight = elem.scrollHeight + 'px'; 56 } 57 }); 58 }); 59 }); 60}(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.