PageSourceSearch

https://didacticom.com/wp-content/themes/blonwe/assets/js/custom/tab-ajax.js?ver=1.0.0

js didacticom.com collected 2026-10-07 13:06:36 UTC 2,814 bytes, 73 lines download raw bytes

1jQuery(document).ready(function($) {
2	"use strict";
3
4	$(document).on('click', '.module-header-tab li:not(active) a', function(event){
5		event.preventDefault(); 
6		
7		var $thisbutton = $(this);
8		
9		if ($(this).closest('.klb-module').hasClass("module-products-grid type-list")) {
10		  var $action = 'tab_view_list';
11		  var $find = $(this).closest('.klb-module').find('.klb-products-tab .products');
12		} else if ($(this).closest('.klb-module').hasClass("module-products-grid style-6")) {
13		  var $action = 'tab_view_grid';
14		  var $find = $(this).closest('.klb-module');
15		} else if ($(this).closest('.klb-module').hasClass("products-column")) {
16		  var $action = 'tab_view_grid2';
17		  var $find = $(this).closest('.klb-module').find('.klb-products-tab .products');
18		} else {
19			var $action = 'tab_view';
20			var $find = $(this).closest('.klb-module').find('.klb-products-tab .products');
21		}
22
23		
24        var data = {
25			cache: false,
26            action: $action,
27			beforeSend: function() {
28				$($thisbutton).closest('.klb-module').find('.klb-products-tab').append('<svg class="tab-ajax loader-image preloader quick-view" width="65px" height="65px" viewBox="0 0 66 66" xmlns="http://www.w3.org/2000/svg"><circle class="path" fill="none" stroke-width="6" stroke-linecap="round" cx="33" cy="33" r="30"></circle></svg></div>');
29			},
30			'catid': $(this).attr('id'),
31			'items': $find.data('items'),
32			'mobile': $find.data('mobileitems'),
33			'tablet': $find.data('tabletitems'),
34			'speed': $find.data('speed'),
35			'post_count': $find.data('perpage'),
36			'dots': $find.data('dots'),
37			'arrows': $find.data('arrows'),
38			'autoplay': $find.data('autoplay'),
39			'autospeed': $find.data('autospeed'),
40			'producttype': $find.data('producttype'),
41			'productclass': $find.attr('class').replace(/slick-(\S+)/g,''),
42			'best_selling': $find.data('best_selling'),
43			'featured': $find.data('featured'),
44			'on_sale': $find.data('onsale'),
45			'stockprogressbar': $find.data('stockprogressbar'),
46			'countdown': $find.data('countdown'),
47			'stockstatus': $find.data('stockstatus'),
48			'shippingclass': $find.data('shippingclass'),
49        };
50		
51
52        // since 2.8 ajaxurl is always defined in the admin header and points to admin-ajax.php
53		$.post(MyAjax.ajaxurl, data, function(response) {
54			$($thisbutton).closest('.klb-module').find('.klb-products-tab').html(response);
55
56		    $thisbutton.closest('.module-header-tab').find('li').removeClass('active');
57		    $thisbutton.closest('li').addClass('active');
58
59
60			blonweThemeModule.siteslider();
61			
62			if ($('.product-thumbnail-gallery').length) {
63			blonweThemeModule.hoverslider();	
64			}
65			
66			blonweThemeModule.productHover();		
67			
68			blonweThemeModule.countdown();
69			
70        });
71    });	
72
73});

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.