PageSourceSearch

https://silletasimex.com/wp-content/themes/bricks/js/woo.js?ver=7.1.2

js silletasimex.com collected 2026-09-26 09:50:57 UTC 6,253 bytes, 164 lines download raw bytes

1"use strict";
2
3;
4(function($) {
5	var top_banner = jQuery('.shop_top_banner'),
6		header = jQuery('.main_header'),
7		myWindow = jQuery(window);
8
9	function setup_top_banner() {
10		var header_height = header.height();
11		var woo_imgfull_on_size = jQuery('.woo_imgfull_on').size();
12		if (jQuery('.transparent_enabled').size() > 0) {
13			top_banner.css('margin-top', 0);
14		} else {
15			if (woo_imgfull_on_size > 0) {
16				top_banner.css('margin-top', -1 * header_height + 'px');
17			} else {
18				top_banner.css('margin-top', 0);
19			}
20		}
21		if (woo_imgfull_on_size > 0) {
22			top_banner.height(myWindow.height());
23		}
24	}
25	setup_top_banner();
26	// Shop Title
27	var woo_container = jQuery('.woocommerce_container');
28	var page_title = jQuery('.page_title');
29	var page_descr = jQuery('.page-description');
30	if (woo_container.size() > 0 && page_title.size() > 0) {
31		var p_title = woo_container.find('h1.page-title').html();
32		jQuery('.page_title h1').append(p_title);
33		if (woo_container.size() > 0 && page_descr.size() > 0) {
34			page_title.append('<div class="icon_divider"></div>' + page_descr.html());
35		}
36	}
37	// Cart Collaterals
38	var cart_collaterals = jQuery('.cart-collaterals');
39	if (cart_collaterals.size() > 0) {
40		var cart_calc = cart_collaterals.find('.woocommerce-shipping-calculator').parent().html();
41		if (typeof cart_calc !== 'undefined') {
42			jQuery('.cart-collaterals .order-total').before('<tr><td class="fake_calc" colspan="2">' + cart_calc + '<div class="clea_r"></div></td></div>');
43		}
44	}
45	// Add to cart button (add icon)
46	var list_details_btn = jQuery('.woocommerce ul.products li.product .shop_list_details a.button');
47	if (list_details_btn.size() > 0) {
48		list_details_btn.append('<span class="add2cart_plus_icon"></span>');
49	}
50	// Sale label
51	var onsale = jQuery('.single-product .product span.onsale');
52	if (onsale.size() > 0) {
53		jQuery('.single-product .images .woocommerce-main-image').append(onsale.detach());
54	}
55	// Wrap shop ordering
56	if (jQuery('.woocommerce-result-count').size() > 0 && jQuery('.shop_ordering').size() < 1) {
57		jQuery('p.woocommerce-result-count, form.woocommerce-ordering').wrapAll('<div class="shop_ordering clearfix" />');
58	}
59	//	Product Comment Form
60	if (jQuery('#commentform').size() > 0) {
61		jQuery('.comment-form-author #author').attr('placeholder', jQuery('.comment-form-author label').text());
62		jQuery('.comment-form-email #email').attr('placeholder', jQuery('.comment-form-email label').text());
63		jQuery('.comment-form-comment #comment').attr('placeholder', jQuery('.comment-form-comment label').text());
64	}
65	// Shop Table Wrap
66	var shop_table = jQuery('.shop_table');
67	if (shop_table.size() > 0) {
68		shop_table.each(function() {
69			jQuery(this).wrap('<div class="shop_table_wrap" />');
70		});
71	}
72	jQuery('.top_banner_scroller').on('click', function() {
73		var fixed_header = jQuery('.fixed_header');
74		if (fixed_header.size() > 0) {
75			jQuery('html, body').stop().animate({
76				scrollTop: top_banner.height() - fixed_header.height() + 'px'
77			}, 400);
78		} else {
79			jQuery('html, body').stop().animate({
80				scrollTop: top_banner.height() + 'px'
81			}, 400);
82		}
83	});
84	// Product Rating
85	if (jQuery('.woocommerce-product-rating').size() > 0) {
86		jQuery('.summary').css({
87			'padding-top': 39 + 'px'
88		});
89	}
90	// Checkout Placeholder
91	if (jQuery('form.checkout').size() > 0 || jQuery('form.login').size() > 0) {
92		jQuery('form.checkout p, form.login p').each(function() {
93			var this_label_text = jQuery(this).find('label').text();
94			if (this_label_text.length > 0) {
95				jQuery(this).find('input').attr('placeholder', this_label_text);
96			}
97		});
98	}
99	jQuery(window).load(function() {
100		jQuery(".woocommerce-page .widget_price_filter .price_slider").wrap("<div class='price_filter_wrap'></div>");
101		jQuery(".shop_table.cart").wrap("<div class='woo_shop_cart'></div>");
102		setup_top_banner();
103	});
104	jQuery(window).resize(function() {
105		setup_top_banner();
106	});
107})(jQuery);
108
109jQuery(document).ready(function(){
110	if (jQuery('.product_trigger').size() > 0 && jQuery('.product').size() > 0 && jQuery('.type-product').size() > 0) {
111		//Customize Single Product
112		if (jQuery('div').find('p.price').size() > 0 ) {
113			var woo_price_block = jQuery('div').find('p.price');
114			if (woo_price_block.find('ins').size() > 0) {
115				var woo_price_ins_html = woo_price_block.find('ins').html();
116			} else {
117				var woo_price_ins_html = '';
118			}
119			if (woo_price_block.find('del').size() > 0) {
120				var woo_price_del_html = woo_price_block.find('del').html();
121			} else {
122				var woo_price_del_html = '';
123			}
124			if (woo_price_block.find('ins').size() < 1 && woo_price_block.find('del').size() < 1) {
125				var woo_price_ins_html = woo_price_block.html(),
126					woo_price_del_html = '';
127			}
128		}
129		if (jQuery('.woocommerce-product-rating').size() > 0 ) {
130			var woo_rating_stars = jQuery('.woocommerce-product-rating'),
131				woo_rating_stars_html = woo_rating_stars.html();			
132		} else {
133			var woo_rating_stars_html = '';
134		}
135		
136		var woo_product_title = jQuery('h1.product_title');
137		woo_price_block.remove();
138		
139		if (woo_price_del_html !== '' && woo_price_ins_html !== '') {
140			woo_product_title.before('<div class="gt3_prod_price"><ins>'+ woo_price_ins_html + '</ins>' + '<del>' + woo_price_del_html +'</del></div>');
141		} else if (woo_price_del_html == '' && woo_price_ins_html !== '') {
142			woo_product_title.before('<div class="gt3_prod_price"><ins>'+ woo_price_ins_html + '</ins></div>');
143		}
144		if (woo_rating_stars_html !== '') {
145			woo_rating_stars.remove();
146			woo_product_title.after('<div class="gt3_prod_rate">'+ woo_rating_stars_html +'</div>');
147		}
148	}
149	
150	//Customize Review
151	if(jQuery('#reviews').size() > 0) {
152		jQuery('#reviews').find('.comment_container').each(function(){
153			var woo_this_stars = jQuery(this).find('.star-rating'),
154				woo_this_meta = jQuery(this).find('p.meta');
155			if (woo_this_meta.find('strong').size() > 0 && woo_this_meta.find('time').size() > 0) {
156				var woo_this_meta_author = woo_this_meta.find('strong').html(),
157					woo_this_meta_time = woo_this_meta.find('time').html();
158				woo_this_meta.remove();
159				woo_this_stars.before('<div class="woo_review_meta"><h6 class="author">
159' + woo_this_meta_author + '</h6><div class="time">' + woo_this_meta_time + '</div></div>');
160			}
161		});
162		
163	}
164});

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.