1jQuery(document).ready(function(){ 2 var brtl = false; 3 if (jQuery("body").hasClass('rtl')) brtl = true; 4 5 // $('a').on('click', function(e) { 6 // var href = $(this).attr('href'); 7 8 // if (href.includes('sparklewp.com')) { 9 // // Prevent the default link action only if it meets the condition 10 // e.preventDefault(); 11 // // Redirect to the specified URL 12 // window.location.href = 'https://sparklewpthemes.com/'; 13 // } 14 // }); 15 16 // appzend custom tab like accordion 17 jQuery('.appzend-tab li').on('click', function(){ 18 var active = false; 19 if( jQuery(this).hasClass('active')){ 20 active = true; 21 } 22 jQuery(this).parent().find('li').removeClass('active'); 23 if( active ){ 24 jQuery(this).removeClass('active'); 25 }else{ 26 jQuery(this).addClass('active'); 27 } 28 }) 29 30 /** 31 * Home Slider 32 */ 33 jQuery('#banner-slider .owl-carousel, .storeslider').each(function(){ 34 var $this = jQuery(this); 35 var dataCol = $this.attr('data-col') || 1; 36 $this.owlCarousel({ 37 items: dataCol, 38 loop: true, 39 smartSpeed: 20000, 40 dots: false, 41 nav: true, 42 autoplay: true, 43 mouseDrag: true, 44 animateOut: 'fadeOut', 45 animateIn: 'fadeIn', 46 rtl: brtl, 47 responsive: { 48 0: { 49 nav: false, 50 mouseDrag: false, 51 touchDrag:false, 52 items: 1, 53 }, 54 767: { 55 nav: false, 56 mouseDrag: false, 57 touchDrag:false, 58 items: 1, 59 60 }, 61 1000: { 62 nav: true, 63 mouseDrag: true, 64 touchDrag:true, 65 66 } 67 } 68 }); 69 }); 70 71 /** 72 * Sparkle Tabs Category Product 73 */ 74 $ = jQuery; 75 jQuery('.sparkletablinks').each(function(){ 76 $(this).find('li').first('li').addClass('active'); 77 }) 78 79 jQuery('.sparkletabs .sparkletablinks a').on('click', function(e) { 80 e.preventDefault(); 81 var that = $(this); 82 83 var currentAttrValue = that.attr('href'); 84 var product_num = that.parents('ul').data('noofporduct'); 85 var column = that.parents('ul').data('column'); 86 var layout = that.parents('ul').data('layout'); 87 var active = that.attr('id'); 88 89 var parentLi = that.parent('li'); 90 parentLi.addClass('active').siblings().removeClass('active'); 91 92 var contentArea = $(this).parents('.sparkletabs').siblings('.sparkletabsproductwrap .sparkletablinkscontent').find('.sparkletabproductarea').find("#"+currentAttrValue); 93 94 //find is ajax or not 95 var is_no_ajax = that.data('noajax'); 96 if( is_no_ajax ){ 97 98 that.parents('.sparkletabs').parent().find('.sparkletabproductarea .tab-content').hide(); 99 100 that.parents('.sparkletabs').parent().find('.sparkletabproductarea #' + active).show(); 101 $(window).trigger('resize'); 102 return ; 103 } 104 105 that.parents('.sparkletabs').parent().find('.sparkletabproductarea ul').addClass('hidden'); 106 107 contentArea.removeClass('hidden'); 108 $(window).trigger('resize'); 109 110 if( parentLi.attr('data-loaded') == 1) { 111 console.log('already loaded'); 112 return; 113 } 114 115 contentArea.hide(); 116 }); 117})
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.