1/* Custom JS File */ 2 3(function($) { 4 5 "use strict"; 6 7 jQuery(document).ready(function() { 8 // Js for slider section in header 9 $('.main-slider').slick({ 10 slidesToShow: 1, 11 slidesToScroll: 1, 12 autoplay: false, 13 autoplaySpeed: 5000, 14 dots: true, 15 fade: true, 16 prevArrow: 17 '<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>', 18 nextArrow: 19 '<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>', 20 arrows: true, 21 dots: true, 22 responsive: [ 23 { 24 breakpoint: 767, 25 settings: { 26 dots: true, 27 arrows: false, 28 } 29 }, 30 { 31 breakpoint: 992, 32 settings: { 33 arrows: false, 34 dots: true, 35 } 36 } 37 ] 38 }); 39 $('.header-slider-thumbnail').slick({ 40 slidesToShow: 3, 41 slidesToScroll: 1, 42 asNavFor: '.main-slider', 43 focusOnSelect: true, 44 arrows: false 45 }); 46 47 //Modern Slider 48 49 $('.modern-slider').slick({ 50 slidesToShow: 1, 51 slidesToScroll: 1, 52 autoplay: false, 53 autoplaySpeed: 5000, 54 dots: true, 55 fade: true, 56 prevArrow: 57 '<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>', 58 nextArrow: 59 '<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>', 60 arrows: true, 61 dots: true, 62 responsive: [ 63 { 64 breakpoint: 767, 65 settings: { 66 dots: true, 67 arrows: false, 68 } 69 }, 70 { 71 breakpoint: 992, 72 settings: { 73 arrows: false, 74 dots: true, 75 } 76 } 77 ] 78 }); 79 80 81 //PROMO 82 $('.promo-one-slider').slick({ 83 dots: true, 84 infinite: true, 85 speed: 500, 86 slidesToShow: 3, 87 slidesToScroll: 3, 88 arrows: false, 89 responsive: [ 90 { 91 breakpoint: 767, 92 settings: { 93 slidesToShow: 1, 94 slidesToScroll: 1, 95 } 96 } 97 ] 98 }); 99 $('.promo-two-slider').slick({ 100 dots: true, 101 infinite: true, 102 speed: 500, 103 slidesToShow: 2, 104 slidesToScroll: 2, 105 arrows: false, 106 responsive: [ 107 { 108 breakpoint: 767, 109 settings: { 110 slidesToShow: 1, 111 slidesToScroll: 1, 112 } 113 } 114 ] 115 }); 116 $('.promo-three-slider').slick({ 117 dots: true, 118 infinite: true, 119 speed: 500, 120 slidesToShow: 3, 121 slidesToScroll: 3, 122 arrows: false, 123 responsive: [ 124 { 125 breakpoint: 767, 126 settings: { 127 slidesToShow: 1, 128 slidesToScroll: 1, 129 } 130 } 131 ] 132 }); 133 134 135 //slider widget 136 $('.post-slider-section').slick({ 137 dots: false, 138 prevArrow: 139 '<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>', 140 nextArrow: 141 '<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>', 142 }); 143 144 // Js for post fomat gallery section in header 145 $('.gallery-post-format-section').slick({ 146 prevArrow: 147 '<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>', 148 nextArrow: 149 '<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>', 150 }); 151 152 $('.one-column .related-slide').slick({ 153 infinite: true, 154 speed: 500, 155 slidesToShow: 3, 156 slidesToScroll: 3, 157 dots: false, 158 prevArrow: '<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>', 159 nextArrow: '<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>', 160 responsive: [ 161 { 162 breakpoint: 767, 163 settings: { 164 slidesToShow: 2, 165 slidesToScroll: 2, 166 } 167 168 },{ 169 breakpoint: 420, 170 settings: { 171 slidesToShow: 1, 172 slidesToScroll: 1, 173 } 174 175 } 176 ] 177 178 }); 179 $('.masonry-post .related-slide').slick({ 180 infinite: true, 181 speed: 500, 182 slidesToShow: 2, 183 slidesToScroll: 2, 184 dots: false, 185 prevArrow: '<button type="button" class="slick-prev"><span class="fa fa-angle-left"></span></button>', 186 nextArrow: '<button type="button" class="slick-next"><span class="fa fa-angle-right"></span></button>', 187 responsive: [ 188 { 189 breakpoint: 767, 190 settings: { 191 slidesToShow: 2, 192 slidesToScroll: 2, 193 } 194 195 },{ 196 breakpoint: 420, 197 settings: { 198 slidesToShow: 1, 199 slidesToScroll: 1, 200 } 201 202 } 203 ] 204 }); 205 206 207 // Initialize gototop for carousel 208 if ( $('#toTop').length > 0 ) { 209 // Hide the toTop button when the page loads. 210 $("#toTop").css("display", "none"); 211 212 // This function runs every time the user scrolls the page. 213 $(window).scroll(function(){ 214 // Check weather the user has scrolled down (if "scrollTop()"" is more than 0) 215 if($(window).scrollTop() > 0){ 216 // If it's more than or equal to 0, show the toTop button. 217 $("#toTop").fadeIn("slow"); 218 } 219 else { 220 // If it's less than 0 (at the top), hide the toTop button. 221 $("#toTop").fadeOut("slow"); 222 } 223 });
224 225 // When the user clicks the toTop button, we want the page to scroll to the top. 226 jQuery("#toTop").click(function(event){ 227 228 // Disable the default behaviour when a user clicks an empty anchor link. 229 // (The page jumps to the top instead of // animating) 230 event.preventDefault(); 231 // Animate the scrolling motion. 232 jQuery("html, body").animate({ 233 scrollTop:0 234 },"slow"); 235 }); 236 } 237 238 // From http://learn.shayhowe.com/advanced-html-css/jquery 239 240 // Change tab class and display content 241 $('.tabs-nav a').on('click', function (event) { 242 event.preventDefault(); 243 244 $('.tab-active').removeClass('tab-active'); 245 $(this).parent().addClass('tab-active'); 246 $('.tab-content>div').hide(); 247 $($(this).attr('href')).show(); 248 }); 249 250 $('.tabs-nav a:first').trigger('click'); // Default 251 $('.closebtn').on('click', function(){ 252 t.close(); 253 }); 254 }); 255 256})(jQuery); 257 258var t = new Canvi({ 259 content: ".js-canvi-content", 260 isDebug: !1, 261 //navbar: ".myCanvasNav", 262 openButton: ".js-canvi-open-button--left", 263 position: "left", 264 closeButton: ".canvi-close-button", 265 pushContent: !1, 266 speed: "0.2s", 267 width: "100vw", 268 responsiveWidths: [ { 269 breakpoint: "600px", 270 width: "280px" 271 }, { 272 breakpoint: "1280px", 273 width: "320px" 274 }, { 275 breakpoint: "1600px", 276 width: "380px" 277 } ] 278})
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.