PageSourceSearch

https://roco.org/wp-content/themes/rocohouston-2015/js/global.js?ver=1

js roco.org collected 2026-09-25 20:09:15 UTC 4,111 bytes, 187 lines download raw bytes

1jQuery(function($){
2
3	// FitVids
4	// $('.entry-content, .extra-section').fitVids();
5	
6	// Search in Nav
7	$('.genesis-nav-menu .menu-item.search i, .page-header .button.search').click(function(){
8		$('.header-search').slideToggle();
9		$('.header-search input[type="search"]').focus();
10	});
11	
12	// Podcasts and Videos, open in new window
13	$('.blog-archive .entry.category-podcasts-videos a').each(function(){
14		$(this).attr('target', '_blank');
15	});
16	
17	// Mobile Menu
18	$('#mobile-menu').sidr({
19		displace: false,
20		onOpen: function(){ $('#mobile-menu i').toggleClass('hidden');},
21		onClose: function(){ $('#mobile-menu i').toggleClass('hidden');},
22	});
23	
24	// Home Rotator
25	$('.home-top .performance .flexslider').flexslider({
26		controlNav: false,
27		directionNav: false
28	});	
29	
30	// Home Video
31	$('.video-popup').magnificPopup({
32		disableOn: 700,
33		type: 'iframe',
34		mainClass: 'mfp-fade',
35		removalDelay: 160,
36		preloader: false,
37
38		fixedContentPos: false
39	});
40	
41	// Home Middle
42	$('.home-middle > div' ).matchHeight();
43	
44	
45	// Anytime, Anywhere full height content
46	function anytime_content_height(){
47		var height = $(window).height();
48		var offset = $('.site-header').innerHeight() + $('.site-footer').innerHeight() | $('#wpadminbar').innerHeight();
49		if( $('body').hasClass('admin-bar') )
50			offset = offset + 32;
51		var contentHeight = height - offset;
52		$('.site-inner').css('min-height', contentHeight + 'px');
53		
54		var innerHeight = $('.entry-content').innerHeight() + 100;
55		if( innerHeight < contentHeight )
56			$('.entry-content').css('margin-top', ( ( contentHeight - innerHeight ) / 2 ) + 'px' );
57	}
58	if( $('body').hasClass('page-template-anytime-anywhere-php' ) ) {
59		anytime_content_height();
60		$(window).resize(function(){ anytime_content_height(); });
61	}
62	
63	// Sponsors Listing
64	var sponsorsListing = $('.sponsors-listing');
65	if( sponsorsListing.length ) {
66		var container = $(sponsorsListing).imagesLoaded(function(){
67			container.isotope({
68				itemSelector: '.logo',
69				layoutMode: 'fitRows',
70			});
71			$(sponsorsListing).addClass('loaded');
72		});
73	}
74	
75	// Artist Listing
76	var artistListing = $('.entry-grid');
77	if( artistListing.length ) {
78		var container = $(artistListing).imagesLoaded(function(){
79			container.isotope({
80				itemSelector: '.entry',
81				layoutMode: 'fitRows',
82			});
83			$(artistListing).addClass('loaded');
84		});
85		
86		$('.artist-filters').on('click', '.button', function(e){
87			var filterValue = $(this).attr('data-filter');
88			container.isotope({ filter: filterValue });
89			e.preventDefault();
90		});
91	}
92
93	$(window).scroll(function() {    
94		var scroll = $(window).scrollTop();
95
96		if (scroll >= 160) {
97			$(".site-header").addClass("darkHeader");
98		} else {
99			$(".site-header").removeClass("darkHeader");
100		}
101	});
102
103	jQuery(document).ready(function($) {
104		$('.quote-carousel').slick({
105			dots: false,
106			arrows: false,
107			autoplay: true,
108			autoplaySpeed: 8000,
109 			pauseOnHover: false,
110			fade: false,
111			speed: 800
112		});
113
114		$('.performances-carousel').slick({
115			slidesToShow: 3,
116			slidesToScroll: 3,
117			autoplay: true,
118			autoplaySpeed: 5000,
119			dots: false,
120			arrows: true,
121			speed: 2000,
122			prevArrow: '<span class="roco-nav-arrows prev-arrow"><</span>',
123			nextArrow: '<span class="roco-nav-arrows next-arrow">></span>',
124			responsive: [
125			{
126				breakpoint: 1024,
127				settings: {
128					slidesToShow: 2
129				}
130			},
131			{
132				breakpoint: 768,
133				settings: {
134					slidesToShow: 1
135				}
136			}
137			]
138		});
139
140		$('.slick-carousel').slick({
141			slidesToShow: 4,
142			slidesToScroll: 4,
143			autoplay: true,
144			autoplaySpeed: 3000,
145			dots: true,
146			arrows: false,
147			responsive: [
148			{
149				breakpoint: 1024,
150				settings: {
151					slidesToShow: 3
152				}
153			},
154			{
155				breakpoint: 768,
156				settings: {
157					slidesToShow: 1
158				}
159			}
160			]
161		});
162
163		$('.slick-carousel-two').slick({
164			slidesToShow: 4,
165			slidesToScroll: 4,
166			autoplay: true,
167			autoplaySpeed: 3000,
168			dots: true,
169			arrows: false,
170			responsive: [
171			{
172				breakpoint: 1024,
173				settings: {
174					slidesToShow: 3
175				}
176			},
177			{
178				breakpoint: 768,
179				settings: {
180					slidesToShow: 1
181				}
182			}
183			]
184		});
185	});
186	
187});

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.