PageSourceSearch

https://readingandreaders.com/wp-content/themes/satchmo-secondline/js/script.js?ver=20200206

js readingandreaders.com collected 2026-10-02 23:27:08 UTC 7,985 bytes, 261 lines download raw bytes

1/*
2
3[TABLE OF CONTENTS]
4
501. Main Navigation
602. FitVids
703. Mobile Navigation
804. FlexSlider
905. Scroll to Top
1006. prettyPhoto
1107. Fixed Navigation
1208. One Page Navigation
1309. Comments Scroll
1410. Media Player
1511. Match Height
1612. Header search
17
18*/
19
20
21
22
23jQuery(document).ready(function($) {
24	 'use strict';
25
26
27
28/*
29============= 01. Main Navigation  =============
30*/
31	 jQuery('.secondline-themes-one-page-nav-off nav#site-navigation ul.sf-menu').superfish({
32			 	popUpSelector: 'ul.sub-menu,.sf-mega', 	// within menu context
33	 			delay:      	200,                	// one second delay on mouseout
34	 			speed:      	0,               		// faster \ speed
35		 		speedOut:    	200,             		// speed of the closing animation
36				animation: 		{opacity: 'show'},		// animation out
37				animationOut: 	{opacity: 'hide'},		// adnimation in
38		 		cssArrows:     	true,              		// set to false
39			 	autoArrows:  	true,                    // disable generation of arrow mark-up
40		 		disableHI:      true,
41	 });
42
43
44
45/*
46============= 02. . FitVids  =============
47*/
48	 $("#content-slt, #blog-post-title-meta-container .single-player-container-secondline.embed-player-single-slt .single-video-secondline").fitVids();
49
50
51/*
52============= 03. Mobile Navigation  =============
53*/
54
55   	$('ul.mobile-menu-slt').slimmenu({
56   	    resizeWidth: '1024',
57   	    collapserTitle: 'Menu',
58   	    easingEffect:'easeInOutQuint',
59   	    animSpeed:350,
60   	    indentChildren: false,
61   		childrenIndenter: '- '
62   	});
63
64
65	$('.mobile-menu-icon-slt').click(function(e){
66		e.preventDefault();
67		$('#main-nav-mobile').slideToggle(350);
68		$("#masthead-slt").toggleClass("active-mobile-icon-slt");
69	});
70
71
72
73
74/*
75============= 04. FlexSlider  =============
76*/
77    $('.secondline-themes-gallery, .secondline-gallery').flexslider({
78		animation: "fade",
79		slideDirection: "horizontal",
80		slideshow: false,
81		smoothHeight: false,
82		slideshowSpeed: 7000,
83		animationSpeed: 1000,
84		directionNav: true,
85		controlNav: true,
86		prevText: "",
87		nextText: "",
88    });
89
90
91/*
92============= 05. Scroll to Top  =============
93*/
94  	// browser window scroll (in pixels) after which the "back to top" link is shown
95  	var offset = 150,
96
97	//browser window scroll (in pixels) after which the "back to top" link opacity is reduced
98  	offset_opacity = 1200,
99
100	//duration of the top scrolling animation (in ms)
101  	scroll_top_duration = 700;
102
103
104	/* Scroll to link inside page */
105	$('a.scroll-to-link').click(function(){
106	  $('html, body').animate({
107	    scrollTop: $( $.attr(this, 'href') ).offset().top - slt_top_offset
108	  }, 400);
109	  return false;
110	});
111
112
113/*
114============= 06. prettyPhoto  =============
115*/
116
117  	$("#secondline-woocommerce-single-top a[data-rel^='prettyPhoto'], .secondline-elements-slider-background a[data-rel^='prettyPhoto'], #page-title-slt-post-page a[data-rel^='prettyPhoto'], .secondline-themes-default-blog-overlay a[data-rel^='prettyPhoto'], .secondline-themes-image-grid a[data-rel^='prettyPhoto'], .secondline-featured-image a[data-rel^='prettyPhoto']").prettyPhoto({
118			theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
119  			hook: 'data-rel',
120			opacity: 0.7,
121  			show_title: false, /* true/false */
122  			deeplinking: false, /* Allow prettyPhoto to update the url to enable deeplinking. */
123  			overlay_gallery: false, /* If set to true, a gallery will overlay the fullscreen image on mouse over */
124  			custom_markup: '',
125			default_width: 1100,
126			default_height: 619,
127  			social_tools: '' /* html or false to disable */
128  	});
129
130
131  	$("a.lightbox, .lightbox a").prettyPhoto({
132			theme: 'pp_default', /* light_rounded / dark_rounded / light_square / dark_square / facebook */
133  			hook: 'class',
134			opacity: 0.7,
135  			show_title: false, /* true/false */
136  			deeplinking: false, /* Allow prettyPhoto to update the url to enable deeplinking. */
137  			overlay_gallery: false, /* If set to true, a gallery will overlay the fullscreen image on mouse over */
138  			custom_markup: '',
139			default_width: 1100,
140			default_height: 619,
141  			social_tools: '' /* html or false to disable */
142  	});
143
144
145
146/*
147============= 07. Fixed Navigation  =============
148*/
149
150	var slt_top_offset = $('header#masthead-slt').height();  // get height of fixed navbar
151
152	var slt_top_offset_sidebar = $('#secondline-fixed-nav').height() + 30 ;
153
154
155	$('#secondline-fixed-nav').scrollToFixed({ minWidth: 1024 });
156
157	$(window).resize(function() {
158	   var width_secondline = $(document).width();
159	      if (width_secondline > 1023) {
160				/* STICKY HEADER CLASS */
161				$(window).on('load scroll resize orientationchange', function () {
162
163				    var scroll = $(window).scrollTop();
164				    if (scroll >=  slt_top_offset - 1  ) {
165				        $("#secondline-fixed-nav").addClass("secondline-fixed-scrolled");
166				    } else {
167				        $("#secondline-fixed-nav").removeClass("secondline-fixed-scrolled");
168				    }
169				});
170			} else {
171				$('#secondline-fixed-nav').trigger('detach.ScrollToFixed');
172			}
173
174	}).resize();
175
176
177
178/*
179============= 08. One Page Navigation  =============
180*/
181
182/*
183============= 09. Comments Scroll  =============
184*/
185	$("#page-title-slt-post-page .blog-meta-comments").click(function(){
186	    $('html, body').animate({scrollTop: $("#comments").offset().top - 140}, 600);
187	});
188
189	// Meta seperator fix //
190	$('body .secondline-post-meta').each(function() {
191		$(this).find('span:visible:last').addClass('secondline-visible-last');
192	});
193
194
195/*
196============= 10. Media Player  =============
197*/
198
199	$('body .post-list-player-container-secondline').each(function() {			
200		var playerwidth = $(this).width();
201		if(playerwidth < 585) {
202			$(this).find('.mejs-container').css('cssText', 'width: 100% !important');
203			$(this).find('.powerpress_links_mp3, .podcast_meta').css('cssText', 'top: 40px !important');
204		}
205	});
206
207
208/*
209============= 11. Match Height  =============
210*/
211
212	$(function() {
213		$(".single-column-slt .secondline-themes-feaured-image img, .secondline-themes-single-post-main .secondline-themes-feaured-image img").addClass("match-height-slt");
214		$(".single-column-slt .secondline-blog-content, .secondline-themes-single-post-main .secondline-blog-content").addClass("match-height-slt");
215		$(".single-column-slt.secondline_elements_post_list_disable_match .secondline-themes-feaured-image img, .secondline-themes-single-post-main .secondline_elements_post_list_disable_match .secondline-themes-feaured-image img").removeClass("match-height-slt");
216		$(".single-column-slt.secondline_elements_post_list_disable_match .secondline-blog-content, .secondline-themes-single-post-main .secondline_elements_post_list_disable_match .secondline-blog-content").removeClass("match-height-slt");
217		if (window.innerWidth > 767) {
218		  $('.match-height-slt').matchHeight();
219		  $('body .grid-columns-slt.fitRows-secondline .secondline-blog-content').matchHeight({byRow: true,});
220        };
221	});
222
223
224/*
225============= 12. Header Search  =============
226*/
227
228var hidesearch = false;
229var clickOrTouch = (('ontouchend' in window)) ? 'touchend' : 'click';
230
231$("#secondline-themes-header-search-icon i.fa-search").on(clickOrTouch, function(e) {
232	var clicks = $(this).data('clicks');
233		if (clicks) {
234			 $("#secondline-themes-header-search-icon").removeClass("active-search-icon-slt");
235			 $("#secondline-themes-header-search-icon").addClass("hide-search-icon-slt");
236
237		} else {
238			 $("#secondline-themes-header-search-icon").addClass("active-search-icon-slt");
239			$("#secondline-themes-header-search-icon").removeClass("hide-search-icon-slt");
240		}
241		$(this).data("clicks", !clicks);
242});
243
244
245	if ($(this).width() > 959) {
246	    $("#secondline-shopping-cart-toggle").hover(function(){
247	        if (hidecart) clearTimeout(hidecart);
248			$("#secondline-shopping-cart-toggle").addClass("activated-class").removeClass("hover-out-class");
249	    }, function() {
250	        hidecart = setTimeout(function() {
251				$("#secondline-shopping-cart-toggle").removeClass("activated-class").addClass("hover-out-class");
252			}, 100);
253	    });
254
255	}
256
257
258
259
260
261});

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.