PageSourceSearch

http://www.portoenorte.pt/temas/tpnp/js/gca.js

js portoenorte.pt collected 2026-10-02 10:38:20 UTC 2,671 bytes, 115 lines download raw bytes

1function RemotePopUpGca(url, wit, hei) {
2	var RemotePopUpGca = null
3	RemotePopUpGca = window.open(url,'_blank','toolbar=no,location=no,directories=no,status=yes,scrollbars=no,resizable=no,menubar=no,width='+wit+',height='+hei)
4	if (RemotePopUpGca != null) {
5		RemotePopUpGca.location.href = url
6	}
7}
8
9$(document).ready(function(){
10	if ($(".sidebar > li a").length > 0) {
11		$(".sidebar > li ul").hide();
12
13		$(".sidebar > li a").click(function(e, triggered){
14			slideDuration = 500;
15			if (typeof triggered == "boolean" && triggered === true) {
16				slideDuration = 0;
17			}
18
19			li = $(this).parent();
20			ul = li.children("ul");
21
22			if (ul.length == 0) {
23				return true;
24			}
25
26			if (li.hasClass("open")) {
27				li.removeClass("open");
28				ul.stop(true, true).slideUp(slideDuration);
29			}
30			else {
31				li.addClass("open");
32				ul.stop(true, true).slideDown(slideDuration);
33			}
34
35			e.preventDefault();
36		});
37
38		if ($(".sidebar > li a.active").length > 0) {
39			var item = $(".sidebar > li a.active").parent().parent();
40
41			while (item.is(":hidden")) {
42				if (item.children("li").children("a").length > 0 && item.children("li").children("ul").length > 0) {
43					item.children("li").children("a").trigger("click", [true]);
44				}
45
46				item = item.parent().parent();
47			}
48
49			if (item.children("li").children("a").length > 0 && item.children("li").children("ul").length > 0) {
50				item.children("li").children("a").trigger("click", [true]);
51			}
52		}
53	}
54
55	if ($("#world-map-porto .aviao").length > 0) {
56		planes_world_map();
57	}
58});
59
60function planes_world_map() {
61	var startX = 0;
62	var startY = 0;
63	var startTime = 0;
64	var endTime = 0;
65
66	var bezierParams = {
67		start: {
68			x: startX,
69			y: startY,
70			angle: 0
71		},
72		end: {
73			x: 410,
74			y: 202,
75			angle: 0,
76			length: 0
77		}
78	}
79
80	$('.aviao').each(function (index, value) {
81		$(this).removeClass("hide").css({
82			visibility: "visible",
83			opacity: 0,
84			left: $(this).data("x") + "px",
85			top: $(this).data("y") + "px"
86		});
87
88		setTimeout(function(el){
89			el.css({
90				opacity: 1
91			});
92			startX = el.data("x");
93			startY = el.data("y");
94			endTime = el.data("time");
95
96			bezierParams.start.x = startX;
97			bezierParams.start.y = startY;
98
99			el.animate({
100				path : new $.path.bezier(bezierParams)
101			}, endTime, function(){
102			});
103		}.bind(null, $(this)), startTime);
104
105		setTimeout(function(el){
106			el.addClass("hide");
107		}.bind(null, $(this)), startTime + parseFloat($(this).data("time") / 2));
108
109		startTime += ($(this).data("time") / 2);
110	});
111
112	setTimeout(function(){
113		planes_world_map();
114	}, startTime + 500);
115}

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.