PageSourceSearch

https://www.gamingdeputy.com/wp-content/plugins/wp-automatic/js/main-front.js?ver=1.0.1

js gamingdeputy.com collected 2026-09-24 17:41:29 UTC 1,604 bytes, 41 lines download raw bytes

1jQuery(document).ready(function(){
2	
3	var attrName = 'data-a-src' ;
4	if(jQuery('.wp_automatic_gallery').attr('data-a-src') == undefined) attrName = 'src'; 
5	
6	var wp_automatic_main_scr = jQuery('.wp_automatic_gallery:first-child').attr(attrName);
7	 
8	jQuery('.wp_automatic_gallery:first-child').before('<div class="wp_automatic_gallery_wrap"><div style="background-image:url(\'' + wp_automatic_main_scr +'\')" class="wp_automatic_gallery_main" ></div><div class="clear"></div></div>');
9	
10	
11	jQuery('.wp_automatic_gallery').each(function(){
12		
13		jQuery('.wp_automatic_gallery_wrap').append('<div class="wp_automatic_gallery_btn" style="background-image:url(\''+ jQuery(this).attr( attrName ) + '\')" ></div>');
14		jQuery(this).remove();
15	});
16	
17	//append inside the wp_automatic_gallery_wrap at the end a clear div and a br
18	jQuery('.wp_automatic_gallery_wrap').append('<div style="clear:both"></div><br>');
19
20	//remove duplicates by looping every wp_automatic_gallery_wrap and remove the duplicate wp_automatic_gallery_btn
21	jQuery('.wp_automatic_gallery_wrap').each(function(){
22		var seen = {};
23		jQuery(this).find('.wp_automatic_gallery_btn').each(function() {
24			var bg = jQuery(this).css('background-image');
25			if (seen[bg]) {
26				jQuery(this).remove();
27			} else {
28				seen[bg] = true;
29			}
30		});
31	});
32
33	//on click of any wp_automatic_gallery_btn change the background image of wp_automatic_gallery_main to the clicked one
34	jQuery('.wp_automatic_gallery_btn').click(function(){
35	  
36	  jQuery('.wp_automatic_gallery_main').css('background-image', jQuery(this).css('background-image')  );
37	  
38	});
39
40	
41});

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.