PageSourceSearch

https://icom-portugal.org/wp-content/themes/Chameleon/js/et_flexslider.js?ver=1.0

js icom-portugal.org collected 2026-10-02 11:40:48 UTC 2,492 bytes, 87 lines download raw bytes

1jQuery(window).load(function($){
2	var $featured = jQuery('#featured'),
3		et_featured_slider_auto = jQuery("meta[name=et_featured_slider_auto]").attr('content'),
4		et_featured_auto_speed = jQuery("meta[name=et_featured_auto_speed]").attr('content'),
5		$et_mobile_nav_button = jQuery('#mobile_nav'),
6		$et_nav = jQuery('ul#top-menu'),
7		et_container_width = jQuery('#container').width(),
8		$cloned_nav;
9
10	if ( $featured.length ){
11		et_slider_settings = {
12
13			controlsContainer: '#featured #controllers_wrapper',
14			slideshow: false
15		}
16
17		if ( '1' === et_featured_slider_auto ) {
18			et_slider_settings.slideshow = true;
19			et_slider_settings.slideshowSpeed = et_featured_auto_speed;
20		}
21
22		et_slider_settings.pauseOnHover = true;
23
24		$featured.flexslider( et_slider_settings );
25	}
26
27	if ( ! jQuery('html#ie7').length ) {
28		$et_nav.clone().attr('id','mobile_menu').removeClass().appendTo( $et_mobile_nav_button );
29		$cloned_nav = $et_mobile_nav_button.find('> ul');
30
31		$et_mobile_nav_button.click( function(){
32			if ( jQuery(this).hasClass('closed') ){
33				jQuery(this).removeClass( 'closed' ).addClass( 'opened' );
34				$cloned_nav.slideDown( 500 );
35			} else {
36				jQuery(this).removeClass( 'opened' ).addClass( 'closed' );
37				$cloned_nav.slideUp( 500 );
38			}
39			return false;
40		} );
41
42		$et_mobile_nav_button.find('a').click( function(event){
43			event.stopPropagation();
44		} );
45
46		jQuery(window).resize( function(){
47			if ( et_container_width != jQuery('#container').width() ) {
48				et_container_width = jQuery('#container').width();
49
50				et_mobile_navigation_fix();
51				et_footer_widgets_fix();
52			}
53		});
54
55		et_mobile_navigation_fix();
56		et_footer_widgets_fix();
57	}
58
59	function et_mobile_navigation_fix(){
60		var et_left;
61
62		if ( et_container_width <= 480 ){
63			et_left = ( et_container_width - $et_mobile_nav_button.innerWidth() ) / 2;
64			if ( et_container_width <= 300 ){
65				et_left = et_left - 31;
66			} else {
67				et_left = et_left - 52;
68			}
69			$cloned_nav.css( 'left', '-' + et_left + 'px' );
70		}
71	}
72
73	function et_footer_widgets_fix(){
74		var $footer_widget = jQuery("#footer-widgets .footer-widget"),
75			footer_columns_num;
76
77		footer_columns_num = et_container_width <= 768 ? 3 : 4;
78
79		if ( $footer_widget.length ) {
80			$footer_widget.removeClass('last').closest('#footer-widgets').find('div.clear').remove();
81
82			$footer_widget.each(function (index, domEle) {
83				if ((index+1)%footer_columns_num == 0) jQuery(domEle).addClass("last").after("<div class='clear'></div>");
84			});
85		}
86	}
87});

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.