1jQuery( function ( $ ) { 2 'use strict'; 3 // here for each comment reply link of WordPress 4 $( '.comment-reply-link' ).addClass( 'btn btn-primary' ); 5 6 // here for the submit button of the comment reply form 7 $( '#commentsubmit' ).addClass( 'btn btn-primary' ); 8 9 // The WordPress Default Widgets 10 // Now we'll add some classes for the WordPress default widgets - let's go 11 12 // the search widget 13 $( '.widget_search input.search-field' ).addClass( 'form-control' ); 14 $( '.widget_search input.search-submit' ).addClass( 'btn btn-default' ); 15 $( '.variations_form .variations .value > select' ).addClass( 'form-control' ); 16 $( '.widget_rss ul' ).addClass( 'media-list' ); 17 18 $( '.widget_meta ul, .widget_recent_entries ul, .widget_archive ul, .widget_categories ul, .widget_nav_menu ul, .widget_pages ul, .widget_product_categories ul' ).addClass( 'nav flex-column' ); 19 $( '.widget_meta ul li, .widget_recent_entries ul li, .widget_archive ul li, .widget_categories ul li, .widget_nav_menu ul li, .widget_pages ul li, .widget_product_categories ul li' ).addClass( 'nav-item' ); 20 $( '.widget_meta ul li a, .widget_recent_entries ul li a, .widget_archive ul li a, .widget_categories ul li a, .widget_nav_menu ul li a, .widget_pages ul li a, .widget_product_categories ul li a' ).addClass( 'nav-link' ); 21 22 $( '.widget_recent_comments ul#recentcomments' ).css( 'list-style', 'none').css( 'padding-left', '0' ); 23 $( '.widget_recent_comments ul#recentcomments li' ).css( 'padding', '5px 15px'); 24 25 $( 'table#wp-calendar' ).addClass( 'table table-striped'); 26 27 // Adding Class to contact form 7 form 28 $('.wpcf7-form-control').not(".wpcf7-submit, .wpcf7-acceptance, .wpcf7-file, .wpcf7-radio").addClass('form-control'); 29 $('.wpcf7-submit').addClass('btn btn-primary'); 30 31 // Adding Class to Woocommerce form 32 $('.woocommerce-Input--text, .woocommerce-Input--email, .woocommerce-Input--password').addClass('form-control'); 33 $('.woocommerce-Button.button').addClass('btn btn-primary mt-2').removeClass('button'); 34 35 $('ul.dropdown-menu [data-toggle=dropdown]').on('click', function(event) { 36 event.preventDefault(); 37 event.stopPropagation(); 38 $(this).parent().siblings().removeClass('open'); 39 $(this).parent().toggleClass('open'); 40 }); 41 42 // Fix woocommerce checkout layout 43 $('#customer_details .col-1').addClass('col-12').removeClass('col-1'); 44 $('#customer_details .col-2').addClass('col-12').removeClass('col-2'); 45 $('.woocommerce-MyAccount-content .col-1').addClass('col-12').removeClass('col-1'); 46 $('.woocommerce-MyAccount-content .col-2').addClass('col-12').removeClass('col-2'); 47 48 // Add Option to add Fullwidth Section 49 function fullWidthSection(){ 50 var screenWidth = $(window).width(); 51 if ($('.entry-content').length) { 52 var leftoffset = $('.entry-content').offset().left; 53 }else{ 54 var leftoffset = 0; 55 } 56 $('.full-bleed-section').css({ 57 'position': 'relative', 58 'left': '-'+leftoffset+'px', 59 'box-sizing': 'border-box', 60 'width': screenWidth, 61 }); 62 } 63 fullWidthSection(); 64 $( window ).resize(function() { 65 fullWidthSection(); 66 }); 67 68 // Allow smooth scroll 69 $('.page-scroller').on('click', function (e) { 70 e.preventDefault(); 71 var target = this.hash; 72 var $target = $(target); 73 $('html, body').animate({ 74 'scrollTop': $target.offset().top 75 }, 1000, 'swing'); 76 }); 77 78 79 80 81 82 83 $('.carousel-header').each(function() { 84 var carousel = $(this); 85 carousel.parents('.tab-content').find('.tab-pane').not(':first-child').addClass('active'); 86 carousel.owlCarousel({ 87 loop:false, 88 margin:10, 89 nav:true, 90 autoWidth:false, 91 dots:false, 92 responsive:{ 93 0:{ 94 items:3 95 }, 96 600:{ 97 items:5 98 }, 99 1000:{ 100 items:9 101 } 102 }, 103 onInitialized: function(event) { carousel.parents('.tab-content').find('.tab-pane').not(':first-child').removeClass('active') } 104 }); 105 }); 106 107 $('.home .carousel-home-news').each(function() { 108 var carousel = $(this); 109 carousel.owlCarousel({ 110 loop:false, 111 margin:0, 112 nav:true, 113 navText:['<i class="fas fa-arrow-left" aria-hidden="true"></i>','<i class="fas fa-arrow-right" aria-hidden="true"></i>'], 114 autoWidth:false, 115 dots:false, 116 items:1, 117 mouseDrag: false, 118 touchDrag: false, 119 onInitialized: function(event) { if (event.item.count<=1) { carousel.find('.owl-nav').addClass("d-none"); carousel.css('padding-bottom', 0); } } 120 }); 121 122 var carouselImgs = $('.home .carousel-home-news-images'); 123 carouselImgs.owlCarousel({ 124 loop:false, 125 margin:0, 126 nav:false, 127 autoWidth:false, 128 autoHeight:true, 129 dots:false, 130 items:1, 131 mouseDrag: false, 132 touchDrag: false 133 }); 134 carousel.on('click', '.owl-next', function () { 135 carouselImgs.trigger('next.owl.carousel') 136 }); 137 carousel.on('click', '.owl-prev', function () { 138 carouselImgs.trigger('prev.owl.carousel') 139 }); 140 }); 141 142 $('.carousel-home-news-grid').each(function() { 143 var carousel = $(this); 144 carousel.parents('.tab-content').find('.tab-pane').not(':first-child').addClass('active'); 145 carousel.owlCarousel({ 146 loop:false, 147 margin:15, 148 nav:true, 149 navText:['<i class="fas fa-arrow-left" aria-hidden="true"></i>','<i class="fas fa-arrow-right" aria-hidden="true"></i>'], 150 autoWidth:false, 151 autoHeight:true, 152 dots:false, 153 responsive:{ 154 0:{ 155 items:1.3, 156 nav:false, 157 loop:true 158 }, 159 600:{ 160 items:3 161 }, 162 1000:{ 163 items:3 164 } 165 }, 166 onInitialized: function(event) { carousel.parents('.tab-content').find('.tab-pane').not(':first-child').removeClass('active') } 167 }); 168 }); 169 170 $('.carousel-news-grid').each(function() { 171 var carousel = $(this); 172 carousel.owlCarousel({ 173 loop:false, 174 margin:15, 175 nav:true, 176 navText:['<i class="fas fa-arrow-left" aria-hidden="true"></i>','<i class="fas fa-arrow-right" aria-hidden="true"></i>'], 177 autoWidth:false, 178 dots:false, 179 responsive:{ 180 0:{ 181 items:1.3, 182 nav:false, 183 loop:true 184 }, 185 600:{ 186 items:3 187 }, 188 1000:{ 189 items:3 190 } 191 } 192 }); 193 }); 194 195 $('.carousel-home-media-foto').each(function() { 196 var carousel = $(this); 197 carousel.parents('.tab-content').find('.tab-pane').not(':first-child').addClass('active'); 198 carousel.owlCarousel({ 199 loop:false, 200 margin:10, 201 nav:true, 202 navText:['<i class="fas fa-arrow-left" aria-hidden="true"></i>','<i class="fas fa-arrow-right" aria-hidden="true"></i>'], 203 autoWidth:false, 204 dots:false, 205 responsive:{ 206 0:{ 207 items:2, 208 loop:true 209 }, 210 600:{ 211 items:3 212 }, 213 1000:{ 214 items:5 215 } 216 }, 217 onInitialized: function(event) { carousel.parents('.tab-content').find('.tab-pane').not(':first-child').removeClass('active') } 218 }); 219 }); 220 221 $('.carousel-home-media-video').each(function() { 222 var carousel = $(this); 223 carousel.parents('.tab-content').find('.tab-pane').not(':first-child').addClass('active'); 224 carousel.owlCarousel({ 225 loop:false, 226 margin:10, 227 nav:true, 228 navText:['<i class="fas fa-arrow-left" aria-hidden="true"></i>','<i class="fas fa-arrow-right" aria-hidden="true"></i>'], 229 autoWidth:false, 230 dots:false, 231 responsive:{ 232 0:{ 233 items:2, 234 loop:true 235 }, 236 600:{ 237 items:3 238 }, 239 1000:{ 240 items:3 241 } 242 }, 243 onInitialized: function(event) { carousel.parents('.tab-content').find('.tab-pane').not(':first-child').removeClass('active') } 244 }); 245 }); 246 247 $('a.arrow_expander').on('click', function(event) { 248 event.preventDefault(); 249 //event.stopPropagation(); 250 $(this).toggleClass('opened'); 251 $(this).parent().siblings('.closed').toggle('fast'); 252 $(this).find('i').toggleClass('fa-chevron-down').toggleClass('fa-chevron-up'); 253 }); 254 255 $(document).on('click', '#masthead .dropdown-menu', function (e) { 256 e.stopPropagation(); 257 }); 258 259 $("a#liveScoreArrow").click(function() { 260 $(this).parents('.dropdown').find('#liveScore').dropdown('toggle'); 261 }); 262 263 $(window).on('resize', function(){ 264 if ($(window).width() < 1024) { 265 $('.footer-top ul.list-unstyled').collapse({toggle: false}); 266 267 $('.submenu-page .navbar-nav').owlCarousel({ 268 loop:false, 269 margin:0, 270 nav:true, 271 navText:['<i class="fas fa-chevron-left" aria-hidden="true"></i>','<i class="fas fa-chevron-right" aria-hidden="true"></i>'], 272 dots:false, 273 responsive:{ 274 0:{ 275 items:2 276 }, 277 600:{ 278 items:2 279 }, 280 1000:{ 281 items:8 282 } 283 } 284 }); 285 } else { 286 $('.submenu-page .navbar-nav').addClass('off').trigger('destroy.owl.carousel'); 287 $('.submenu-page .navbar-nav').find('.owl-stage-outer').children(':eq(0)').unwrap(); 288 } 289 }).resize(); 290 291 292 293});
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.