1$(document).ready(function() { 2 // Remove width and height of image tags 3 $('img').each(function(){ 4 $(this).removeAttr('width'); 5 $(this).removeAttr('height'); 6 }); 7 8 $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { 9 event.preventDefault(); 10 event.stopPropagation(); 11 $(this).parent().siblings().removeClass('open'); 12 $(this).parent().toggleClass('open'); 13 }); 14 15 $("#transition-timer-carousel").on("slide.bs.carousel", function(event) { 16 $(".transition-timer-carousel-progress-bar", this) 17 .removeClass("animate").css("width", "0%"); 18 }).on("slide.bs.carousel", function(event) { 19 $(".transition-timer-carousel-progress-bar", this) 20 .addClass("animate").css("width", "100%"); 21 }); 22 23 $(".transition-timer-carousel-progress-bar", "#transition-timer-carousel").css("width", "100%"); 24 25 // Font Size Changer 26 $('#fontSizeChange').click(function () { 27 if( $(this).hasClass('changed') ) { 28 modifyFontSize('decrease'); 29 $(this).removeClass('changed'); 30 } else { 31 modifyFontSize('increase'); 32 $(this).addClass('changed'); 33 } 34 }); 35 36 // Nav icon change 37 $('.navbar-toggle').on('click', function(){ 38 if($(this).hasClass('nav-open')) { 39 $(this).removeClass('nav-open'); 40 }else { 41 $(this).addClass('nav-open'); 42 } 43 }); 44 45 // Lightbox 46 if($('.lightbox').length) { 47 $('.lightbox').magnificPopup({ 48 gallery: { 49 enabled: true 50 }, 51 type:'image' 52 }); 53 } 54 55 /** 56 * scrolled navigation 57 */ 58 // scrolled navigation START 59 var $menu = $('.responsive-header'); 60 var stickyClass = 'has-scrolled'; 61 62 63 function toggleStickyNav() { 64 if ($(window).scrollTop() > 20) { 65 $menu.addClass(stickyClass); 66 } else { 67 $menu.removeClass(stickyClass); 68 } 69 } 70 71 document.onscroll = toggleStickyNav; 72 // scrolled navigation END 73 74 // sibling nav START 75 var $siblingNav = $("<div class='section-sibling-nav'></div>"); 76 $siblingNav.insertAfter(".section-breadcrumb"); 77 78 var $currentActive = $("#myNavbar > ul > .active"); 79 var $currentNavigation = $currentActive.parent(); 80 81 $("#myNavbar .active > ul").each(function(index){ 82 var $newNav = $(this).clone(); 83 84 $newNav.find("ul").remove(); 85 86 $newNav.removeClass("dropdown-menu").find(".dropdown-menu").removeClass("dropdown-menu"); 87 $newNav.removeClass("dropdown-submenu").find(".dropdown-submenu").removeClass("dropdown-submenu"); 88 $newNav.find('.navigation--level-3').remove(); 89 90 $newNav.appendTo($siblingNav); 91 console.log($newNav); 92 }); 93 // sibling nav END 94}); 95 96function modifyFontSize(flag) { 97 var pfontSize = parseInt($(".content-area p").css("font-size")); 98 var divfontSize = parseInt($(".content-area div").css("font-size")); 99 var afontSize = parseInt($(".content-area a").css("font-size")); 100 var h1fontSize = parseInt($(".content-area h1").css("font-size")); 101 var h2fontSize = parseInt($(".content-area h2").css("font-size")); 102 var h3fontSize = parseInt($(".content-area h3").css("font-size")); 103 var h4fontSize = parseInt($(".content-area h4").css("font-size")); 104 var h5fontSize = parseInt($(".content-area h5").css("font-size")); 105 var ulfontSize = parseInt($(".content-area ul").css("font-size")); 106 var lifontSize = parseInt($(".content-area ul li").css("font-size")); 107 var spanfontSize = parseInt($(".content-area span").css("font-size")); 108 var bfontSize = parseInt($(".content-area strong, .content-area b").css("font-size")); 109 110 if (flag == 'increase') { 111 pfontSize += 3; 112 divfontSize += 3; 113 afontSize += 3; 114 h1fontSize += 3; 115 h2fontSize += 3; 116 h3fontSize += 3; 117 h4fontSize += 3; 118 h5fontSize += 3; 119 ulfontSize += 3; 120 bfontSize += 3; 121 lifontSize += 3; 122 spanfontSize += 3; 123 } else { 124 pfontSize -= 3; 125 divfontSize -= 3; 126 afontSize -= 3; 127 h1fontSize -= 3; 128 h2fontSize -= 3; 129 h3fontSize -= 3; 130 h4fontSize -= 3; 131 h5fontSize -= 3; 132 ulfontSize -= 3; 133 bfontSize -= 3; 134 lifontSize -= 3; 135 spanfontSize -= 3; 136 } 137 138 $(".content-area p").css({'font-size': pfontSize}); 139 $(".content-area div").css({'font-size': divfontSize}); 140 $(".content-area a").css({'font-size': afontSize}); 141 $(".content-area h1").css({'font-size': h1fontSize}); 142 $(".content-area h2").css({'font-size': h2fontSize}); 143 $(".content-area h3").css({'font-size': h3fontSize}); 144 $(".content-area h4").css({'font-size': h4fontSize}); 145 $(".content-area h5").css({'font-size': h5fontSize}); 146 $(".content-area ul").css({'font-size': ulfontSize}); 147 $(".content-area ul li").css({'font-size': ulfontSize}); 148 $(".content-area span").css({'font-size': spanfontSize}); 149 $(".content-area strong, .content-area b").css({'font-size': bfontSize}); 150}
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.