PageSourceSearch

https://unaids.org.br/wp-content/themes/organic-adventure/js/jquery.custom.js?ver=20130729

js unaids.org.br collected 2026-10-02 04:17:14 UTC 2,741 bytes, 108 lines download raw bytes

1( function( $ ) {
2
3	function removeNoJsClass() {
4		$( 'html:first' ).removeClass( 'no-js' );
5	}
6	
7	/* Superfish the menu drops ---------------------*/
8	function superfishSetup() {
9		$('.menu').superfish({
10			delay: 200,
11			animation: {opacity:'show', height:'show'},
12			speed: 'fast',
13			cssArrows: true,
14			autoArrows:  true,
15			dropShadows: false
16		});
17	}
18
19	/* Flexslider ---------------------*/
20	function flexSliderSetup() {
21		if (($).flexslider) {
22			var slider = $('.flexslider');
23			slider.fitVids().flexslider({
24				slideshowSpeed		: slider.attr('data-speed'),
25				animationDuration	: 600,
26				animation			: slider.attr('data-transition'),
27				video				: false,
28				useCSS				: false,
29				prevText			: '<i class="fa fa-angle-left"></i>',
30				nextText			: '<i class="fa fa-angle-right"></i>',
31				touch				: false,
32				animationLoop		: true,
33				smoothHeight		: true,
34				
35				start: function(slider) {
36					slider.removeClass('loading');
37					$( ".preloader" ).hide();
38				}
39			});
40		}
41	}
42		
43	/* Portfolio Filter ---------------------*/
44	function isotopeSetup() {
45		var mycontainer = $('#portfolio-list');
46		mycontainer.isotope({
47			itemSelector: '.portfolio-item'
48		});
49	
50		// filter items when filter link is clicked
51		$('#portfolio-filter a').click(function(){
52			var selector = $(this).attr('data-filter');
53			mycontainer.isotope({ filter: selector });
54			return false;
55		});
56	}
57	
58	/* Masonry ---------------------*/
59	$(document).ready(function() { 
60		$('.category-wrap').masonry({
61			itemSelector : '.third',
62			gutterWidth : 0,
63			isAnimated: false,
64			columnWidth : function( containerWidth ) {
65			    return containerWidth / 3; }
66		}).imagesLoaded(function() {
67			$('.category-wrap').masonry('reload');
68		});
69	});
70	
71	/* Equal Height Profile ---------------------*/
72	function heightSetup() {
73		$(".featured-page .desktop-profile").css({'height':($(".featured-page .eleven.columns").height()+'px')});
74	}
75		
76	function modifyPosts() {
77		
78		/* Insert Line Break Before More Links ---------------------*/
79		$('<br />').insertBefore('.more-link');
80		
81		/* Hide Comments When No Comments Activated ---------------------*/
82		$('.nocomments').parent().css('display', 'none');
83		
84		/* Animate Page Scroll ---------------------*/
85		$(".scroll").click(function(event){
86			event.preventDefault();
87			$('html,body').animate({scrollTop:$(this.hash).offset().top}, 500);
88		});
89		
90		/* Fit Vids ---------------------*/
91		$('.feature-vid, .article').fitVids();
92	
93	}
94	
95	$( document )
96	.ready( removeNoJsClass )
97	.ready( superfishSetup )
98	.ready( modifyPosts )
99	.ready( heightSetup )
100	.on( 'post-load', modifyPosts );
101	
102	$( window )
103	.load( flexSliderSetup )
104	.load( isotopeSetup )
105	.resize( heightSetup )
106	.resize( isotopeSetup );
107	
108})( 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.