PageSourceSearch

https://asociaciontonina.com/wp-content/themes/vernissage/js/jquery.custom.js?ver=1.0

js asociaciontonina.com collected 2026-10-08 16:17:24 UTC 6,815 bytes, 307 lines download raw bytes

1/*
2
3Tokist - Photography/Portfolio Wordpress Theme
4Site : http://themeforest.net/user/kotofey
5Author : Constantine
6
7 */
8
9jQuery(function () {
10
11	//Drop Down Menu
12
13	jQuery(".main-nav .sub-menu").hide();
14
15	jQuery(".main-nav li").hover(
16		function () {
17		jQuery(this).find('.sub-menu:first').stop(true, true).slideDown(250, 'easeOutCubic')
18	},
19		function () {
20		jQuery(this).find('.sub-menu:first').fadeOut(50)
21	});
22
23	// Menu animation
24
25	var el = jQuery('.page-template-template-homepage-php .main-nav, .page-template-template-homepage-php .logo, .home-teaser'),
26	menu = jQuery('.page-template-template-homepage-php .main-nav, .page-template-template-homepage-php .logo'),
27	ctrl = jQuery('.page-template-template-homepage-php li.hideall');
28
29	el.css({
30		marginTop : -250,
31		opacity : 0
32	});
33
34	jQuery(window).load(function () {
35
36		menu.each(function (index) {
37			jQuery(this).delay(100 * index).animate({
38				marginTop : 0,
39				opacity : 1
40			}, 500, 'easeOutExpo');
41		})
42
43		jQuery('.home-teaser').delay(300).animate({
44			marginTop : 250,
45			opacity : 1
46		}, 1000, 'easeOutExpo');
47
48	})
49
50	// Animation
51
52	imageTip = jQuery('.blog-thumb a, .linkto, .gallery-thumb a');
53
54	imageTip.hover(
55		function () {
56		jQuery(this).find('.hover-icon').stop(true, true).animate({
57			top : '50%'
58		}, 500, 'easeOutExpo');
59	},
60		function () {
61		jQuery(this).find('.hover-icon').stop(true, true).animate({
62			top : '150%'
63		}, 200, function () {
64			jQuery(this).css({
65				top : '-25%'
66			})
67		});
68	});
69
70	jQuery(window).load(function () {
71		jQuery('.slider-thumb-tray').animate({
72			bottom : 10
73		}, 1000, 'easeOutBack');
74	});
75
76	//Portfolio filtering
77
78	if (jQuery().isotope) {
79		jQuery(window).load(function () {
80
81			jQuery(function () {
82				var isotopeContainer = jQuery('.portfolio-wrapper, .gallery-wrapper'),
83				isotopeFilter = jQuery('#filter'),
84				isotopeLink = isotopeFilter.find('a');
85				isotopeContainer.isotope({
86					itemSelector : '.isotope-item',
87					layoutMode : 'fitRows',
88					filter : '.all'
89				});
90
91				isotopeLink.click(function () {
92					var selector = jQuery(this).attr('data-category');
93					isotopeContainer.isotope({
94						filter : '.' + selector,
95						itemSelector : '.isotope-item',
96						layoutMode : 'fitRows',
97						animationEngine : 'best-available'
98					});
99					isotopeLink.removeClass('active');
100					jQuery(this).addClass('active');
101					return false;
102				});
103
104			});
105
106		});
107	}
108
109	//Masonry
110
111	if (jQuery().masonry) {
112
113		var container = jQuery('.gallery-magic');
114
115		container.imagesLoaded(function () {
116			container.masonry({
117				itemSelector : '.masonry',
118				isAnimated : true,
119				columnWidth : 1
120			});
121		});
122
123		var container_2 = jQuery('.gallery-full-masonry');
124		var masonry_box = jQuery('.masonry-box');
125
126		masonry_box.css({
127			'visibility' : 'hidden',
128			opacity : 0
129		});
130
131		jQuery(window).load(function () {
132			container_2.masonry({
133				itemSelector : masonry_box,
134				isAnimated : true,
135				columnWidth : 1
136			});
137
138			masonry_box.css({
139				'margin-top' : 50
140			});
141
142			masonry_box.each(function (index) {
143				jQuery(this).css({
144					'visibility' : 'visible'
145				}).delay(100 * index).animate({
146					opacity : 1,
147					'margin-top' : 0
148				}, 400);
149			});
150		});
151	} else {
152
153		var masonry_box = jQuery('.masonry-box');
154		masonry_box.css({
155			'visibility' : 'hidden',
156			opacity : 0
157		});
158
159		jQuery(window).load(function () {
160
161			masonry_box.css({
162				'margin-top' : 50
163			});
164
165			masonry_box.each(function (index) {
166				jQuery(this).css({
167					'visibility' : 'visible'
168				}).delay(100 * index).animate({
169					opacity : 1,
170					'margin-top' : 0
171				}, 400);
172			});
173		});
174
175	}
176
177	// PrettyPhoto
178
179	if (jQuery().prettyPhoto) {
180		jQuery("a[rel^='prettyPhoto']").prettyPhoto({
181			social_tools : false,
182			deeplinking : false,
183			theme : 'pp_default' /* pp_default / light_rounded / dark_rounded / light_square / dark_square / facebook */
184		});
185
186		jQuery("a[class^='prettyPhoto'], a[rel^='prettyPhoto']").live("click", function () {
187			jQuery.prettyPhoto.open(jQuery(this).attr("href"), "", "");
188			return false;
189		});
190	}
191
192	// Tabs
193
194	jQuery('.tabs').tabs();
195
196	// Mobile menu
197
198	jQuery('.main-nav .menu').mobileMenu({
199		defaultText : 'Menu',
200		className : 'mobile-menu',
201		subMenuDash : '–'
202	});
203
204	//Search
205
206	jQuery('#s').each(
207		function () {
208		if (jQuery(this).val() === '' || jQuery(this).val() === 'To search type and hit enter') {
209			jQuery(this).val('To search type and hit enter');
210			jQuery(this).blur(
211				function () {
212				if (jQuery(this).val() === '') {
213					jQuery(this).val('To search type and hit enter');
214				}
215			});
216
217			jQuery(this).focus(
218				function () {
219				if (jQuery(this).val() === '' || jQuery(this).val() === 'To search type and hit enter') {
220					jQuery(this).val('');
221				}
222			});
223		}
224	});
225
226	// Tipsy
227
228	jQuery(".social a, .flickr_badge_image a img").tipsy({
229		gravity : 's',
230		fade : true
231	});
232
233	jQuery(".bg-slider-ctrl span >a, .m-pause > a").tipsy({
234		gravity : 'n',
235		fade : true
236	});
237
238	// Images Preloader
239
240	if (jQuery().preloader) {
241		jQuery(document).ready(function () {
242			jQuery(".load-item, .gallery-wrapper, .gallery-magic, .portfolio-wrapper").preloader();
243		});
244	}
245
246	// Fullscreen
247
248	jQuery('#showall, #hideall').click(function (event) {
249		event.preventDefault();
250	});
251
252	jQuery('#hideall').click(function () {
253
254		jQuery('.logo, .main-nav, .hideall').each(function (index) {
255			jQuery(this).delay(40 * index).animate({
256				marginTop : -300
257			}, 300, 'easeInExpo');
258		})
259
260		jQuery('.container, .content, .home-teaser, #fade-fix').delay(250).fadeOut(250, function () {
261
262			jQuery('#hideall').css('display', 'none');
263			jQuery('.showall, .prev-slide, .next-slide').css('display', 'block').animate({
264				marginTop : 0
265			}, 500, 'easeOutExpo');
266
267		});
268
269	});
270
271	jQuery('#showall').click(function () {
272
273		jQuery('.showall, .prev-slide, .next-slide').animate({
274			marginTop : -300
275		}, 300, 'easeInExpo', function () {
276			jQuery(this).css('display', 'none')
277		});
278
279		jQuery('.container, .content, .home-teaser, #fade-fix').delay(250).fadeIn(300, function () {
280
281			jQuery('#hideall').css('display', 'block');
282			jQuery('.main-nav, .logo, .hideall').each(function (index) {
283				jQuery(this).delay(100 * index).animate({
284					marginTop : 0
285				}, 500, 'easeOutExpo')
286			});
287		});
288
289	});
290
291	jQuery(document).swipe({
292		swipeLeft : function () {
293			try {
294				document.createEvent("TouchEvent");
295				api.nextSlide();
296			} catch (e) {}
297		},
298
299		swipeRight : function () {
300			try {
301				document.createEvent("TouchEvent");
302				api.prevSlide();
303			} catch (e) {}
304		}
305	});
306
307});

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.