1(function ($) { 2 "use strict"; 3 //Js code for search box 4 5 $(".first_click").on("click", function () { 6 $(".search-box-text").addClass("search_box"); 7 $(".search-wrapper").addClass("hide-show"); 8 $(".search-box-text").addClass("SlideUpIn"); 9 $(".search-box-text").removeClass("SlideDownOut"); 10 }); 11 $(".second_click").on("click", function () { 12 $(".search-box-text").removeClass("search_box"); 13 $(".search-wrapper").removeClass("hide-show"); 14 $(".search-box-text").removeClass("SlideUpIn"); 15 $(".search-box-text").addClass("SlideDownOut"); 16 }); 17 18 19 20 $(window).on('scroll', function () { 21 if ($(this).scrollTop > 100) { 22 $('.main-navigation').addClass('affix'); 23 } 24 else { 25 $('.main-navigation').removeClass('affix'); 26 } 27 }); 28 /* ========== Menu icon color ========== */ 29 $('.main-menu-icon').css('color', function () { 30 var iconColorAttr = $(this).data('fa-color'); 31 return iconColorAttr; 32 }); 33 /* ========== Horizontal navigation menu ========== */ 34 if ($('.main-header').length) { 35 var mainHeader = $('.main-header'), 36 mainHeaderHeight = mainHeader.height(), 37 barMenu = mainHeader.find('.bar-menu'), 38 mainMenuListWrapper = $('.main-menu > ul'), 39 mainMenuListDropdown = $('.main-menu ul li:has(ul)'); 40 41 /* ========== Dropdown Menu Toggle ========== */ 42 barMenu.on("click", function () { 43 $(this).toggleClass('menu-open'); 44 mainMenuListWrapper.slideToggle(300); 45 }); 46 47 mainMenuListDropdown.each(function () { 48 $(this).append('<span class="dropdown-plus"></span>'); 49 $(this).addClass('dropdown_menu'); 50 }); 51 52 $('.dropdown-plus').on("click", function () { 53 $(this).prev('ul').slideToggle(300); 54 $(this).toggleClass('dropdown-open'); 55 }); 56 57 $('.dropdown_menu a').append('<span></span>'); 58 } 59 60 61 62 63 64})(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.