-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathCustomLink.js
More file actions
238 lines (221 loc) · 18 KB
/
Copy pathCustomLink.js
File metadata and controls
238 lines (221 loc) · 18 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
/** global: VRS */
if(VRS && VRS.globalDispatch && VRS.serverConfig) {
VRS.globalDispatch.hook(VRS.globalEvent.bootstrapCreated, function() {
VRS.LinkSite.ahJetPhotosDotNet = "jetphotosnet";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahJetPhotosDotNet,
displayOrder: 1,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg; },
title: 'JetPhotos',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'http://www.jetphotos.net/showphotos.php?regsearch=' + ( aircraft.registration.val ? (!isNaN(aircraft.registration.val) && aircraft.operatorIcao.val ? VRS.stringUtility.htmlEscape(aircraft.formatOperatorIcao() + aircraft.formatRegistration()) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration())) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(false)) ); },
target: 'jetphotos'
})
);
VRS.LinkSite.ahPlaneSpottersDotNet = "planespottersnet";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahPlaneSpottersDotNet,
displayOrder: 2,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg; },
title: 'Planespotters',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'https://www.planespotters.net/photos/reg/' + ( aircraft.registration.val ? (!isNaN(aircraft.registration.val) && aircraft.operatorIcao.val ? VRS.stringUtility.htmlEscape(aircraft.formatOperatorIcao() + aircraft.formatRegistration()) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration())) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(false)) ); },
target: 'planespotters'
})
);
VRS.LinkSite.ahOneSpotterDotCom = "onespottercom";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahOneSpotterDotCom,
displayOrder: 3,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.icao.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.icao.chg; },
title: 'OneSpotter',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'http://onespotter.com/aircrafts/search?text=' + ( aircraft.icao.val ); },
target: 'onespotter'
})
);
VRS.LinkSite.ahADSBExchangeDotCom = "adsbexchangecom";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahADSBExchangeDotCom,
displayOrder: 4,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.icao.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.icao.chg; },
title: 'ADS-B Exchange',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'https://globe.adsbexchange.com/?icao=' + ( aircraft.icao.val ) + "&sort1=date&sortAsc1=0&sort2=none¬Online=0"; },
target: 'adsbexchange'
})
);
VRS.LinkSite.ahTrafegoAereoDotCom = "trafegoaereocom";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahTrafegoAereoDotCom,
displayOrder: 5,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.icao.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.icao.chg; },
title: 'TrafegoAereo',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'https://tar1090.trafegoaereo.com.br/tar1090/?icao=' + ( aircraft.icao.val ) + "&sort1=date&sortAsc1=0&sort2=none¬Online=0"; },
target: 'trafegoaereo'
})
);
VRS.LinkSite.ahFlightAwareDotCom = "flightawarecom";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahFlightAwareDotCom,
displayOrder: 6,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val || aircraft.callsign.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg || aircraft.callsign.chg; },
title: 'FlightAware',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'http://flightaware.com/live/flight/' + ( aircraft.callsign.val ? (!isNaN(aircraft.callsign.val) && aircraft.operatorIcao.val ? VRS.stringUtility.htmlEscape(aircraft.formatOperatorIcao() + aircraft.formatCallsign()) : VRS.stringUtility.htmlEscape(aircraft.formatCallsign())) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(true)) ); },
target: 'flightaware'
})
);
VRS.LinkSite.ahSerialRegistryDotFaaDotOrg = "serialfaaorg";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahSerialRegistryDotFaaDotOrg,
displayOrder: 7,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.serial.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.serial.chg; },
title: 'Serial (FAA)',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'https://registry.faa.gov/aircraftinquiry/Search/SerialNumberInquiry?serial=' + ( aircraft.serial.val ) + '&sort_option=1&PageNo=1'; },
target: 'serialfaa'
})
);
VRS.LinkSite.ahNNumberRegistryDotFaaDotOrg = "nnumberfaaorg";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahNNumberRegistryDotFaaDotOrg,
displayOrder: 8,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg; },
title: 'N Number (FAA)',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'https://registry.faa.gov/aircraftinquiry/Search/NNumberResult?NNumberTxt=' + ( aircraft.registration.val ); },
target: 'nnumberfaa'
})
);
VRS.LinkSite.RAB_info = "anac";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.RAB_info,
displayOrder: 9,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg; },
title: 'RAB (ANAC)',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'https://sistemas.anac.gov.br/aeronaves/cons_rab_resposta_en.asp?textMarca=' + ( aircraft.registration.val ? (!isNaN(aircraft.registration.val) && aircraft.operatorIcao.val ? VRS.stringUtility.htmlEscape(aircraft.formatOperatorIcao() + aircraft.formatRegistration()) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(true))) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(true)) ); },
target: 'RAB'
})
);
VRS.LinkSite.ahJakaFotografia = "jakafotografia.com.br";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahJakaFotografia,
displayOrder: 10,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg; },
title: 'JakaFotografia',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'http://www.jakafotografia.com.br/busca.php?chave=' + ( aircraft.registration.val ? (!isNaN(aircraft.registration.val) && aircraft.operatorIcao.val ? VRS.stringUtility.htmlEscape(aircraft.formatOperatorIcao() + aircraft.formatRegistration()) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration())) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(false)) ) + '&tabela=1'; },
target: 'jakafotografia'
})
);
VRS.LinkSite.ahPilotoDeAviaoDotCom = "galeria.pilotodeaviao.com";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahPilotoDeAviaoDotCom,
displayOrder: 11,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg; },
title: 'PilotoDeAvião',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'http://galeria.pilotodeaviao.com/index.php/search?q=' + ( aircraft.registration.val ? (!isNaN(aircraft.registration.val) && aircraft.operatorIcao.val ? VRS.stringUtility.htmlEscape(aircraft.formatOperatorIcao() + aircraft.formatRegistration()) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration())) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(false)) ); },
target: 'pilotodeaviao'
})
);
VRS.LinkSite.ahFlickrDotCom = "flickr.com";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahFlickrDotCom,
displayOrder: 12,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg; },
title: 'Flickr',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'https://www.flickr.com/search/?text=' + ( aircraft.registration.val ? (!isNaN(aircraft.registration.val) && aircraft.operatorIcao.val ? VRS.stringUtility.htmlEscape(aircraft.formatOperatorIcao() + aircraft.formatRegistration()) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration())) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(false)) ); },
target: 'flickr'
})
);
VRS.LinkSite.ahGoogleImages = "images.google.com";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahGoogleImages,
displayOrder: 13,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg; },
title: 'Google',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'https://www.google.com.br/search?safe=off&tbm=isch&source=hp&biw=1680&bih=987&q="' + ( aircraft.registration.val ? (!isNaN(aircraft.registration.val) && aircraft.operatorIcao.val ? VRS.stringUtility.htmlEscape(aircraft.formatOperatorIcao() + aircraft.formatRegistration()) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration())) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(false)) ) + '"'; },
target: 'googleimages'
})
);
VRS.LinkSite.ahAirTeamImagesDotCom = "airteamimages.com";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahAirTeamImagesDotCom,
displayOrder: 14,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg; },
title: 'AirTeamImages',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'http://www.airteamimages.com/search.php?srch_keyword=' + ( aircraft.registration.val ? (!isNaN(aircraft.registration.val) && aircraft.operatorIcao.val ? VRS.stringUtility.htmlEscape(aircraft.formatOperatorIcao() + aircraft.formatRegistration()) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration())) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(false)) ) + '&header-search-button=search'; },
target: 'airteamimages'
})
);
VRS.LinkSite.ahLKPDDotInfo = "lkpdinfo";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahLKPDDotInfo,
displayOrder: 15,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg; },
title: 'LKPDinfo',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'http://www.lkpd.info/search.php?registration=' + ( aircraft.registration.val ? (!isNaN(aircraft.registration.val) && aircraft.operatorIcao.val ? VRS.stringUtility.htmlEscape(aircraft.formatOperatorIcao() + aircraft.formatRegistration()) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration())) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(false)) ); },
target: 'lkpdinfo'
})
);
VRS.LinkSite.ahAviationCornerDotNet = "aviationcornernet";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahAviationCornerDotNet,
displayOrder: 16,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg; },
title: 'AviationCorner',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'http://www.aviationcorner.net/gallery_en.asp?registration=' + ( aircraft.registration.val ? (!isNaN(aircraft.registration.val) && aircraft.operatorIcao.val ? VRS.stringUtility.htmlEscape(aircraft.formatOperatorIcao() + aircraft.formatRegistration()) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration())) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(false)) ); },
target: 'aviationcorner'
})
);
VRS.LinkSite.ahPlaneSpottersHubDotCom = "planespottershubcom";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahPlaneSpottersHubDotCom,
displayOrder: 17,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.registration.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.registration.chg; },
title: 'PlaneSpotersHub',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'http://www.planespottershub.com/registration/' + ( aircraft.registration.val ? (!isNaN(aircraft.registration.val) && aircraft.operatorIcao.val ? VRS.stringUtility.htmlEscape(aircraft.formatOperatorIcao() + aircraft.formatRegistration()) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration())) : VRS.stringUtility.htmlEscape(aircraft.formatRegistration(false)) ); },
target: 'planespottershub'
})
);
VRS.LinkSite.ahEuroControl = "contentzone.eurocontrol.int/";
VRS.linkRenderHandlers.push(
new VRS.LinkRenderHandler({
linkSite: VRS.LinkSite.ahEuroControl,
displayOrder: 18,
canLinkAircraft: function(/** VRS.Aircraft */ aircraft) { return aircraft && (aircraft.modelIcao.val); },
hasChanged: function(/** VRS.Aircraft */ aircraft) { return aircraft.modelIcao.chg; },
title: 'Eurocontrol',
buildUrl: function(/** VRS.Aircraft */ aircraft) { return 'https://contentzone.eurocontrol.int/aircraftperformance/details.aspx?ICAO=' + ( aircraft.modelIcao.val ); },
target: 'Eurocontrol'
})
);
});
}