PageSourceSearch

http://www.ccgevrey-chambertin-et-nuits-saint-georges.com/wp-conte…/gallery/gallery.js?ver=7.1.2

js ccgevrey-chambertin-et-nuits-saint-georges.com collected 2026-10-01 16:27:31 UTC 2,497 bytes, 101 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), images = gallery.find('img'), big_prev = gallery.find('.avia-gallery-big');
14	
15	
16			//trigger displaying of thumbnails
17			gallery.on('avia_start_animation', function()
18			{
19				images.each(function(i)
20				{
21					var image = $(this);
22					setTimeout(function(){ image.addClass('avia_start_animation') }, (i * 110));
23				});
24			});
25			
26			if(gallery.hasClass('deactivate_avia_lazyload')) gallery.trigger('avia_start_animation');
27	
28			//trigger thumbnail hover and big prev image change
29			if(big_prev.length)
30			{
31				gallery.on('mouseenter','.avia-gallery-thumb a', function()
32				{
33					var _self = this;
34	
35					big_prev.attr('data-onclick', _self.getAttribute("data-onclick"));
36					big_prev.height(big_prev.height());
37					big_prev.attr('href', _self.href)
38	
39					var newImg 		= _self.getAttribute("data-prev-img"),
40						oldImg 		= big_prev.find('img'),
41						oldImgSrc 	= oldImg.attr('src');
42	
43					if(newImg != oldImgSrc)
44					{
45						var next_img = new Image();
46						next_img.src = newImg;
47						
48						var $next = $(next_img);
49						
50						if(big_prev.hasClass('avia-gallery-big-no-crop-thumb'))
51						{
52							$next.css({'height':big_prev.height(),'width':'auto'});
53						}
54						
55						big_prev.stop().animate({opacity:0}
55, function()
56						{
57							$next.insertAfter(oldImg);
58							oldImg.remove();
59							big_prev.animate({opacity:1});
60							
61							big_prev.attr('title',$(_self).attr('title'));
62							
63						});
64					}
65				});
66	
67				big_prev.on('click', function()
68				{
69					var imagelink = gallery.find('.avia-gallery-thumb a').eq(this.getAttribute("data-onclick") - 1);
70	
71					if(imagelink && !imagelink.hasClass('aviaopeninbrowser'))
72					{
73						imagelink.trigger('click');
74					}
75					else if(imagelink)
76					{
77						var imgurl = imagelink.attr("href");
78	
79						if(imagelink.hasClass('aviablank') && imgurl != '' )
80						{
81							window.open(imgurl, '_blank');
82						}
83						else if( imgurl != '' )
84						{
85							window.open(imgurl, '_self');
86						}
87					}
88					return false;
89				});
90	
91	
92				$(window).on("debouncedresize", function()
93				{
94				  	big_prev.height('auto');
95				});
96	
97			}
98		});
99	}
100
101}(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.