PageSourceSearch

https://mexicoha.com/wp-content/themes/Nexus/js/custom.js?ver=1.0

js mexicoha.com collected 2026-09-24 13:46:58 UTC 23,642 bytes, 657 lines download raw bytes

1(function($){
2	$.et_simple_slider = function(el, options) {
3		var settings = $.extend( {
4			slide         			: '.et-slide',				 	// slide class
5			arrows					: '.et-slider-arrows',			// arrows container class
6			prev_arrow				: '.et-arrow-prev',				// left arrow class
7			next_arrow				: '.et-arrow-next',				// right arrow class
8			controls 				: '.et-controllers a',			// control selector
9			control_active_class	: 'et-active-control',			// active control class name
10			previous_text			: 'Previous',					// previous arrow text
11			next_text				: 'Next',						// next arrow text
12			fade_speed				: 500,							// fade effect speed
13			use_arrows				: true,							// use arrows?
14			use_controls			: true,							// use controls?
15			manual_arrows			: '',							// html code for custom arrows
16			append_controls_to		: '',							// controls are appended to the slider element by default, here you can specify the element it should append to
17			controls_class			: 'et-controllers',				// controls container class name
18			slideshow				: false,						// automattic animation?
19			slideshow_speed			: 7000,							// automattic animation speed
20			show_progress_bar		: true,							// show progress bar if automattic animation is active
21			tabs_animation			: false
22		}, options );
23
24		var $et_slider 			= $(el),
25			$et_slide			= $et_slider.find( settings.slide ),
26			et_slides_number	= $et_slide.length,
27			et_fade_speed		= settings.fade_speed,
28			et_active_slide		= 0,
29			$et_slider_arrows,
30			$et_slider_prev,
31			$et_slider_next,
32			$et_slider_controls,
33			et_slider_timer,
34			controls_html = '',
35			$progress_bar = null,
36			progress_timer_count = 0;
37
38			$et_slider.et_animation_running = false;
39
40			$.data(el, "et_simple_slider", $et_slider);
41
42			$et_slide.eq(0).addClass( 'et-active-slide' );
43
44			if ( settings.use_arrows && et_slides_number > 1 ) {
45				if ( settings.manual_arrows == '' )
46					$et_slider.append( '<div class="et-slider-arrows"><a class="et-arrow-prev" href="#">' + settings.previous_text + '</a><a class="et-arrow-next" href="#">' + settings.next_text + '</a></div>' );
47				else
48					$et_slider.append( settings.manual_arrows );
49
50				$et_slider_arrows 	= $( settings.arrows );
51				$et_slider_prev 	= $et_slider.find( settings.prev_arrow );
52				$et_slider_next 	= $et_slider.find( settings.next_arrow );
53
54				$et_slider_next.click( function(){
55					if ( $et_slider.et_animation_running )	return false;
56
57					$et_slider.et_slider_move_to( 'next' );
58
59					return false;
60				} );
61
62				$et_slider_prev.click( function(){
63					if ( $et_slider.et_animation_running )	return false;
64
65					$et_slider.et_slider_move_to( 'previous' );
66
67					return false;
68				} );
69			}
70
71			if ( settings.use_controls && et_slides_number > 1 ) {
72				for ( var i = 1; i <= et_slides_number; i++ ) {
73					controls_html += '<a href="#"' + ( i == 1 ? ' class="' + settings.control_active_class + '"' : '' ) + '>
73' + i + '</a>';
74				}
75
76				controls_html =
77					'<div class="' + settings.controls_class + '">' +
78						controls_html +
79					'</div>';
80
81				if ( settings.append_controls_to == '' )
82					$et_slider.append( controls_html );
83				else
84					$( settings.append_controls_to ).append( controls_html );
85
86				$et_slider_controls	= $et_slider.find( settings.controls ),
87
88				$et_slider_controls.click( function(){
89					if ( $et_slider.et_animation_running )	return false;
90
91					$et_slider.et_slider_move_to( $(this).index() );
92
93					return false;
94				} );
95			}
96
97			if ( settings.slideshow && et_slides_number > 1 && settings.show_progress_bar ) {
98				$et_slider.append( '<div id="featured-progress-bar"><div id="progress-time"></div></div>' );
99				$progress_bar = $( '#progress-time' );
100
101				$et_slider.hover( function() {
102					$et_slider.addClass( 'et_slider_hovered' );
103				}, function() {
104					$et_slider.removeClass( 'et_slider_hovered' );
105					$progress_bar.animate( { 'width' : '100%' }, parseInt( settings.slideshow_speed - progress_timer_count ) );
106				} );
107			}
108
109			et_slider_auto_rotate();
110
111			function et_slider_auto_rotate(){
112				if ( settings.slideshow && et_slides_number > 1 ) {
113					$progress_bar.css( 'width', '0%' ).animate( { 'width' : '100%' }
113, parseInt( settings.slideshow_speed - progress_timer_count ) );
114
115					if ( $et_slider.hasClass( 'et_slider_hovered' ) && $progress_bar.length && settings.slideshow && et_slides_number > 1 )
116						$progress_bar.stop();
117
118					et_slider_timer = setInterval( function() {
119						if ( ! $et_slider.hasClass( 'et_slider_hovered' ) ) progress_timer_count += 100;
120
121						if ( $et_slider.hasClass( 'et_slider_hovered' ) && $progress_bar.length && settings.slideshow && et_slides_number > 1 )
122						$progress_bar.stop();
123
124						if ( progress_timer_count >= parseInt( settings.slideshow_speed ) ) {
125							progress_timer_count = 0;
126							clearInterval( et_slider_timer );
127
128							$et_slider.et_slider_move_to( 'next' );
129						}
130					}, 100 );
131				}
132			}
133
134			$et_slider.et_slider_move_to = function ( direction ) {
135				var $active_slide = $et_slide.eq( et_active_slide ),
136					$next_slide;
137
138				$et_slider.et_animation_running = true;
139
140				if ( direction == 'next' || direction == 'previous' ){
141
142					if ( direction == 'next' )
143						et_active_slide = ( et_active_slide + 1 ) < et_slides_number ? et_active_slide + 1 : 0;
144					else
145						et_active_slide = ( et_active_slide - 1 ) >= 0 ? et_active_slide - 1 : et_slides_number - 1;
146
147				} else {
148
149					if ( et_active_slide == direction ) {
150						$et_slider.et_animation_running = false;
151						return;
152					}
153
154					et_active_slide = direction;
155
156				}
157
158				if ( typeof et_slider_timer != 'undefined' )
159					clearInterval( et_slider_timer );
160
161				if ( $progress_bar !== null && $progress_bar.length != 0 ) {
162					progress_timer_count = 0;
163					$progress_bar.stop( true ).css( 'width', '0%' );
164				}
165
166				$next_slide	= $et_slide.eq( et_active_slide );
167
168				$et_slide.each( function(){
169					$(this).css( 'zIndex', 1 );
170				} );
171				$active_slide.css( 'zIndex', 2 ).removeClass( 'et-active-slide' );
172				$next_slide.css( { 'display' : 'block', opacity : 0 } ).addClass( 'et-active-slide' );
173
174				if ( settings.use_controls )
175					$et_slider_controls.removeClass( settings.control_active_class ).eq( et_active_slide ).addClass( settings.control_active_class );
176
177				if ( ! settings.tabs_animation ) {
178					$next_slide.delay(400).animate( { opacity : 1 }, et_fade_speed );
179					$active_slide.addClass( 'et_slide_transition' ).css( { 'display' : 'block', 'opacity' : 1 } ).delay(400).animate( { opacity : 0 }, et_fade_speed, function(){
180						$(this).css('display', 'none').removeClass( 'et_slide_transition' );
181						$et_slider.et_animation_running = false;
182					} );
183				} else {
184					$next_slide.css( { 'display' : 'none', opacity : 0 } );
185
186					$active_slide.addClass( 'et_slide_transition' ).css( { 'display' : 'block', 'opacity' : 1 } ).animate( { opacity : 0 }, et_fade_speed, function(){
187								$(this).css('display', 'none').removeClass( 'et_slide_transition' );
188
189								$next_slide.css( { 'display' : 'block', 'opacity' : 0 } ).animate( { opacity : 1 }, et_fade_speed, function() {
190									$et_slider.et_animation_running = false;
191								} );
192							} );
193				}
194
195				et_slider_auto_rotate();
196			}
197	}
198
199	$.fn.et_simple_slider = function( options ) {
200		return this.each(function() {
201			new $.et_simple_slider(this, options);
202		});
203	}
204
205	$(document).ready( function(){
206		var $et_top_menu              = $( 'ul.nav' ),
207			$comment_form             = $( '#commentform' ),
208			$home_popular_slider      = $( '.popular-posts-wrap' ),
209			$home_popular_slider_tabs = $home_popular_slider.find( '.popular-tabs li' ),
210			$categories_tabs_module   = $( '.categories-tabs-module' ),
211			$categories_tabs          = $categories_tabs_module.find( '.categories-tabs li' ),
212			$tabs_widget              = $( '.widget_ettabbedwidget' ),
213			$tabs_widget_li           = $tabs_widget.find( '.categories-tabs li' ),
214			$recent_videos            = $( '.widget_etrecentvideoswidget' ),
215			$recent_videos_tabs       = $recent_videos.find( '.et-recent-videos-wrap li' ),
216			$et_container             = $( '.container' ),
217			et_container_width;
218
219		et_container_width = $et_container.width();
220
221		$et_top_menu.superfish({
222			delay		: 500, 										// one second delay on mouseout
223			animation	: { opacity : 'show', height : 'show' },	// fade-in and slide-down animation
224			speed		: 'fast', 									// faster animation speed
225			autoArrows	: true, 									// disable generation of arrow mark-up
226			dropShadows	: false										// disable drop shadows
227		});
228
229		if ( $('ul.et_disable_top_tier').length ) $("ul.et_disable_top_tier > li > ul").prev('a').attr('href','#');
230
231		$('#et-social-icons a').hover(
232			function(){
233				$(this).find('.et-social-normal').css( { 'opacity' : 1 } ).stop(true,true).animate( { 'top' : '-59px', 'opacity' : 0 }, 300 );
234				$(this).find('.et-social-hover').stop(true,true).animate( { 'top' : '-62px' }, 300 );
235			}, function(){
236				$(this).find('.et-social-normal').stop(true,true).animate( { 'top' : '0', opacity : 1 }, 300 );
237				$(this).find('.et-social-hover').stop(true,true).animate( { 'top' : '0' }, 300 );
238			}
239		);
240
241		(function et_search_bar(){
242			var $searchform = $('.et-search-form'),
243				$searchinput = $searchform.find(".search_input"),
244				searchvalue = $searchinput.val();
245
246			$searchinput.focus(function(){
247				if (jQuery(this).val() === searchvalue) jQuery(this).val("");
248			}).blur(function(){
249				if (jQuery(this).val() === "") jQuery(this).val(searchvalue);
250			});
251		})();
252
253		et_duplicate_menu( $('#main-header ul.nav'), $('#top-navigation .mobile_nav'), 'mobile_menu', 'et_mobile_menu' );
254
255		function et_duplicate_menu( menu, append_to, menu_id, menu_class ){
256			var $cloned_nav;
257
258			menu.clone().attr('id',menu_id).removeClass().attr('class',menu_class).appendTo( append_to );
259			$cloned_nav = append_to.find('> ul');
260			$cloned_nav.find('.menu_slide').remove();
261			$cloned_nav.find('li:first').addClass('et_first_mobile_item');
262
263			append_to.click( function(){
264				if ( $(this).hasClass('closed') ){
265					$(this).removeClass( 'closed' ).addClass( 'opened' );
266					$cloned_nav.slideDown( 500 );
267				} else {
268					$(this).removeClass( 'opened' ).addClass( 'closed' );
269					$cloned_nav.slideUp( 500 );
270				}
271				return false;
272			} );
273
274			append_to.find('a').click( function(event){
275				event.stopPropagation();
276			} );
277		}
278
279		$( '.recent-module .load-more a' ).click( function() {
280			var $this_link = $(this);
281
282			$.ajax( {
283				type: "POST",
284				url: et_custom.ajaxurl,
285				data:
286				{
287					action      : 'et_recent_module_add_posts',
288					et_hb_nonce : et_custom.et_hb_nonce,
289					category    : $this_link.data('category'),
290					number      : $this_link.data('number'),
291					offset      : $this_link.closest('.recent-module').find('.recent-post').length
292				},
293				success: function( data ){
294					if ( '' == data )
295						$this_link.remove();
296					else
297						$this_link.closest('.recent-module').find('.module-content').append( data );
298				}
299			} );
300
301			return false;
302		} );
303
304		$( '.recent-reviews .load-more a' ).click( function() {
305			var $this_link = $(this);
306
307			$.ajax( {
308				type: "POST",
309				url: et_custom.ajaxurl,
310				data:
311				{
312					action      : 'et_reviews_module_add_posts',
313					et_hb_nonce : et_custom.et_hb_nonce,
314					category    : $this_link.data('category'),
315					number      : $this_link.data('number'),
316					offset      : $this_link.closest('.recent-reviews').find('.review-post').length
317				},
318				success: function( data ){
319					if ( '' == data )
320						$this_link.remove();
321					else
322						$this_link.closest('.recent-reviews').find('.reviews-content').append( data );
323				}
324			} );
325
326			return false;
327		} );
328
329		$( '.et-tabs .load-more a' ).click( function() {
330			var $this_link = $(this);
331
332			$.ajax( {
333				type: "POST",
334				url: et_custom.ajaxurl,
335				data:
336				{
337					action      : 'et_recent_module_add_posts',
338					et_hb_nonce : et_custom.et_hb_nonce,
339					category    : $this_link.data('category'),
340					number      : $this_link.data('number'),
341					offset      : $this_link.closest('.et-tabs').find('.et-tabs-wrap .recent-post').length
342				},
343				success: function( data ){
344					if ( '' == data )
345						$this_link.remove();
346					else
347						$this_link.closest('.et-tabs').find('.et-tabs-wrap').append( data );
348				}
349			} );
350
351			return false;
352		} );
353
354		if ( $categories_tabs_module.length ) {
355			$categories_tabs_module.et_simple_slider( {
356				use_controls   : false,
357				use_arrows     : false,
358				slide          : '.et-tabs',
359				tabs_animation : true
360			} );
361
362			$categories_tabs.click( function() {
363				var $this_el         = $(this),
364					$home_tabs       = $this_el.closest( '.categories-tabs-module' ).data('et_simple_slider');
365
366				if ( $home_tabs.et_animation_running ) return;
367
368				$this_el.addClass( 'home-tab-active' ).siblings().removeClass( 'home-tab-active' );
369
370				$home_tabs.data('et_simple_slider').et_slider_move_to( $this_el.index() );
371			} );
372
373			var $et_categories_mobile_arrows;
374
375			$et_categories_mobile_arrows = $categories_tabs_module.append( '<span class="et-popular-mobile-arrow et-popular-mobile-arrow-previous"></span>' + '<span class="et-popular-mobile-arrow et-popular-mobile-arrow-next"></span>' );
376
377			$categories_tabs_module.find( '.et-popular-mobile-arrow' ).click( function() {
378				var $this_el     = $(this),
379					direction    = $this_el.hasClass( 'et-popular-mobile-arrow-next' ) ? 'next' : 'previous',
380					$slider      = $this_el.closest( '.categories-tabs-module' ).data('et_simple_slider'),
381					$slider_tabs = $slider.find( '.categories-tabs li' ),
382					tabs_number  = $slider_tabs.length,
383					current_tab  = $slider.find( '.home-tab-active' ).index();
384
385				if ( $slider.et_animation_running ) return false;
386
387				if ( direction == 'next' ) {
388					next_tab = ( current_tab + 1 ) < tabs_number ? current_tab + 1 : 0;
389
390					$slider_tabs.eq( next_tab ).addClass( 'home-tab-active' ).siblings().removeClass( 'home-tab-active' );
391				}
392
393				if ( direction == 'previous' ) {
394					next_tab = current_tab - 1;
395
396					if ( next_tab === -1 ) next_tab = tabs_number - 1;
397
398					$slider_tabs.eq( next_tab ).addClass( 'home-tab-active' ).siblings().removeClass( 'home-tab-active' );
399				}
400
401				$slider.data('et_simple_slider').et_slider_move_to( next_tab );
402			} );
403		}
404
405		if ( $recent_videos.length ) {
406			$recent_videos.et_simple_slider( {
407				use_controls   : false,
408				use_arrows     : false,
409				slide          : '.et-recent-video',
410				tabs_animation : true
411			} );
412
413			$recent_videos_tabs.click( function() {
414				var $this_el         = $(this),
415					$home_tabs       = $this_el.closest( '.widget_etrecentvideoswidget' ).data('et_simple_slider');
416
417				if ( $home_tabs.et_animation_running ) return;
418
419				$this_el.addClass( 'et-video-active' ).siblings().removeClass( 'et-video-active' );
420
421				$home_tabs.data('et_simple_slider').et_slider_move_to( $this_el.index() );
422			} );
423
424			$recent_videos.find( '.et-recent-video-scroll a' ).click( function() {
425				var $this_el    = $(this),
426					direction   = $this_el.hasClass( 'et-scroll-video-top' ) ? 'previous' : 'next',
427					$slider     = $this_el.closest( '.widget_etrecentvideoswidget' ).data('et_simple_slider'),
428					$active_tab = $slider.find( '.et-recent-videos-wrap .et-video-active' ),
429					tabs_number = $slider.find( '.et-recent-videos-wrap li' ).length;
430
431				if ( $slider.et_animation_running ) return false;
432
433				if ( direction === 'next' ) {
434					next = $active_tab.index() + 1;
435
436					if ( next >= tabs_number ) next = 0;
437				} else {
438					next = $active_tab.index() - 1;
439
440					if ( next < 0 ) next = tabs_number - 1;
441				}
442
443				$slider.find( '.et-recent-videos-wrap li' ).eq(next).addClass( 'et-video-active' ).siblings().removeClass( 'et-video-active' );
444				$slider.data('et_simple_slider').et_slider_move_to( next );
445
446				return false;
447			} );
448		}
449
450		if ( $tabs_widget.length ) {
451			$tabs_widget.et_simple_slider( {
452				use_controls   : false,
453				use_arrows     : false,
454				slide          : '.et-tabbed-all-tabs > div',
455				tabs_animation : true
456			} );
457
458			$tabs_widget_li.click( function() {
459				var $this_el         = $(this),
460					$home_tabs       = $this_el.closest( '.widget_ettabbedwidget' ).data('et_simple_slider');
461
462				if ( $home_tabs.et_animation_running ) return false;
463
464				$this_el.addClass( 'home-tab-active' ).siblings().removeClass( 'home-tab-active' );
465
466				$home_tabs.data('et_simple_slider').et_slider_move_to( $this_el.index() );
467
468				return false;
469			} );
470		}
471
472		if ( $home_popular_slider.length ) {
473			$home_popular_slider.et_simple_slider( {
474				use_controls   : false,
475				use_arrows     : false,
476				slide          : '.popular-post',
477				tabs_animation : true
478			} );
479
480			$home_popular_slider_tabs.click( function() {
481				var $this_el         = $(this),
482					$home_tabs       = $this_el.closest( '.popular-posts-wrap' ).data('et_simple_slider'),
483					$tabs_container  = $home_tabs.find( '.popular-tabs ul' ),
484					active_tab_index = $home_tabs.find( '.popular-active' ).index(),
485					tabs_margin      = parseInt( $tabs_container.css( 'marginTop' ) ),
486					tabs_height      = 0;
487
488				if ( $home_tabs.et_animation_running ) return;
489
490				if ( $this_el.index() < 4 ) {
491					$tabs_container.css( 'marginTop', 0 );
492				} else {
493					$tabs_container.find( 'li' ).slice( $this_el.index() + 1, active_tab_index + 1 ).each( function() {
494						tabs_height += $( this ).innerHeight();
495					} );
496					$tabs_container.css( 'marginTop', tabs_margin + tabs_height );
497				}
498
499				$this_el.addClass( 'popular-active' ).siblings().removeClass( 'popular-active' );
500
501				$home_tabs.data('et_simple_slider').et_slider_move_to( $this_el.index() );
502			} );
503
504			$( '.et-scroll-arrows a' ).click( function() {
505				var $slider          = $(this).closest( '.popular-posts-wrap' ).data('et_simple_slider'),
506					$slider_tabs     = $slider.find( '.popular-tabs li' ),
507					tabs_number      = $slider_tabs.length,
508					current_tab      = $slider.find( '.popular-active' ).index(),
509					$tabs_container  = $slider.find( '.popular-tabs ul' ),
510					$tabs_top_margin = parseInt( $tabs_container.css( 'marginTop' ) ),
511					direction        = $(this).hasClass( 'et-scroll-arrows-bottom' ) ? 'next' : 'previous',
512					next_tab;
513
514				if ( $slider.et_animation_running ) return false;
515
516				if ( direction == 'next' ) {
517					next_tab = ( current_tab + 1 ) < tabs_number ? current_tab + 1 : 0;
518
519					$slider_tabs.eq( next_tab ).addClass( 'popular-active' ).siblings().removeClass( 'popular-active' );
520
521					if ( next_tab > 3 ) {
522						$tabs_container.css( 'marginTop', $tabs_top_margin - $slider_tabs.eq( next_tab ).innerHeight() );
523					} else if ( next_tab == 0 ) {
524						$tabs_container.css( 'marginTop', 0 );
525					}
526				}
527
528				if ( direction == 'previous' ) {
529					next_tab = current_tab - 1;
530
531					if ( next_tab === -1 ) return false;
532
533					$slider_tabs.eq( next_tab ).addClass( 'popular-active' ).siblings().removeClass( 'popular-active' );
534
535					if ( next_tab > 2 ) {
536						$tabs_container.css( 'marginTop', $tabs_top_margin + $slider_tabs.eq( current_tab ).innerHeight() );
537					}
538				}
539
540				$slider.data('et_simple_slider').et_slider_move_to( next_tab );
541
542				return false;
543			} );
544
545			var $et_popular_mobile_arrows;
546
547			$et_popular_mobile_arrows = $home_popular_slider.siblings( '.module-title' ).append( '<span class="et-popular-mobile-arrow et-popular-mobile-arrow-previous"></span>' + '<span class="et-popular-mobile-arrow et-popular-mobile-arrow-next"></span>' );
548
549			$et_popular_mobile_arrows.parent().find( '.et-popular-mobile-arrow' ).click( function() {
550				var $this_el     = $(this),
551					direction    = $this_el.hasClass( 'et-popular-mobile-arrow-next' ) ? 'next' : 'previous',
552					$slider      = $this_el.closest( '.popular-module' ).find( '.popular-posts-wrap' ).data('et_simple_slider'),
553					$slider_tabs = $slider.find( '.popular-tabs li' ),
554					tabs_number  = $slider_tabs.length,
555					current_tab  = $slider.find( '.popular-active' ).index();
556
557				if ( $slider.et_animation_running ) return false;
558
559				if ( direction == 'next' ) {
560					next_tab = ( current_tab + 1 ) < tabs_number ? current_tab + 1 : 0;
561
562					$slider_tabs.eq( next_tab ).addClass( 'popular-active' ).siblings().removeClass( 'popular-active' );
563				}
564
565				if ( direction == 'previous' ) {
566					next_tab = current_tab - 1;
567
568					if ( next_tab === -1 ) next_tab = tabs_number - 1;
569
570					$slider_tabs.eq( next_tab ).addClass( 'popular-active' ).siblings().removeClass( 'popular-active' );
571				}
572
573				$slider.data('et_simple_slider').et_slider_move_to( next_tab );
574			} );
575		}
576
577		function et_breadcrumbs_css() {
578			if ( $( '#breadcrumbs' ).hasClass( 'bcn_breadcrumbs' ) ) {
579				return;
580			}
581
582			$('.et_breadcrumbs_title').css( 'maxWidth', $('#breadcrumbs').width() - $('.et_breadcrumbs_content').width() - 3 );
583
584			setTimeout( function() {
585				var et_breadcrumbs_height = $('.et_breadcrumbs_title').height();
586				$('#breadcrumbs a, #breadcrumbs .raquo').css( 'minHeight', et_breadcrumbs_height );
587			}, 100 );
588		}
589
590		et_breadcrumbs_css();
591
592		et_popular_tabs_height_calculate();
593
594		function et_popular_tabs_height_calculate() {
595			if ( ! $home_popular_slider.length ) return;
596
597			$home_popular_slider.each( function() {
598				var $this_el      = $(this),
599					$tabs         = $this_el.find( '.popular-tabs' ),
600					$content      = $this_el.find( '.popular-posts' ),
601					$tabs_wrapper = $this_el.find( '.et-popular-tabs-wrap' );
602
603				if ( $tabs.find( 'li' ).length > 4 ) {
604					$tabs_wrapper.height( $tabs.find( 'li' ).eq(0).innerHeight() + $tabs.find( 'li' ).eq(1).innerHeight() + $tabs.find( 'li' ).eq(2).innerHeight() + $tabs.find( 'li' ).eq(3).innerHeight() );
605				}
606
607				$content.css( 'minHeight', $tabs_wrapper.innerHeight() + parseInt( $tabs.css( 'paddingTop' ) ) + parseInt( $tabs.css( 'paddingBottom' ) ) - 80 )
608			} );
609		}
610
611		$(window).resize( function() {
612			et_popular_tabs_height_calculate();
613
614			if ( et_container_width != $et_container.width() ) {
615				et_breadcrumbs_css();
616
617				et_container_width = $et_container.width();
618			}
619		} );
620
621		$comment_form.find('input:text, textarea').each(function(index,domEle){
622			var $et_current_input = jQuery(domEle),
623				$et_comment_label = $et_current_input.siblings('label'),
624				et_comment_label_value = $et_current_input.siblings('label').text();
625			if ( $et_comment_label.length ) {
626				$et_comment_label.hide();
627				if ( $et_current_input.siblings('span.required') ) {
628					et_comment_label_value += $et_current_input.siblings('span.required').text();
629					$et_current_input.siblings('span.required').hide();
630				}
631				$et_current_input.val(et_comment_label_value);
632			}
633		}).bind('focus',function(){
634			var et_label_text = jQuery(this).siblings('label').text();
635			if ( jQuery(this).siblings('span.required').length ) et_label_text += jQuery(this).siblings('span.required').text();
636			if (jQuery(this).val() === et_label_text) jQuery(this).val("");
637		}).bind('blur',function(){
638			var et_label_text = jQuery(this).siblings('label').text();
639			if ( jQuery(this).siblings('span.required').length ) et_label_text += jQuery(this).siblings('span.required').text();
640			if (jQuery(this).val() === "") jQuery(this).val( et_label_text );
641		});
642
643		// remove placeholder text before form submission
644		$comment_form.submit(function(){
645			$comment_form.find('input:text, textarea').each(function(index,domEle){
646				var $et_current_input = jQuery(domEle),
647					$et_comment_label = $et_current_input.siblings('label'),
648					et_comment_label_value = $et_current_input.siblings('label').text();
649
650				if ( $et_comment_label.length && $et_comment_label.is(':hidden') ) {
651					if ( $et_comment_label.text() == $et_current_input.val() )
652						$et_current_input.val( '' );
653				}
654			});
655		});
656	});
657})(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.