PageSourceSearch

http://www.aeroportoguarulhos.net/wp-content/themes/aeroportos/js/painel_voos.js

js aeroportoguarulhos.net collected 2026-10-02 03:34:33 UTC 5,357 bytes, 188 lines download raw bytes

1function posicionaBox(){
2	var largura = jQuery(window).width();
3
4	var mgLeft = ((largura - 990)/2)-100;
5
6	jQuery('#social-lateral').css('left', mgLeft + 'px');
7	
8}
9
10jQuery(document).ready(function(){
11	
12	posicionaBox();
13	
14	jQuery(window).resize(function(){
15		posicionaBox();
16	});
17	
18	function painel(tipo,horario,dia,voo,cia){
19		jQuery("#dados-painel").html('<div id="painel-loader"></div>');
20		url = 'includes/painel/painel_full.inc.php';
21		jQuery.get(url,{caminho:tipo,horario:horario,diaPainel:dia,numVoo:voo,nameCia:cia}, function(voos) {
22			jQuery("#dados-painel").html(voos);
23		});
24	}
25	
26	
27	painel('C','first','first',null,null);
28	
29	jQuery('#painel-partida').click(function(){
30		jQuery(this).css('background-position','0px -836px');
31		jQuery('#painel-chegada').css('background-position','0px -861px');
32		jQuery("#numVoo").val("");
33        jQuery("#ciaSelect").val("0");
34        var hora = jQuery("#horario").val();
35        var diaPainelSelect = jQuery("#diaPainel").val();
36		jQuery("#caminho").val('P');
37		painel('P',hora,diaPainelSelect,null,null);
38	});
39	
40	jQuery('#painel-chegada').click(function(){
41		jQuery(this).css('background-position','0px -836px');
42		jQuery('#painel-partida').css('background-position','0px -861px');
43		jQuery("#numVoo").val("");
44        jQuery("#ciaSelect").val("0");
45        var hora = jQuery("#horario").val();
46        var diaPainelSelect = jQuery("#diaPainel").val();
47		jQuery("#caminho").val('C');
48		painel('C',hora,diaPainelSelect,null,null);
49	});
50	
51	jQuery('#diaPainel').change(function(){
52		jQuery("#numVoo").val("");
53        jQuery("#ciaSelect").val("0");
54        var hora = jQuery("#horario").val();
55        var tipo = jQuery("#caminho").val();
56        var diaPainelSelect = jQuery("#diaPainel").val();
57        painel(tipo,hora,diaPainelSelect,null,null);
58	});
59	
60	jQuery("#horario").change(function(){
61        jQuery("#numVoo").val("");
62        jQuery("#ciaSelect").val("0");
63        var hora = jQuery(this).val();
64        var tipo = jQuery("#caminho").val();
65        var diaPainelSelect = jQuery("#diaPainel").val();
66        painel(tipo,hora,diaPainelSelect,null,null);
67    });
68	
69	jQuery("#numVoo").keyup(function(){
70        var tipo = jQuery("#caminho").val();
71        var voo = jQuery("#numVoo").val();
72        jQuery("#ciaSelect").val("0");
73        
74        painel(tipo,null,null,voo,null);
75     
76    });
77	
78	jQuery("#ciaSelect").change(function(){
79        var tipo = jQuery("#caminho").val();
80        var cia = jQuery("#ciaSelect").val();
81        jQuery("#numVoo").val("");
82        if(cia != "0"){
83        	painel(tipo,null,null,null,cia);
84        }
85
86
87    });
88	
89	jQuery(window).scroll(function(){
90
91		var scrollTop = (jQuery(document).scrollTop());
92
93		var contHeight = jQuery('#container').height();
94
95		var boxHeight = jQuery('#social-lateral').height();
96
97		var limitBottom = contHeight + 270 - boxHeight;
98
99		if(scrollTop > 270 && scrollTop < limitBottom){
100			var novoTop = scrollTop + 20;
101			
102			if(novoTop > limitBottom){
103				novoTop = limitBottom;
104			}
105
106
107			jQuery('#social-lateral').animate({
108       			top: novoTop + "px"
109       		},{duration:400,queue:false}
110       		);
111       		
112		}else if(scrollTop >= limitBottom){
113			jQuery('#social-lateral').animate({
114       			top: limitBottom + "px"
115       		},{duration:400,queue:false}
116       		);
117		}else{
118			jQuery('#social-lateral').animate({
119       			top: "270px"
120       		},{duration:400,queue:false}
121       		);
122		}
123
124	});
125	
126});
127
128jQuery(window).load(function() {
129	
130	jQuery('#social-lateral').css('display', 'block');
131	
132	var locale = jQuery('.fb-button').data('locale');
133	
134	window.fbAsyncInit = function() {
135		FB.init({appId: '222450587813633', status: true, cookie: true, xfbml: true});
136	};
137	jQuery('body').append('<div id="fb-root"><\/div>');
138	jQuery.getScript(document.location.protocol + '//connect.facebook.net/' + locale + '/all.js');
139	
140	jQuery('.fb-button').each(function(index, element) {
141        var url = jQuery(this).data('url'),
142		elem = jQuery(document.createElement("fb:like"));
143		elem.attr({
144			href: url,
145			send: 'true',
146			width: 400,
147			show_faces: 'false'	
148		});
149		jQuery(this).append(elem);
150    });
151	
152	
153	
154	var urlFB = jQuery('.fb-lateral').data('url');
155	
156	var iframeFB = '<iframe src="//www.facebook.com/plugins/like.php?href=' + urlFB + '&amp;send=false&amp;layout=box_count&amp;width=450&amp;show_faces=false&amp;action=like&amp;colorscheme=light&amp;font&amp;height=70&amp;locale=' + locale + '&amp;appId=222450587813633" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:400px; height:70px;" allowTransparency="true"></iframe>';
157	
158	
159	
160	jQuery('.fb-lateral').append(iframeFB);
161	
162	
163	jQuery.getScript('http://platform.twitter.com/widgets.js', function() {
164  		jQuery('div.twitter-lateral').find('a.twitter-share-button').each(function(i) {
165			var loadedTweetButton = new twttr.TweetButton($(this).get(0));
166			loadedTweetButton.render();
167		});
168  		
169  		jQuery('div.twitter-button').find('a.twitter-share-button').each(function(i) {
170  			var loadedTweetButton = new twttr.TweetButton($(this).get(0));
171  			loadedTweetButton.render();
172  		});
173  		
174	});
175
176		jQuery.getScript('https://apis.google.com/js/plusone.js', function() {
177	  		jQuery('div.plus-lateral').each(function() {
178				gapi.plusone.go();
179			});
180	  		
181	  		jQuery('div.plus-button').each(function() {
182	  			gapi.plusone.go();
183	  		});
184	  		
185		});
186
187    
188});

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.