1jQuery(document).ready(function($) { 2 3 "use strict"; 4 5 if ( $.isFunction($.fn.sticky) ) { 6 var $wpAdminBar = $('#wpadminbar'); 7 if ($wpAdminBar.length) { 8 $("#header:not(.menu-bar-layout), #top-bar").sticky({topSpacing:$wpAdminBar.height(),className:'sticky'}); 9 $("#mobile-header-wrapper").sticky({topSpacing:$wpAdminBar.height(),className:'sticky'}); 10 } else { 11 $("#header:not(.menu-bar-layout), #top-bar").sticky({topSpacing:0,className:'sticky'}); 12 $("#mobile-header-wrapper").sticky({topSpacing:0,className:'sticky'}); 13 } 14 } 15 16 $('#header.header-white').animate({opacity: 1}, 'fast'); 17 18 // Sidr Menu 19 $('.menu-icon').sidr({ 20 name: 'sidr-main', 21 displace: false, 22 source: '#sitka-mobile-header, #mobile-navigation, #sitka-mobile-footer', 23 renaming: false, 24 }); 25 26 $( "<span class='open-sidr'></span>" ).insertAfter( ".sidr .menu-item-has-children > a" ); 27 $('.sidr').find('.open-sidr').click(function(){ 28 $(this).next().slideToggle('fast'); 29 }); 30 $(".open-sidr").click(function(){ 31 $(this).toggleClass('close'); 32 }); 33 34 $( 'a.close-mobile-menu' ).on('click', function(e){ 35 e.preventDefault(); 36 $.sidr('close', 'sidr-main'); 37 }); 38 39 // Menu Burger Icon 40 $('.share-toggle').on('click', function ( e ) { 41 e.preventDefault(); 42 $('.show-share').toggleClass('is-active'); 43 }); 44 45 if ($('.feat-area').length > 0) { 46 var sitka_autospeed = autoplay_object.autoplay_speed; 47 } 48 49 /*Set autoplay */ 50 if($(".feat-area").hasClass("autoplay-true")) { 51 var sitka_autoplay = true; 52 } else { 53 var sitka_autoplay = false; 54 } 55 56 // Gallery post 57 $(".post-img.gallery").slick({ 58 fade: true, 59 dots: false, 60 arrows:true, 61 touchMove:false, 62 draggable:false, 63 adaptiveHeight:true, 64 /*appendArrows:$('.new-new'),*/ 65 prevArrow:$('.slick-prev'), 66 nextArrow:$('.slick-next'), 67 }); 68 69 // Classic slider 70 $(".classic-slider").slick({ 71 fade: true, 72 dots: false, 73 arrows:true, 74 touchMove:false, 75 draggable:false, 76 adaptiveHeight:false, 77 prevArrow:'<a href="#" class="slick-prev"><i class="fa fa-angle-left"></i></a>', 78 nextArrow:'<a href="#" class="slick-next"><i class="fa fa-angle-right"></i></a>', 79 autoplay: sitka_autoplay, 80 autoplaySpeed: sitka_autospeed 81 }); 82 83 // Fullscreen slider 84 $(".feat-area.fullscreen-one").slick({ 85 fade: true, 86 dots: true, 87 arrows:false, 88 touchMove:false, 89 draggable:false, 90 adaptiveHeight:false, 91 autoplay: sitka_autoplay, 92 autoplaySpeed: sitka_autospeed 93 }); 94 95 // Fullscreen split slider 96 $(".feat-area.fullscreen-split").slick({ 97 dots: false, 98 arrows:true, 99 touchMove:false, 100 draggable:false, 101 adaptiveHeight:false, 102 autoplay: sitka_autoplay, 103 autoplaySpeed: sitka_autospeed, 104 slidesToShow:2, 105 slidesToScroll:1, 106 prevArrow:'<a href="#" class="slick-prev"><i class="fa fa-angle-left"></i></a>', 107 nextArrow:'<a href="#" class="slick-next"><i class="fa fa-angle-right"></i></a>', 108 responsive: [ 109 { 110 breakpoint: 970, 111 settings: { 112 slidesToShow: 1, 113 slidesToScroll: 1 114 } 115 }, 116 ] 117 }); 118 119 /*Set amount slides */ 120 if($("#featured-area").hasClass("slides-3")) { 121 var sitkaSlides = 3; 122 } else if($("#featured-area").hasClass("slides-2")) { 123 var sitkaSlides = 2; 124 } else if($("#featured-area").hasClass("slides-4")) { 125 var sitkaSlides = 4; 126 } else { 127 var sitkaSlides = 3; 128 } 129 130 $(".feat-area.carousel-slider").slick({ 131 dots: false, 132 arrows:true, 133 touchMove:false, 134 draggable:false, 135 adaptiveHeight:false, 136 slidesToShow:sitkaSlides, 137 slidesToScroll:1, 138 autoplay: sitka_autoplay, 139 autoplaySpeed: sitka_autospeed, 140 prevArrow:'<a href="#" class="slick-prev"><i class="fa fa-angle-left"></i></a>', 141 nextArrow:'<a href="#" class="slick-next"><i class="fa fa-angle-right"></i></a>', 142 responsive: [ 143 { 144 breakpoint: 1200, 145 settings: { 146 slidesToShow: 2, 147 slidesToScroll: 1 148 } 149 }, 150 { 151 breakpoint: 970, 152 settings: { 153 slidesToShow: 1, 154 slidesToScroll: 1 155 } 156 }, 157 ] 158 }); 159 160 // Center Slider 161 $(".carousel-slider-center").slick({ 162 dots: false, 163 arrows:true, 164 touchMove:false, 165 draggable:false, 166 adaptiveHeight:false, 167 centerMode: true, 168 autoplay: sitka_autoplay, 169 autoplaySpeed: sitka_autospeed, 170 centerPadding: '25%', 171 slidesToShow: 1, 172 prevArrow:'<a href="#" class="slick-prev"><i class="fa fa-angle-left"></i></a>', 173 nextArrow:'<a href="#" class="slick-next"><i class="fa fa-angle-right"></i></a>', 174 responsive: [ 175 { 176 breakpoint: 1200, 177 settings: { 178 centerPadding: '15%', 179 } 180 }, 181 { 182 breakpoint: 970, 183 settings: { 184 centerPadding: '10%', 185 } 186 }, 187 { 188 breakpoint: 768, 189 settings: { 190 centerMode: false, 191 } 192 }, 193 ] 194 }); 195 196 // Split slider 197 $(".split-slider").slick({ 198 fade: true, 199 dots: false, 200 arrows:true, 201 touchMove:false, 202 draggable:false, 203 adaptiveHeight:false, 204 autoplay: sitka_autoplay, 205 autoplaySpeed: sitka_autospeed, 206 prevArrow:'<a href="#" class="slick-prev"><i class="fa fa-angle-left"></i></a>', 207 nextArrow:'<a href="#" class="slick-next"><i class="fa fa-angle-right"></i></a>', 208 responsive: [ 209 { 210 breakpoint: 768, 211 settings: { 212 dots: true,
213 arrows: false, 214 adaptiveHeight:true, 215 } 216 }, 217 ] 218 }); 219 220 // Header Search 221 $('a[href="#search"]').on('click', function(event) { 222 event.preventDefault(); 223 $('#sitka-search-overlay').addClass('open'); 224 $('#sitka-search-overlay > form > input[type="text"]').focus(); 225 }); 226 227 $('#sitka-search-overlay, #sitka-search-overlay button.close').on('click keyup', function(event) { 228 if (event.target == this || event.target.className == 'close' || event.keyCode == 27) { 229 $(this).removeClass('open'); 230 } 231 }); 232 233});
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.