PageSourceSearch

https://www.ibt.co.il/wp-content/themes/hello-theme-child-master/script.js?ver=1.0.0

js ibt.co.il collected 2026-10-09 04:23:26 UTC 1,317 bytes, 31 lines download raw bytes

1jQuery(document).ready(function() {
2	fix_category_images();
3	
4});
5
6/* fix thumb images display */
7/* this will work on product gallery thumbs, and main category images */
8/* this looks for the img inside li or a, and copies the img's src as a background image with auto contain/center */
9function fix_category_images() {
10	jQuery('.product-category>a').each(function() {
11		var $img = jQuery(this).find('img');
12		var src = $img.attr('src');
13		//src = src.indexOf('-300x') != -1 ? src.substr(0,src.indexOf('-300x')) + src.substr(src.lastIndexOf('.')) : src;
14		jQuery(this).css('background','url(' + src + ') no-repeat');
15	});
16	jQuery('ul.products li.product>a.woocommerce-loop-product__link').each(function() {
17		var $img = jQuery(this).find('img');
18		var src = $img.attr('src');
19		//src = src.indexOf('-300x') != -1 ? src.substr(0,src.indexOf('-300x')) + src.substr(src.lastIndexOf('.')) : src;
20		jQuery(this).css('background','url(' + src + ') no-repeat');
21	});
22	jQuery('.elementor-posts .elementor-post a.elementor-post__thumbnail__link').each(function() {
23		var $img = jQuery(this).find('img');
24		var src = $img.attr('src');
25		//src = src.indexOf('-300x') != -1 ? src.substr(0,src.indexOf('-300x')) + src.substr(src.lastIndexOf('.')) : src;
26		jQuery(this).css('background','url(' + src + ') no-repeat');
27	});
28	
29	
30	
31}

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.