PageSourceSearch

https://strongdia.com/wp-content/plugins/woo-product-gallery-slider/assets/js/wpgs.js?ver=2.1.3

js strongdia.com collected 2026-09-26 08:23:21 UTC 1,310 bytes, 56 lines download raw bytes

1
2(function ($) {
3	'use strict';
4
5	$(document).ready(function() {
6	
7   	 jQuery('.wpgs img').removeAttr('srcset');
8 
9    	$('.woocommerce-product-gallery__image img').load(function() {
10
11			var imageObj = $('.woocommerce-product-gallery__image img');
12
13			if (!(imageObj.width() == 1 && imageObj.height() == 1)) {
14			
15				$('.attachment-shop_thumbnail').attr('src', imageObj.attr('src'));
16				$('.attachment-shop_thumbnail').trigger('click');
17				
18					
19			}
20		});
21		// Check if have Fancybox
22		if (typeof $.fn.fancybox == 'function') {
23			// Customize icons
24		
25			$.fancybox.defaults = $.extend(true, {}, $.fancybox.defaults, {
26				
27				thumbs: false	
28				
29			});
30
31
32			var selector = '.wpgs .slick-slide:not(.slick-cloned) a';
33
34			// Skip cloned elements
35			$().fancybox({
36				selector: selector,
37				backFocus: false
38			});
39
40			// Attach custom click event on cloned elements, 
41			// trigger click event on corresponding link
42			$(document).on('click', '.slick-cloned a', function (e) {
43				$(selector)
44					.eq(($(e.currentTarget).attr("data-slick-index") || 0) % $(selector).length)
45					.trigger("click.fb-start", {
46						$trigger: $(this)
47					});
48				return false;
49			});
50		}
51
52});
53
54})(jQuery);
55
56// Other code using $ as an alias to the other library

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.