PageSourceSearch

https://eddiestern.com/wp-content/themes/cardinal-child/js/script.js?ver=1.0

js eddiestern.com collected 2026-10-04 03:57:14 UTC 16,880 bytes, 283 lines download raw bytes

1jQuery( document ).ready(function() {
2	
3  jQuery( ".close-announcement" ).on( "click", function() {
4    jQuery( this ).parent().hide();
5  });
6	jQuery(document).on("touchstart", ".close-announcement", function() {
7      jQuery( this ).parent().hide();
8    });
9	
10	jQuery('.flexrow').find('.spb_text_column').parent().addClass('flexparent');
11	
12	jQuery('.page-id-18 .flexrow').find('.spb_text_column').parent().addClass('flexparent stretch');
13	
14	jQuery('.tribe-events-pro-week-grid__event-link.tooltipstered').removeAttr('href');
15	
16	// about page boxes links
17	jQuery('.page-id-18 .flexparent.stretch .col-sm-3').each(function( index ) {
18  		var link = jQuery(this).find('h2 a').attr('href');
19		jQuery(this).click(function() {
20			if(link.length) {
21 				window.open(link, '_blank');
22  				return false;
23		}
24		});
25	});
26	
27	// about page hover info
28	jQuery('.page-id-18 .flexparent.stretch:nth-child(1) .spb_text_column:nth-child(2)').hover(
29  		function() {
30    		jQuery( this ).find('.spb-asset-content').html( '<p>This app includes one year of daily micro-practices including postures, breathing, and meditation. It also includes an Ashtanga Yoga instructional series </p>' );
31  		}, function() {
32    		jQuery( this ).find('.spb-asset-content').html( '<h2><a href="https://yoga365.online/" target="_blank" rel="noopener">YOGA 365</a></h2>' );
33  		}
34	);
35	jQuery('.page-id-18 .flexparent.stretch:nth-child(1) .spb_text_column:nth-child(3)').hover(
36  		function() {
37    		jQuery( this ).find('.spb-asset-content').html( '<p>A free app that guides you in resonance breathing, a slow-paced breathing practice that harmonizes the autonomic nervous system </p>' );
38  		}, function() {
39    		jQuery( this ).find('.spb-asset-content').html( '<h2><a href="https://apps.apple.com/us/app/the-breathing-app/id1285982210" target="_blank" rel="noopener">BREATHING APP</a></h2>' );
40  		}
41	);
42	jQuery('.page-id-18 .flexparent.stretch:nth-child(1) .spb_text_column:nth-child(4)').hover(
43  		function() {
44    		jQuery( this ).find('.spb-asset-content').html( '<p>This is my book about the Eastern and Western views of the nervous system, and what the mechanisms in Yoga are that make it work so well</p>' );
45  		}, function() {
46    		jQuery( this ).find('.spb-asset-content').html( '<h2><a href="https://www.amazon.com/One-Simple-Thing-Science-Transform/dp/0865478392" target="_blank" rel="noopener">ONE SIMPLE THING</a></h2>' );
47  		}
48	);
49	jQuery('.page-id-18 .flexparent.stretch:nth-child(2) .spb_text_column:nth-child(1)').hover(
50  		function() {
51    		jQuery( this ).find('.spb-asset-content').html( '<p>18 videos that breakdown the entire Ashtanga Yoga Primary Series. You can purchase this on the Yoga365 app or the web-based version</p>' );
52  		}, function() {
53    		jQuery( this ).find('.spb-asset-content').html( '<h2><a href="https://core.live/shows/yoga-primary-series" target="_blank" rel="noopener">PRIMARY SERIES INSTRUCTIONAL VIDEOS</a></h2>' );
54  		}
55	);
56	jQuery('.page-id-18 .flexparent.stretch:nth-child(2) .spb_text_column:nth-child(2)').hover(
57  		function() {
58    		jQuery( this ).find('.spb-asset-content').html( '<p>A magazine and travel project with Robert Moses. Check out our back issues and upcoming trips to India</p>' );
59  		}, function() {
60    		jQuery( this ).find('.spb-asset-content').html( '<h2><a href="https://namarupa.org/" target="_blank" rel="noopener">NAMARUPA MAGAZINE</a></h2>' );
61  		}
62	);
63	jQuery('.page-id-18 .flexparent.stretch:nth-child(2) .spb_text_column:nth-child(3)').hover(
64  		function() {
65    		jQuery( this ).find('.spb-asset-content').html( '<p>A free Coursera course made for NYU Tandon School of Engineering with Dr. Tommy Lee, Prof. Ali Seidenstein,  and Dr. Erich Anderer. Covers the effects of Yoga on our physiology</p>' );
66  		}, function() {
67    		jQuery( this ).find('.spb-asset-content').html( '<h2><a href="https://www.coursera.org/learn/engineering-health-yoga-physiology" target="_blank" rel="noopener">YOGA &amp; PHYSIOLOGY COURSE</a></h2>' );
68  		}
69	);
70	jQuery('.page-id-18 .flexparent.stretch:nth-child(2) .spb_text_column:nth-child(4)').hover(
71  		function() {
72    		jQuery( this ).find('.spb-asset-content').html( '<p>Yoga Education Collective hosts classes, training, and workshops to further knowledge and experience in Yogic practices.</p>' );
73  		}, function() {
74    		jQuery( this ).find('.spb-asset-content').html( '<h2><a href="https://yogaeducationcollective.com" target="_blank" rel="noopener">YOGA EDUCATION COLLECTIVE</a></h2>' );
75  		}
76	);
77	
78	// home page 3 boxes links
79	jQuery('.home .flexrow.boxes .col-sm-4').each(function( index ) {
80  			var link = jQuery(this).find('h2 a').attr('href');
81			jQuery(this).click(function() {
82 			 	window.open(link, '_self');
83  				return false;
84			});
85	});
86	
87	jQuery('.home .two-boxes .spb_text_column:nth-child(2)').hover(
88  		function() {
89    		jQuery( this ).parent().css('background-color', '#FFBF75');
90  		}, function() {
91    		jQuery( this ).parent().css('background-color', 'white');
92  		}
93	);
94	
95	// home page sounds
96	/*
97	jQuery('.home .flexrow.boxes .col-sm-4:nth-child(1)').mouseenter(function(){
98		jQuery("<audio></audio>").attr({ 
99			'src':'https://eddiestern.com/wp-content/uploads/2021/06/magical-chimes.mp3', 
100			'volume':0.9,
101			'autoplay':'autoplay'
102		}).appendTo("body");
103	});
104	jQuery('.home .flexrow.boxes .col-sm-4:nth-child(2)').mouseenter(function(){
105		jQuery("<audio></audio>").attr({ 
106			'src':'https://eddiestern.com/wp-content/uploads/2022/09/ganesha-bell.mp3', 
107			'volume':0.9,
108			'autoplay':'autoplay'
109		}).appendTo("body");
110	});
111	jQuery('.home .flexrow.boxes .col-sm-4:nth-child(3)').mouseenter(function(){
112		jQuery("<audio></audio>").attr({ 
113			'src':'https://eddiestern.com/wp-content/uploads/2022/09/puja.mp3', 
114			'volume':0.9,
115			'autoplay':'autoplay'
116		}).appendTo("body");
117	});	
118	*/
119	
120	jQuery(".try-me").mouseenter(function(){
121		jQuery("<audio></audio>").attr({ 
122			'src':'https://eddiestern.com/wp-content/uploads/2021/06/tibetan-bell-sound.mp3', 
123			'volume':0.9,
124			'autoplay':'autoplay'
125		}).appendTo("body");
126	});
127	jQuery(".home-login").mouseenter(function(){
128		jQuery("<audio></audio>").attr({ 
129			'src':'https://eddiestern.com/wp-content/uploads/2021/06/cow-with-bell.mp3', 
130			'volume':0.9,
131			'autoplay':'autoplay'
132		}).appendTo("body");
133	});
134		
135	// schedule buttons
136	jQuery( ".in-person-button" ).click(function() {
137		jQuery(this).addClass('current');
138		jQuery( ".online-button" ).removeClass('current');
139		jQuery( ".intro-button" ).removeClass('current');
140  		jQuery( ".schedule.in-person" ).show();
141		jQuery( ".schedule.in-person-divider" ).show();
142		jQuery( ".schedule.zoom" ).hide();
143		jQuery( ".schedule.zoom-divider" ).hide();
144		jQuery( ".schedule.intro-text" ).hide();
145		jQuery( ".schedule.intro-text-divider" ).hide();
146		jQuery( ".schedule.intro" ).hide();
147		jQuery( ".schedule.intro-divider" ).hide();
148		jQuery( ".schedule.drop-ins" ).hide();
149		jQuery( ".schedule.intro-drop-ins" ).hide();
150		jQuery( ".visiting" ).hide();
151	});
152	jQuery( ".online-button" ).click(function() {
153		jQuery(this).addClass('current');
154		jQuery( ".in-person-button" ).removeClass('current');
155		jQuery( ".intro-button" ).removeClass('current');
156  		jQuery( ".schedule.in-person" ).hide();
157		jQuery( ".schedule.in-person-divider" ).hide();
158		jQuery( ".schedule.zoom" ).show();
159		jQuery( ".schedule.zoom-divider" ).show();
160		jQuery( ".schedule.intro-text" ).hide();
161		jQuery( ".schedule.intro-text-divider" ).hide();
162		jQuery( ".schedule.intro" ).hide();
163		jQuery( ".schedule.intro-divider" ).hide();
164		jQuery( ".schedule.drop-ins" ).hide();
165		jQuery( ".schedule.intro-drop-ins" ).hide();
166		jQuery( ".visiting" ).hide();
167	});
168	jQuery( ".intro-button" ).click(function() {
169		jQuery(this).addClass('current');
170		jQuery( ".in-person-button" ).removeClass('current');
171		jQuery( ".online-button" ).removeClass('current');
172  		jQuery( ".schedule.in-person" ).hide();
173		jQuery( ".schedule.in-person-divider" ).hide();
174		jQuery( ".schedule.zoom" ).hide();
175		jQuery( ".schedule.zoom-divider" ).hide();
176		jQuery( ".schedule.intro-text" ).hide();
177		jQuery( ".schedule.intro-text-divider" ).hide();
178		jQuery( ".schedule.intro" ).show();
179		jQuery( ".schedule.intro-divider" ).show();
180		jQuery( ".schedule.drop-ins" ).hide();
181		jQuery( ".schedule.intro-drop-ins" ).hide();
182		jQuery( ".visiting" ).hide();
183	});
184	jQuery( ".drop-ins" ).click(function() {
185		jQuery(this).addClass('current');
186		jQuery( ".in-person-button" ).removeClass('current');
187		jQuery( ".online-button" ).removeClass('current');
188  		jQuery( ".schedule.in-person" ).hide();
189		jQuery( ".schedule.in-person-divider" ).hide();
190		jQuery( ".schedule.zoom" ).hide();
191		jQuery( ".schedule.zoom-divider" ).hide();
192		jQuery( ".schedule.intro-text" ).hide();
193		jQuery( ".schedule.intro-text-divider" ).hide();
194		jQuery( ".schedule.drop-ins" ).show();
195		jQuery( ".schedule.intro-drop-ins" ).show();
196		jQuery( ".visiting" ).hide();
197	});
198	
199	jQuery('.single-product .heading-text h1').insertBefore('.summary-top');
200	jQuery('.blue-gradient').parent().appendTo('#main-container');
201	
202	jQuery('#product-10173 .one-time-option .no-price.one-time-price').text('$260 for one month');
203	jQuery('.page-id-12864 .one-time-option .no-price.one-time-price').each(function( index ) {
204  		jQuery(this).text('$260 for one month');
205	});
206		
207	jQuery('.woocommerce div.product .summary p.price, .woocommerce-page div.product .summary p.price').insertAfter('.woocommerce div.product form.cart .variations');
208	
209	jQuery('.product-grid').appendTo('.large-products-container');
210	
211	jQuery('.product-grid li .price').each(function( index ) {
212		var details = jQuery( this ).parent().find('.product-details');
213  		jQuery( this ).appendTo(details);
214	});
215	
216	jQuery('.product-grid li').each(function( index ) {
217		var price = jQuery( this ).find('.price');
218		var details = jQuery( this ).find('.product-details');
219	  	if(!jQuery( price ).length) {
220			jQuery('<span class="price"><span class="woocommerce-Price-amount amount">Prices vary</span></span>').appendTo(details);
221		}
222	});
223	
224	var yellow_gradient_width = jQuery( document ).width();
225	var left = (1140 - yellow_gradient_width)/2;
226	var left = 0;
227	
228	jQuery('<section data-header-style="" class="row fw-row dynamic-header-change fw-row-adjusted" style="position: relative; left: ' + left + 'px; width: ' + yellow_gradient_width + 'px;"><div class="spb-row  yellow-gradient " data-row-type="color" data-wrap="full-width-stretch" data-image-movement="fixed" data-content-stretch="true" data-row-height="content-height" data-col-spacing="0" data-col-v-pos="default" style="margin-top: 0px; margin-bottom: 0px; opacity: 1; visibility: visible;" data-sb-init="true"><div class="spb_content_element clearfix" style=""><div class="spb-row-no-cols-wrapper clearfix"> <section class="row "><div class="blank_spacer col-sm-12  " style="height:200px;"></div></section></div><!-- .spb-row-no-cols-wrapper --></div></div><!-- .spb-row --></section>').appendTo('.woocommerce-shop-page');
229	
230	/*
231	jQuery('<section data-header-style="" class="row fw-row dynamic-header-change fw-row-adjusted" style="position: relative; left: 0px; width: ' + yellow_gradient_width + 'px;"><div class="spb-row  yellow-gradient " data-row-type="color" data-wrap="full-width-stretch" data-image-movement="fixed" data-content-stretch="true" data-row-height="content-height" data-col-spacing="0" data-col-v-pos="default" style="margin-top: 0px; margin-bottom: 0px; opacity: 1; visibility: visible;" data-sb-init="true"><div class="spb_content_element clearfix" style=""><div class="spb-row-no-cols-wrapper clearfix"> <section class="row "><div class="blank_spacer col-sm-12  " style="height:200px;"></div></section></div><!-- .spb-row-no-cols-wrapper --></div></div><!-- .spb-row --></section>').appendTo('.single-product .inner-page-wrap');
232	*/
233	
234	/*
235jQuery('<section data-header-style="" class="row fw-row dynamic-header-change fw-row-adjusted my-product-footer" style="position: relative"><div class="spb-row  yellow-gradient " data-row-type="color" data-wrap="full-width-contained" data-image-movement="fixed" data-content-stretch="false" data-row-height="content-height" data-col-spacing="0" data-col-v-pos="default" style="margin-top: 0px; margin-bottom: 0px; opacity: 1; visibility: visible;" data-sb-init="true"><div class="spb_content_element clearfix"><div class="spb-row-no-cols-wrapper spb-row-multi-col clearfix"> <section class="row "><div class="blank_spacer col-sm-12  " style="height:30px;"></div></section><section class="row "><div class="blank_spacer col-sm-5  " style="height:30px;"></div><div class="spb_content_element spb_image noframe col-sm-2 eddie-with-bubble thumbnail-default square-corners"><div class="spb-asset-content"><figure class="animated-overlay has-link overlay-alt clearfix">
235<a class="img-link" href="/classes/" target="_self"></a><div class="img-wrap"><img src="https://eddiestern.com/wp-content/uploads/2021/06/back-to-classes.png" class="attachment-full size-full" alt="" loading="lazy" srcset="https://eddiestern.com/wp-content/uploads/2021/06/back-to-classes.png 285w, https://eddiestern.com/wp-content/uploads/2021/06/back-to-classes-150x150.png 150w, https://eddiestern.com/wp-content/uploads/2021/06/back-to-classes-100x100.png 100w, https://eddiestern.com/wp-content/uploads/2021/06/back-to-classes-50x50.png 50w" sizes="(max-width: 285px) 100vw, 285px" width="285" height="286"></div><div class="figcaption-wrap"></div><figcaption><div class="thumb-info"><h4></h4></div></figcaption></figure></div></div>  <div class="blank_spacer col-sm-5  " style="height:30px;"></div></section><section class="row "><div class="blank_spacer col-sm-12  " style="height:30px;"></div></section></div><!-- .spb-row-no-cols-wrapper --></div></div><!-- .spb-row --></section>').appendTo('.single-product .inner-page-wrap');
236*/
237	
238	jQuery('.tax-product_cat .inner-page-wrap').prependTo('#main-container');
239	
240	jQuery('.my-account-login-wrap .login-wrap h4.lined-heading span').text('Registered students');
241
242	//my-account-header
243	resize_header();
244	jQuery(window).resize(resize_header);
245	
246	swap_newsletter_image();
247	jQuery(window).resize(swap_newsletter_image);
248	
249	// events
250	jQuery('.tribe-events-calendar-day__event-description ').removeClass('tribe-common-a11y-hidden');
251	
252	
253	
254	jQuery('<div id="header__nav" class="collapse navbar-collapse align-items-center"><ul class="header__nav navbar-nav justify-content-center"><li class="nav-item"><a class="nav-link" href="#">Book a Class</a><ul class="sub-menu"><li class="nav-item"><a class="nav-link" href="https://classes.eddiestern.com/upcoming">Schedule</a></li>  <li class="nav-item"><a class="nav-link" href="https://classes.eddiestern.com/calendar">Calendar</a></li><li class="nav-item"><a class="nav-link" href="https://classes.eddiestern.com/playlists">Replays</a></li></ul></li><li class="nav-item"><a class="nav-link" href="#">Info</a><ul class="sub-menu"><li class="nav-item"><a class="nav-link" href="https://classes.eddiestern.com/about">About</a></li><li class="nav-item"><a class="nav-link" href="https://classes.eddiestern.com/events">Classes</a></li><li class="nav-item"><a class="nav-link" href="https://classes.eddiestern.com/teachers">Teachers</a></li><li class="nav-item"><a class="nav-link" href="https://classes.eddiestern.com/passes">Pricing</a></li><li class="nav-item"><a class="nav-link" href="https://classes.eddiestern.com/pages/location">Location</a></li><li class="nav-item"><a class="nav-link" href="mailto:[email protected]">Contact</a></li></ul></li><li class="nav-item"><a class="nav-link" href="#">More</a><ul class="sub-menu"><li class="nav-item"><a class="nav-link" href="https://classes.eddiestern.com/pages/news-events">News &amp; Workshops</a></li><li class="nav-item"><a class="nav-link" href="https://classes.eddiestern.com/pages/courses-apps-books">Courses, Apps, Books</a></li><li class="nav-item"><a class="nav-link" href="https://blog.eddiestern.com/">Blog</a></li><li class="nav-item"><a class="nav-link" href="https://broomestreet.nyc/">Shop</a></li><li class="nav-item"><a class="nav-link" href="https://broomestreetganesh.org/">Broome Street Temple</a></li></ul></li></ul></div>').insertAfter('.union .logo');
255	
256	jQuery('.mobile-header-opts').insertAfter('.spb_swift-slider');
257	
258jQuery('.logo').each(function(){
259    jQuery(this).next().andSelf().wrapAll('<div class="new_header">');
260});
261	
262});
263
264function resize_header() {
265  	var width = jQuery( document ).width();
266
267	jQuery('.my-account-header').css('width', width);
268	jQuery('.my-account-header-spacer').css('margin-top', jQuery('.my-account-header').height());
269	
270}
271
272function swap_newsletter_image() {
273  	var width = jQuery( document ).width();
274	
275	if(width<768) {
276		jQuery('.home .try-me img').attr('src','/wp-content/uploads/2021/06/spin-kumbaka.png');
277	}
278	else {
279		jQuery('.home .try-me img').attr('src','/wp-content/uploads/2022/11/newsletter.png');
280	}
281	
282}
283

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.