PageSourceSearch

https://maxitaxi.es/js/global.js

js maxitaxi.es collected 2026-10-09 01:26:21 UTC 21,344 bytes, 838 lines download raw bytes

1(function($) {
2
3	// Using strict mode
4
5	"use strict";
6
7	
8/* WINDSOCK
9 */	
10function nospam()
11{
12	var nombre;
13	var dominio;
14	
15	jQuery("span.nospam").each(function () {
16		nombre = jQuery(this).attr("nombre");
17		dominio = jQuery(this).attr("dominio");
18		
19		this.outerHTML = '<a title="'+nombre+'@'+dominio+'" href="mailto:'+nombre+'@'+dominio+'">'+nombre+'@'+dominio+'</a>'
20	});
21	
22}
23	
24/* PRICING TABLERS 
25 * Create wrapper around pricing tables located in one column
26 */
27function fix_pricing_tables() {
28	var $cols = $('.post_content .grid').find('.col');
29	$cols.each(function() {
30		
31		var $pricingTables = $(this).find('.pricing_item');
32		if( $pricingTables.length > 0 ) {
33			var wrapperStart = '<div class="pricing-1 grid_' + $pricingTables.length + ' clearfix">';
34			var wrapperEnd = '</div>';
35			
36			$pricingTables.wrapAll( wrapperStart + wrapperEnd );
37		}
38		
39	});
40	
41	var $faqHeaderItem = $('.faq_header_item');
42	if( $faqHeaderItem.length > 0 ) {
43		$faqHeaderItem.each(function(){
44			var chapterSectionId = $(this).attr('href');
45			
46			var $chapterSection = $( chapterSectionId );
47			
48			
49			var numberOfItems = 0;
50			if( $chapterSection.length > 0 ) {
51				
52				numberOfItems = $chapterSection.parent().find('.faq_item').length;
53			}
54			
55			$(this).find('.faq_header_item_count').html( numberOfItems ); 
56		});
57	}
58}
59
60function fix_faq_sections() {
61}
62
63function init_logo_slider() {
64	jQuery(document).ready(function() {
65	$('.client_logo_slider').each(function(){
66	
67		$(this).carouFredSel({
68			width: '100%',
69			align: 'left',
70			items: {
71				visible: {
72					min: 1,
73					max: 8
74				},
75				width: "variable",
76				height: "variable"
77			},
78			scroll	: {
79				items			: 1,
80				duration		: 1000,
81				timeoutDuration	: 2000
82			},
83			auto	: ( '1' == $(this).attr('data-autoscroll') ),
84			next: $(this).parent().find(".btn_next"),
85			prev: $(this).parent().find(".btn_prev")
86		}).parent().css("margin", "auto");
87	});
88	});
89	
90	
91	$('.photo_slider-1 ul li').css('display', 'block');
92
93	$('.photo_slider-1').each(function(){
94		var $slider = $(this);
95		$(this).find('ul').bxSlider({
96			pager: false
97		});
98	});
99	
100	$('.recent_posts_slider-2_wrapper').each(function() {
101		var $next = $(this).find('.btn_next');
102		var $prev = $(this).find('.btn_prev');
103		
104		$(this).find('.recent_posts_slider-2').carouFredSel({
105			circular: false,
106			responsive: true,
107			width: '100%',
108			height: "variable",
109			items: {
110				width: 280,
111				visible: {
112					min: 1,
113					max: 3
114				},
115				height: "variable"
116			},
117			scroll: {
118				duration: 1000,
119				pauseOnHover: true
120			},
121			auto: 2000,
122			swipe: true,
123			next: $next,
124			prev: $prev
125		});
126	});
127	
128	$('.recent_posts_slider').each(function() {
129		
130		//var numberOfColumns = $(this).attr('data-num-columns');
131		// la anterior linea se establece a 2 pero luego no lo coge bien la configuración del carrousel, no se porque
132		var numberOfColumns = 2;
133		var imageWidth = $(this).attr('data-image-width');
134		var autoslideInterval = 1*$(this).attr('data-autoslide-interval');
135		var autoslideStopClick = $(this).attr('data-autoslide-stop-click');
136		
137		var $slider= $(this);
138		var $prev = $(this).parent().parent().find(".btn_prev");
139		var $next = $(this).parent().parent().find(".btn_next");
140
141		if( autoslideStopClick == 'yes' ) {
142			var stopFunction = (function(){
143				$slider.trigger("configuration", {
144					auto: false,
145				});
146			});
147			
148			$next.click( stopFunction );
149			$prev.click( stopFunction );
150		}
151
152		$(this).carouFredSel({
153			circular: true,
154			responsive: true,
155			width: '100%',
156			height: "variable",
157			items: {
158				width: imageWidth,
159				visible: {
160					min: 1,
161					max: numberOfColumns
162				},
163				height: "variable"
164			},
165			scroll: {
166				duration: 1000,
167				pauseOnHover: true,
168				pauseOnEvent: true,
169				
170			},
171			auto: {
172				play: (autoslideInterval != 0),
173				timeoutDuration: autoslideInterval,
174				pauseOnEvent: true,
175				
176				
177			},
178			swipe: true,
179			next: $next,
180			prev: $prev
181		});
182	});
183}
184
185/* STICKY FOOTER */
186
187function sticky_footer(){
188
189	var footer_container_height = $('.footer_container').outerHeight();
190	$('#layout_width').css('height', '100%');
191	$('.content_container').css('min-height', '100%').css('margin-bottom', '-'+footer_container_height+'px');
192	$('.footer_push').css('height', footer_container_height+'px');
193
194}
195
196/* FIXED HEADER */
197
198
199function fx_h_2() {
200
201		// height of the info contact header
202		var headerInfoHeight = $('.header-2_container').outerHeight();
203		// height of the main navigation
204		if( $('body').hasClass('admin-bar') ) {
205			headerInfoHeight += $('#wpadminbar').outerHeight();
206			//newHeight += $('#wpadminbar').outerHeight();
207		}
208		
209		var $headerMainWrapper = $('.header_main_wrapper');
210		var $topContent = $('.top_content');
211		var $jqres = $('.jqres');
212		
213		var logoMarginTop = parseInt($headerMainWrapper.find('.logo').css('margin-top'));
214		var logoMarginBottom = parseInt($headerMainWrapper.find('.logo').css('margin-bottom'));
215		var searchMarginTop = parseInt($headerMainWrapper.find('.search_top_button').css('margin-top'));
216		var topMenuItemALineHeight = parseInt($headerMainWrapper.find('.navigation-1_container').find('.top-menu-item-a').css('line-height'));
217		
218		if( $('.header-1_container').outerHeight() > topMenuItemALineHeight ){
219			topMenuItemALineHeight = $('.header-1_container').outerHeight() - 1;
220			searchMarginTop = parseInt( $('.header-1_container').outerHeight() / 2 ) - ( $headerMainWrapper.find('.search_top_button').outerHeight() / 2 );
221		}
222		
223		var heightReduction = 16;
224		var heightReductionHalf = heightReduction / 2;
225		
226		var $searchTopOverlay = $('.search_top_overlay');
227		var scrollIt = function( ) {
228			var headerContactHeight = $('.header_main_wrapper').outerHeight();
229
230				// is desktop
231
232				if ( ($jqres.width() > 840) && ( $('.header_main_wrapper').attr('data-position') == 'fixed')) {
233					// current number of pixels window scrolled down
234					var currentWindowScroll = ( $(window).scrollTop() );
235					// is the header already non visible ?
236					var headerPositionAgainstWindow = headerInfoHeight - currentWindowScroll;
237					
238					// is the header already non visible ?
239					if( headerPositionAgainstWindow <= 0 ) {
240						var headerZeroPosition = 0;
241						if( $('body').hasClass('admin-bar') ) {
242							headerZeroPosition = $('#wpadminbar').outerHeight();
243							//newHeight += $('#wpadminbar').outerHeight();
244						}
245						
246						
247						$headerMainWrapper.css('position', 'fixed').css('top', headerZeroPosition);
248						var newHeight = headerContactHeight;
249
250					
251						if( $searchTopOverlay.css('display') == 'block' ) {
252							newHeight+= $searchTopOverlay.outerHeight();
253						}
254						
255						$topContent.css('padding-top', newHeight );
256					} else {
257						$headerMainWrapper.css('position', 'static').css('top', headerInfoHeight);
258						$topContent.css('padding-top', 0);
259					}
260					if( currentWindowScroll > 200 ) {
261						$headerMainWrapper.addClass('header_compact');
262						$headerMainWrapper.removeClass('header_noncompact');
263						if( true ) {
264							$headerMainWrapper.find('.logo').css('margin-top', ( logoMarginTop - heightReductionHalf) );
265							$headerMainWrapper.find('.logo').css('margin-bottom', ( logoMarginBottom - heightReductionHalf) );
266							
267							$headerMainWrapper.find('.navigation-1_container').find('.top-menu-item-a').css('line-height', (topMenuItemALineHeight - heightReduction)+'px' );
268							
269							$headerMainWrapper.find('.search_top_button').css('margin-top', (searchMarginTop - heightReductionHalf ) );
270						}
271						
272						 
273						
274					} else {
275						$headerMainWrapper.removeClass('header_compact');
276						$headerMainWrapper.addClass('header_noncompact');
277						if( true ) {
278							$headerMainWrapper.find('.logo').css('margin-top', logoMarginTop  );
279							$headerMainWrapper.find('.logo').css('margin-bottom', logoMarginBottom );
280							
281							$headerMainWrapper.find('.navigation-1_container').find('.top-menu-item-a').css('line-height', (topMenuItemALineHeight)+'px' );
282							
283							$headerMainWrapper.find('.search_top_button').css('margin-top', (searchMarginTop) );
284						}
285					}
286					
287				// is mobile device
288				} else {
289					$headerMainWrapper.css('position', 'static');
290					$topContent.css('padding-top', '0');
291					
292				}
293		}
294		$(window).bind('changeMenuStyle', function() { scrollIt(); setTimeout( scrollIt, 150 ); });
295		$(window).scroll(function(){ scrollIt(); });
296		$(document).ready(function() {
297			setTimeout( scrollIt, 300);
298		});
299}
300fx_h_2();
301function fixed_header(){
302}
303
304/* CENTER NAVIGATION-1 */
305
306function center_navigation_1() {
307
308	var headerHeight = $('.header-1_container').outerHeight();
309	var searchbuttonHeight = $('.search_top_button').height();
310	var borderHeight = headerHeight - $('.header-1_container').height();
311
312	// search button centering
313
314	$('.navigation-1 .search_top_button').css('margin-top', (headerHeight - borderHeight - searchbuttonHeight) / 2);
315
316	// (line)height of the navigation links - should be the same as the header height minus borders
317
318	$('.navigation-1 .top-menu-item-a').css('line-height', headerHeight - borderHeight + 1 + 'px' );
319	fixed_header();
320}
321
322/* NAVIGATION-1 - SUB-MENU - OPENING/CLOSING ANIMATION */
323
324function navigation_1_sub_menu() 	{
325	var animation_time = 250;
326	$('.navigation-1').removeClass("fallback");
327	$('.navigation-1 li').hover(
328			
329		function(){
330			var subMenu = $(this).children('.sub-menu');
331			
332			if( subMenu.css('display') == 'none' ) {
333				subMenu.css('opacity','0');
334				subMenu.css('display','block');
335			}
336	    	subMenu.stop(true, false).animate({opacity:1},animation_time);
337		}, function() {
338			
339			var subMenu = $(this).children('.sub-menu');
340			subMenu.stop(true,false).animate( {opacity:0},animation_time, function(){ $(this).css('display','none'); }  );
341		}
342	);
343}
344
345/* SEARCH TOP - OPEN/CLOSE OVERLAY */
346
347function search_top_overlay_toggle() {
348
349	$('.search_top_button').click(function () {
350	   $('.search_top_overlay').stop().slideToggle(200);
351	   $('.search_top_overlay input:text').focus();
352	});
353
354	$('.search_top_close').click(function () {
355	   $('.search_top_overlay').stop().slideToggle(200);
356	   $('.search_top_overlay input:text').focus();
357	});
358
359	$('.search_top_overlay .searchfield').keyup(function(e){
360		if(e.keyCode === 27){
361			$('.search_top_overlay').stop().slideUp(200);
362		}
363	});
364
365}
366
367/* CENTER NAVIGATION-2 */
368
369function center_navigation_2() {
370
371	var nav2 = $('.navigation-2');
372	var header = $('.header-1_container');
373	
374	
375	var headerHeight = header.outerHeight();
376	var nav2Height = nav2.outerHeight();
377	
378	var difference = Math.ceil(( headerHeight - nav2Height ) / 2 - 3);
379	nav2.css('top', difference);
380
381}
382
383/* NAVIGATION-2 - NAVIGATION-MOBILE - TOGGLE OPENING AND CLOSING */
384
385function toggle_mobile_menu() {
386	$('.mobile_nav_button').click(function(){
387		$('.navigation-2').toggleClass("navigation-2_active");
388	    $('.navigation-mobile').slideToggle();
389	});
390}
391
392/* NAVIGATION-2 - NAVIGATION-MOBILE - POSITION */
393
394function navigation_mobile_position() 	{
395
396	var header = $('.header-1_container');
397	var mobilebtn = $('.mobile_nav_button');
398	var headerHeight = header.outerHeight();
399	var mobilebtnHeight = mobilebtn.outerHeight();
400	var pos = Math.ceil(headerHeight - mobilebtnHeight / 2) - 3;
401
402	$('.navigation-mobile').css('top', pos);
403
404}
405
406/* NAVIGATION-2 - SUB-MENU OPEN/CLOSE TOGGLE */
407
408function navigation_2_sub_menu_toggle() 	{
409
410	$('.navigation-2 li').hover(
411		function(){
412	    	$(this).parents(".sub-menu").css("height", "auto");
413	    	$(this).children(".sub-menu").stop(false,true).slideDown();
414		},
415		function(){
416	    	$(this).children(".sub-menu").stop(false,false).slideUp();
417		}
418	);
419
420}
421
422/* FOOTER-SOCIAL - SOCIAL TICKER TOTEM PLUGIN */
423
424var social_ticker_el = null;
425
426function social_ticker() 	{
427
428	if ( social_ticker_el ) {
429		if( social_ticker_el.destroySlider ) {
430			social_ticker_el.destroySlider();
431		}
432	}
433
434	social_ticker_el = $('.footer-social .timeline').bxSlider({
435		controls: false,
436		pager: false,
437		mode: 'vertical',
438		auto: true,
439		pause: 5000,
440		responsive: false,
441		//minSlides: 1,
442		//maxSlides: 1,
443		touchEnabled: false,
444		autoHover: true,
445  		slideMargin: 10,
446		//mode: 'vertical',
447		//auto: true,
448		//speed: 300,
449		//adaptiveHeight: true,
450	});
451
452	$('.footer-social .timeline').css('visibility','visible');
453}
454
455$(document).ready(function($){
456
457	/* Windsock: anti spam */
458	nospam();
459		
460	/* PORTFOLIO SORTABLE */
461	
462	var $container = $('.portfolio-cat-1 .portfolio_grid');
463	var $gridcols = $('.portfolio-cat-1 .portfolio_grid').attr('data-portfolio-cols');
464	var $checkboxes = $('.portfolio_sortable a');
465
466	$('.portfolio-cat-1 .portfolio_grid').css('opacity','0');
467
468	// initialize Isotope
469	$container.imagesLoaded( function(){
470		$('.portfolio-cat-1 .portfolio_grid_wrapper').css('background','none');
471		$('.portfolio-cat-1 .portfolio_grid').stop().animate({opacity:1},500);
472
473		$container.isotope({
474		  // options...
475		  resizable: false, // disable normal resizing
476		  layoutMode : 'fitRows',
477	      itemSelector: '.portfolio-post-1_container',
478		  // set columnWidth to a percentage of container width
479		  masonry: { columnWidth: $container.width() / $gridcols }
480		});
481	});
482
483	// update columnWidth on window resize
484	$(window).smartresize(function(){
485	  $container.isotope({
486	    // update columnWidth to a percentage of container width
487	    masonry: { columnWidth: $container.width() / $gridcols }
488	  });
489	});
490
491	// sortable filters
492	$('.portfolio_sortable a').click(function(){
493	  var selector = $(this).attr('data-filter');
494	  $container.isotope({ filter: selector });
495	  return false;
496	});
497
498	// number of visible objects
499    var $items = $('.portfolio-post-1_container'); // to reference methods on all .item divs later
500
501    $checkboxes.click(function() {
502        var filters = [];
503        // get checked checkboxes values
504        
505        filters.push($(this).attr('data-filter'));
506        
507        // ['.red', '.blue'] -> '.red, .blue'
508        filters = filters.join(', ');
509        $container.isotope({
510            filter: filters
511        }, function($changedItems, instance) {
512            instance.$allAtoms.filter('.isotope-hidden').removeClass('is-filtered');
513            instance.$filteredAtoms.addClass('is-filtered');
514            $('.portfolio_sortable_count_number').html(instance.$filteredAtoms.size());
515        });
516        
517    });
518
519    $('.portfolio_sortable a.all').click();
520
521	/* STICKY FOOTER */
522
523	sticky_footer()
524
525	$(window).resize(function() {
526		sticky_footer()
527	});
528
529	/* CENTER NAVIGATION-1 */
530
531	$('.logo').find('img').load(function(){
532		center_navigation_1();
533	});
534
535	center_navigation_1();
536
537	$(window).resize(function() {
538		center_navigation_1();
539	});
540
541	/* NAVIGATION-1 - SUB-MENU - OPENING/CLOSING ANIMATION */
542
543	navigation_1_sub_menu();
544
545	/* SEARCH TOP - OPEN/CLOSE OVERLAY */
546
547	search_top_overlay_toggle();
548
549	/* CENTER NAVIGATION-2 */
550
551	$('.logo').find('img').load(function(){
552		center_navigation_2();
553	});
554
555	center_navigation_2();
556
557	$(window).resize(function() {
558		center_navigation_2();
559	});
560
561	/* NAVIGATION-2 - NAVIGATION-MOBILE - TOGGLE OPENING AND CLOSING */
562
563	toggle_mobile_menu();
564
565	/* NAVIGATION-2 - NAVIGATION-MOBILE - POSITION */
566
567	navigation_mobile_position();
568
569	$(window).resize(function() {
570		navigation_mobile_position();
571	});
572
573	/* NAVIGATION-2 - SUB-MENU OPEN/CLOSE TOGGLE */
574
575	navigation_2_sub_menu_toggle();
576
577	/* FIXED HEADER */
578
579	fixed_header();
580
581	$(window).resize(function() {
582		fixed_header();
583	});
584
585	/* BACK TO TOP */
586
587	$('.back_to_top').click(function() {
588		$('body,html').animate({scrollTop:0}, 300);
589		return false;
590	});
591
592	/* FEATURED IMAGE HOVER - DEFAULT */
593
594	
595	$('a.featured_image_wrapper').hover(function() {
596		$(this).find('.featured_image').stop().animate({opacity:0.25},200);
597	}, function() {
598		$(this).find('.featured_image').stop().animate({opacity:1},200);
599	});
600
601	
602
603	/* MAGNIFIC POPUP INIT - FEATURED IMAGE */
604
605	$('.featured_image_wrapper, .rps_image_zoom, .portfolio_image_zoom').each(function(){
606		if ($(this).parents('.product_slider').size() == 0){
607			$(this).magnificPopup({
608			  type: 'image',
609			  image:{
610					cursor: null
611			  },
612			  removalDelay: 200, //delay removal by X to allow out-animation
613			  callbacks: {
614			    beforeOpen: function() {
615			      // just a hack that adds mfp-anim class to markup 
616			       this.st.image.markup = this.st.image.markup.replace('mfp-figure', 'mfp-figure mfp-with-anim');
617			       this.st.mainClass = this.st.el.attr('data-effect');
618			    },
619			    open: function() 	{
620			    },
621			    close: function() 	{
622			    }
623			  },
624			  closeOnContentClick: true,
625			  midClick: true // allow opening popup on middle mouse click. Always set it to true if you don't provide alternative source.
626			});
627		}
628	});
629
630	/* SHORTCODE - ACCORDEON */
631
632	$('.tb_accordeon_item_post_title_wrapper').click(function() {
633		if( $(this).parents('.tb_accordeon_wrapper').find(':animated').size() != 0 )
634			return false;
635		var one_item = $(this).parent();
636		var text_wrapper = one_item.find('.tb_accordeon_item_content_wrapper');
637		var text_content = text_wrapper.find('.tb_accordeon_item_content');
638		var title_bg = one_item.find('.tb_accordeon_item_title_bg');
639
640		if( text_wrapper.height() == 0 ) {
641			one_item.addClass('tb_accordeon_item_active');
642			text_wrapper.css('display','block').animate({height: text_content[0].scrollHeight - 16 }, 500);
643			title_bg.fadeOut(500);
644		} else {
645			text_wrapper.animate({height:0}, 500, function() { $(this).css('display','none'); } );
646			one_item.removeClass('tb_accordeon_item_active');
647			title_bg.fadeIn(500);
648		}
649
650		var accordeon_holder = $(this).parent().parent();
651		accordeon_holder.find('.tb_accordeon_item').each(function() {
652			if( $(this).find(':animated').size() == 0 ) {
653				$(this).find('.tb_accordeon_item_content_wrapper').animate({height:0}, 500);
654				$(this).removeClass('tb_accordeon_item_active');
655				$(this).find('.tb_accordeon_item_title_bg').fadeIn(500);
656			}
657		});
658	});
659	
660	$(window).resize(function() {
661		$('.tb_accordeon_item_active').each(function(){
662			var text_wrapper = $(this).find('.tb_accordeon_item_content_wrapper');
663			var text_content = $(this).find('.tb_accordeon_item_content');
664
665			if( text_wrapper.height() != 0 ) {
666				text_wrapper.css('height', text_content[0].scrollHeight - 16 );
667			}
668		});
669	});
670
671	/* SHORTCODE - TABS */
672
673	$('.tb_tabs_title').click(function() {
674		if( $(this).hasClass('tb_tabs_title_active') )
675			return false;
676
677		var tabs = $(this).parent().parent();
678
679		tabs.find('.tb_tabs_title').removeClass('tb_tabs_title_active');
680		$(this).addClass('tb_tabs_title_active');
681		var item_position = $(this).index();
682		tabs.find('.tb_tabs_item_content').css('display','none');
683
684		tabs.find('.tb_tabs_item_content').eq( item_position ).css({'display':'block', 'opacity':0.2}).animate({opacity:1}, 200);
685
686	});
687
688	/* SCROLL TO WITH INTERNAL ANCHOR LINKS */
689
690	function getElemementToScroll(){
691		if( -1 == document.URL.indexOf('#') ){
692			return null;
693		}
694
695		var _id;
696		_id = document.URL.split('#');
697		_id = "" + _id[1];
698		if( _id.length < 1 ) {
699			return null;
700		}
701
702		if( $( '#' + _id ).size() < 1 ){
703			return null;
704		}
705
706		if( ! $( '#' + _id ).hasClass('scrollto') ){
707			return null;
708		}
709
710		return _id;
711	}
712
713	function scrollToElement(){
714		var _id = getElemementToScroll();
715		if( _id ) { } else{
716			return;
717		}
718
719		// Scroll - ID
720		var _scroll_pos = 0;
721		_scroll_pos += $( '#' + _id ).offset().top;
722
723		// Scroll - header repair
724		var fixed_header_height = 0;
725		if ( $(".jqres").width() > 840) { // responsive
726			fixed_header_height = $('.header_main_wrapper').outerHeight();
727		}
728		_scroll_pos -= fixed_header_height;
729
730		// admin bar
731		if( $('body').hasClass('admin-bar') ) {
732			_scroll_pos -= $('#wpadminbar').outerHeight();
733		}
734
735		// Bulgarian const = Correction 
736		_scroll_pos -= 30;
737
738		$('html, body').stop().animate({
739			'scrollTop': _scroll_pos
740		}, 100, 'swing', function () {
741			//window.location.hash = target;
742		});
743
744
745	}
746
747	/*
748	$(document).ready(function(){
749		$('a[href^="#"]').on('click',function (e) {
750		    e.preventDefault();
751
752		    var target = this.hash,
753		    $target = $(target);
754
755		    if ( $(".jqres").width() > 840) { // responsive
756				var fixed_header_height = $('.header-1_container').outerHeight();
757			}
758
759		    $('html, body').stop().animate({
760		        'scrollTop': $target.offset().top - fixed_header_height - 60
761		    }, 900, 'swing', function () {
762		        //window.location.hash = target;
763		    });
764		    return false;
765		});
766	});
767
768	*/
769
770	/* FOOTER-SOCIAL - SOCIAL TICKER */
771
772	setTimeout(function(){
773		social_ticker()
774		$('.footer-social_container').css('max-height', 'none');
775	},10)
776
777	var firsttweetheight = $('.footer-social .timeline li:first').height();
778	$('.footer-social_container').css('max-height', firsttweetheight);
779
780});
781
782
783$(window).load(function () {
784
785	/* FIXED HEADER */
786
787	fixed_header();
788
789	/* CENTER NAVIGATION-1 */
790
791	center_navigation_1();
792
793	/* SEARCH TOP - POSITION */
794
795	/*search_top_overlay_position()*/
796
797	/* CENTER NAVIGATION-2 */
798
799	center_navigation_2();
800
801	/* NAVIGATION-2 - NAVIGATION-MOBILE - POSITION */
802
803	navigation_mobile_position();
804
805	init_logo_slider();
806
807	/* SHORTCODE - ACCORDEON - OPEN ON PAGELOAD */
808
809	$('.tb_accordeon_item_open .tb_accordeon_item_post_title_wrapper').click();
810
811	/* FOOTER-SOCIAL - SOCIAL TICKER */
812
813	$(window).resize(function() {
814		social_ticker()
815	});
816
817	/* INITIALIZE BXSLIDER */
818
819	setTimeout(function(){
820		$('.bxslider').bxSlider({
821			pager: false,
822		})
823	}, 10 );
824
825	/* STICKY FOOTER */
826
827	setTimeout(function(){
828		sticky_footer()
829	},11)
830
831	
832
833});
834
835
836
837})(jQuery);
838

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.