PageSourceSearch

https://rokeby.org/wp-content/themes/organic_seed/js/jquery.custom.js?ver=20130729

js rokeby.org collected 2026-10-03 20:18:56 UTC 3,151 bytes, 127 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				pauseOnAction		: true,
35				pauseOnHover		: false,
36				
37				start: function(slider) {
38					slider.removeClass('loading');
39				}
40			});
41		}
42	}
43		
44	/* Portfolio Filter ---------------------*/
45	function isotopeSetup() {
46		var mycontainer = $('#portfolio-list');
47		mycontainer.isotope({
48			itemSelector: '.portfolio-item'
49		});
50	
51		// filter items when filter link is clicked
52		$('#portfolio-filter a').click(function(){
53			var selector = $(this).attr('data-filter');
54			mycontainer.isotope({ filter: selector });
55			return false;
56		});
57	}
58	
59	/* Equalizr Content Height ---------------------*/
60	function equalHeight(group) {
61		$('.featured-pages').imagesLoaded( function() {
62			tallest = 0;
63			group.each(function() {
64				thisHeight = $(this).height();
65				if (thisHeight > tallest) {
66					tallest = thisHeight;
67				}
68			});
69			group.height(tallest);
70		});
71	}
72		
73	function modifyPosts() {
74		
75		/* Insert Line Break Before More Links ---------------------*/
76		$('<br />').insertBefore('.postarea .more-link');
77		
78		/* Hide Comments When No Comments Activated ---------------------*/
79		$('.nocomments').parent().css('display', 'none');
80		
81		/* Animate Page Scroll ---------------------*/
82		$(".scroll").click(function(event){
83			event.preventDefault();
84			$('html,body').animate({scrollTop:$(this.hash).offset().top}, 500);
85		});
86		
87		/* Fit Vids ---------------------*/
88		$('.feature-vid, .postarea').fitVids();
89		
90		/* jQuery UI Tabs ---------------------*/
91		$(function() {
92			$( ".organic-tabs" ).tabs();
93		});
94		
95		/* jQuery UI Accordion ---------------------*/
96		$(function() {
97			$( ".organic-accordion" ).accordion({
98				collapsible: true,
99				heightStyle: "content"
100			});
101		});
102		
103		/* Close Message Box ---------------------*/
104		$('.organic-box a.close').click(function() {
105			$(this).parent().stop().fadeOut('slow', function() {
106			});
107		});
108		
109		/* Toggle Box ---------------------*/
110		$('.toggle-trigger').click(function() {
111			$(this).toggleClass("active").next().fadeToggle("slow");
112		});
113	}
114	
115	$( document )
116	.ready( removeNoJsClass )
117	.ready( superfishSetup )
118	.ready( modifyPosts )
119	.on( 'post-load', modifyPosts );
120	
121	$( window )
122	.load( flexSliderSetup )
123	.load( isotopeSetup )
124	.load( equalHeight($('.text-holder')) )
125	.resize( isotopeSetup );
126	
127})( 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.