PageSourceSearch

https://goffandgoffattorneys.com/wp-content/themes/goff/config-tem…/gallery/gallery.js?ver=7.1.2

js goffandgoffattorneys.com collected 2026-10-04 20:36:27 UTC 2,722 bytes, 104 lines download raw bytes

1(function($)
2{ 
3	"use strict";
4	
5	// -------------------------------------------------------------------------------------------
6	// Gallery shortcode javascript
7	// -------------------------------------------------------------------------------------------
8	
9	$.fn.avia_sc_gallery = function(options)
10	{
11		return this.each(function()
12		{
13			var gallery = $(this), 
14				images = gallery.find('img'), 
15				big_prev = gallery.find('.avia-gallery-big');
16	
17	
18			//trigger displaying of thumbnails
19			gallery.on('avia_start_animation', function()
20			{
21				images.each(function(i)
22				{
23					var image = $(this);
24					setTimeout(function(){ image.addClass('avia_start_animation') }, (i * 110));
25				});
26			});
27			
28			if(gallery.hasClass('deactivate_avia_lazyload')) gallery.trigger('avia_start_animation');
29	
30			//trigger thumbnail hover and big prev image change
31			if(big_prev.length)
32			{
33				gallery.on('mouseenter','.avia-gallery-thumb a', function()
34				{
35					var _self = this;
36	
37					big_prev.attr('data-onclick', _self.getAttribute("data-onclick"));
38					big_prev.height(big_prev.height());
39					big_prev.attr('href', _self.href)
40	
41					var newImg 		= _self.getAttribute("data-prev-img"),
42						oldImg 		= big_prev.find('img'),
43						oldImgSrc 	= oldImg.attr('src');
44	
45					if(newImg != oldImgSrc)
46					{
47						var next_img = new Image();
48						next_img.src = newImg;
49						
50						var $next = $(next_img);
51						
52						if(big_prev.hasClass('avia-gallery-big-no-crop-thumb'))
53						{
54							$next.css({'height':big_prev.height(),'width':'auto'});
55						}
56						
57						big_prev.stop().animate({opacity:0}
57, function()
58						{
59							$next.insertAfter(oldImg);
60							oldImg.remove();
61							big_prev.animate({opacity:1});
62							
63							big_prev.attr('title',$(_self).attr('title'));
64							
65						});
66					}
67				});
68	
69				big_prev.on('click', function()
70				{
71					var imagelink = gallery.find('.avia-gallery-thumb a').eq(this.getAttribute("data-onclick") - 1);
72	
73					if(imagelink && !imagelink.hasClass('aviaopeninbrowser'))
74					{
75						imagelink.trigger('click');
76					}
77					else if(imagelink)
78					{
79						var imgurl = imagelink.attr("href");
80						var secure = imagelink.hasClass( 'custom_link' ) ? 'noopener,noreferrer' : '';
81						
82						if( imagelink.hasClass('aviablank') && imgurl != '' )
83						{
84							window.open( imgurl, '_blank', secure );
85						}
86						else if( imgurl != '' )
87						{
88							window.open( imgurl, '_self', secure );
89						}
90					}
91					return false;
92				});
93	
94	
95				$(window).on("debouncedresize", function()
96				{
97				  	big_prev.height('auto');
98				});
99	
100			}
101		});
102	};
103
104}(jQuery));

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.