1// On Document Load 2jQuery(window).load(function () { 3 //site loader 4 jQuery('#wraploader').hide(); 5}); 6 7// On Document Ready 8jQuery(document).ready(function ($) { 9 //hide and show nav 10 $("button#sec-menu-toggle").click(function () { 11 $("div#sec-site-header-menu").slideToggle("1500"); 12 }); 13 14 15 //hide and show search 16 $(".nav-buttons").click(function () { 17 $("#top-search").slideToggle("400"); 18 }); 19 20 21 $('#menu-toggle-close').click(function () { 22 if ($('#site-header-menu').hasClass('open')) { 23 $('#site-header-menu').removeClass('open').css({ 24 'transform': 'scale(0)' 25 }); 26 } 27 28 }); 29 30 31 $('h2.widget-title').html(function () { 32 return this.innerText.split(' ').map(function (e, i) { 33 return $('<span />', { 34 class: 'i' + i, 35 text: e 36 }); 37 }); 38 }); 39 40 41 /** 42 * sub menu script 43 */ 44 $("li.menu-item-has-children > a").each(function () { 45 $(this).append("<i class='fa fa-angle-down'></i>"); 46 }); 47 $('li.menu-item-has-children .fa').click(function (e) { 48 e.preventDefault(); 49 $(this).siblings().toggle(); 50 e.stopPropagation(); 51 }) 52 53 54 // hoverdir 55 jQuery(' #da-thumbs section > li ').each(function () { 56 $(this).hoverdir(); 57 }); 58 59 // tab widget 60 $(".tabs-menu a").click(function (event) { 61 event.preventDefault(); 62 $(this).parent().addClass("current"); 63 $(this).parent().siblings().removeClass("current"); 64 var tab = $(this).attr("href"); 65 $(".tab-content").not(tab).css("display", "none"); 66 $(tab).fadeIn(1500); 67 }); 68 69 // Search 70 var openBox = $('#search-bg'); 71 $('.search-holder .button-search').click(function (e) { 72 e.preventDefault(); 73 openBox.addClass('search-open'); 74 openBox.removeClass('screen-reader-text'); 75 }); 76 77 $('.button-search-close').click(function (e) { 78 e.preventDefault(); 79 openBox.removeClass('search-open'); 80 openBox.addClass('screen-reader-text'); 81 }); 82 83 $('#search-open-submit').click(function () { 84 $('#search-target').submit(); 85 }); 86 87 88 // slick jQuery 89 jQuery('.carousel-group').slick({ 90 autoplay: true, 91 autoplaySpeed: 3000, 92 dots: false, 93 slidesToShow: 4, 94 slidesToScroll: 1, 95 lazyLoad: 'ondemand', 96 responsive: [{ 97 breakpoint: 1024, 98 settings: { 99 slidesToShow: 3, 100 slidesToScroll: 3, 101 infinite: true, 102 dots: false 103 } 104 }, 105 { 106 breakpoint: 768, 107 settings: { 108 slidesToShow: 2, 109 slidesToScroll: 2 110 } 111 }, 112 { 113 breakpoint: 481, 114 settings: { 115 slidesToShow: 1, 116 slidesToScroll: 1 117 } 118 } 119 // You can unslick at a given breakpoint now by adding: 120 // settings: "unslick" 121 // instead of a settings object 122 ] 123 }); 124 // add class to odd and even categories 125 $('span.cat-links a:odd').addClass("odd-icon") 126 $('span.cat-links a:even').addClass("even-icon") 127 // add class to odd and even tag links 128 $('span.tags-links a:odd').addClass("tag-odd") 129 $('span.tags-links a:even').addClass("tag-even") 130 131 // add class to odd and even tagcloud 132 $('.tagcloud a:odd').addClass("odd-tagcloud") 133 $('.tagcloud a:even').addClass("even-tagcloud") 134 $('.category-link a:even').addClass("odd-cat") 135 136 // back to top animation 137 $('#gotop').click(function () { 138 $('html, body').animate({ 139 scrollTop: '0px' 140 }, 1000); 141 }); 142 143 // header fix 144 145 var fixedBackgroundColor = '#2d2d2d', 146 fixedBackgroundTransparent = 'transparent', 147 scrollTopPosition = $('body').scrollTop(), 148 selectedHeader = $('.wrap-nav'), 149 containerselectedHeader = $('.wrap-nav .container'), 150 fixedBackgroundNoSlider = selectedHeader.hasClass('fixed-nav'); 151 152 var waypoint = new Waypoint({ 153 element: selectedHeader, 154 offset: '0', 155 handler: function (direction) { 156 if ("down" == direction) { 157 containerselectedHeader.css({ 158 'maxWidth': '100%' 159 }); 160 selectedHeader.addClass('fixed-nav'); 161 } else { 162 containerselectedHeader.css({ 163 'maxWidth': '100%' 164 }); 165 selectedHeader.removeClass('fixed-nav'); 166 } 167 168 } 169 }); 170 // add toggle class to search icon 171 $(".nav-buttons.col-md-1").click(function () { 172 $("i.fa.fa-search").toggleClass("fa-close"); 173 }); 174 175 // back to top animation 176 177 $('#gotop').click(function () { 178 $('html, body').animate({ 179 scrollTop: '0px' 180 }, 1000); 181 }); 182 183 $(window).scroll(function () { 184 var scrollTopPosition = $('html,body').scrollTop(); 185 if (scrollTopPosition > 240) { 186 $('#gotop').css({ 187 'bottom': 25 188 }); 189 } else { 190 $('#gotop').css({ 191 'bottom': -100 192 }); 193 } 194 }); 195});
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.