-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
326 lines (323 loc) · 13.2 KB
/
index.html
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
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
<!DOCTYPE html>
<html>
<head>
<title>Compilation de mes builds</title>
<link rel="stylesheet" href="style.css">
</head>
<body onload="changeFunction()">
<!-- Créez un menu déroulant et un lien -->
<label for="menu">
<h1>Compilation de mes builds</h1>
</label>
<select id="menu">
</select>
<a id="link1" href="#" target="_blank">Sélectionnez un archétype</a>
<a id="link2" href="#" target="_blank">Sélectionnez un archétype</a>
<a id="link3" href="#" target="_blank">Sélectionnez un archétype</a>
<a id="link4" href="#" target="_blank">Sélectionnez un archétype</a>
<a id="link5" href="#" target="_blank">Sélectionnez un archétype</a>
<a id="link6" href="#" target="_blank">Sélectionnez un archétype</a>
<a id="link7" href="#" target="_blank">Sélectionnez un archétype</a>
<a id="link8" href="#" target="_blank">Sélectionnez un archétype</a>
<a id="link9" href="#" target="_blank">Sélectionnez un archétype</a>
<a id="link10" href="#" target="_blank">Sélectionnez un archétype</a>
<a id="link11" href="#" target="_blank">Sélectionnez un archétype</a>
<a id="link12" href="#" target="_blank">Sélectionnez un archétype</a>
<script>
// Définissez un tableau d'objets contenant les différentes options de menu et les liens et noms associés
const menuOptions = [{
text: "Guerrier",
link1: "http://gw2skills.net/editor/?PKwEYCNsMC2Fzj9xMxk26ulD-DSRYjR9iAJc7lR1VV6pquHGSiA0BIlr/2S7bWQFA-e",
link1Name: "Heal Quickness Berserker - 25/06/2024",
link2: "http://gw2skills.net/editor/?PKwAceFlRwmYUMHmJO+WatKA-DSRYBhbfO6WElRtpaFVltnFSSY83i+zAQFA-e",
link2Name: "Power Berserker - 25/06/2024",
link3: "#",
link3Name: "N/A",
link4: "#",
link4Name: "N/A",
link5: "#",
link5Name: "N/A",
link6: "#",
link6Name: "N/A",
link7: "#",
link7Name: "N/A",
link8: "#",
link8Name: "N/A",
link9: "#",
link9Name: "N/A",
link10: "#",
link10Name: "N/A",
link11: "#",
link11Name: "N/A",
link12: "#",
link12Name: "N/A"
},
{
text: "Revenant",
link1: "http://gw2skills.net/editor/?PmwAExzldQMMHyj1QdsHij9RksAigJ7lasD-DSRYBR95/coAnRtS1KUVy8sQSCj/W0/MCqA-e",
link1Name: "Power Vindicator - 25/06/2024",
link2: "http://gw2skills.net/editor/?PmgAEZlpQHsLyhhRNML6hJSfsCKgJ7lazC-DSRYBR15/coAnRtS1KUVy8sQSCj/W0fGAqA-e",
link2Name: "Quick Power Héraut - 25/06/2024",
link3: "http://gw2skills.net/editor/?PmwAUlfltQIsNKipRSsMCiNSgMDSgjuk5TF-DSJYmR9/pEnIKSJSlCxcVEK8YQSCi/aAxZFoC-e",
link3Name: "Renégat Condi - 25/06/2024",
link4: "http://gw2skills.net/editor/?PmgAUVltQIsNKipRSsMCiNSgMDSgjuk5zH-DSJYyR1/pEniISJSlCxcFRK8YQSCi/aAxnGoC-e",
link4Name: "Renégat Alacrité - 25/06/2024",
link5: "http://gw2skills.net/editor/?PmwAYl7lpQJsLaihRUMLqiJShsCagj1TVrC-DSZYPBZOG1XdZqhUUGVXVpnq++JIJhyfLtvZBVA-e",
link5Name: "Héraut soin - 25/06/2024",
link6: "#",
link6Name: "N/A",
link7: "#",
link7Name: "N/A",
link8: "#",
link8Name: "N/A",
link9: "#",
link9Name: "N/A",
link10: "#",
link10Name: "N/A",
link11: "#",
link11Name: "N/A",
link12: "#",
link12Name: "N/A"
},
{
text: "Gardien",
link1: "http://gw2skills.net/editor/?PWgAENlVwmYOMEWJO0X1tcA-DyQYhQBRsjqzv9zICpaFqKZeWIJhxfL6PDAVA-e",
link1Name: "Dragon Hunter Power - 25/06/2024",
link2: "http://gw2skills.net/editor/?PWwAYl7lRweYYML2JmKXrPdA-DSRYjhi6EJqP3wKjqrq0TVfvIkkQ5vl23sgKA-e",
link2Name: "Heal Firebrand - 25/06/2024",
link3: "http://gw2skills.net/editor/?PWABc+prlRweYdsKmJW0WbPVA-DSJYyx/ZkgUNdVlYPGkER4HgIS/tmd8VBqA-e",
link3Name: "Quickness Firebrand - 25/06/2024",
link4: "http://gw2skills.net/editor/?PWwAc+JlRwgYdsKmJW0WfvXA-DSRYcBBSGdffnRCS1OUVK8YQSCi/aAxnGoC-e",
link4Name: "L'Indécendiaire - 25/06/2024",
link5: "http://gw2skills.net/editor/?PWwAYl7lRw2YcMMmJmyX7vPA-DWJYjR9fhkUCUdVleo67FhUEg/WafzCA-w",
link5Name: "Heal Firebrand WvW - 25/06/2024",
link6: "#",
link6Name: "N/A",
link7: "#",
link7Name: "N/A",
link8: "#",
link8Name: "N/A",
link9: "#",
link9Name: "N/A",
link10: "http://gw2skills.net/editor/?PWwAYl7lRweYYML2JmKXrPdA-DSZYRhESbMCp+KRiqpQSNBquqSPU99iQSEln/2Kgl23s/KA-e",
link10Name: "Heal Firebrand classic Tank Fractal - 25/06/2024",
link11: "http://gw2skills.net/editor/?PWwAYl7lRweYJMM2JmKXrPdA-DSRYjRIgEV/FSqJa1VV6hgvXESiAUBKP/t0+mFUB-e",
link11Name: "Heal Firebrand tank classic sans signe de miséricorde - 25/06/2024",
link12: "http://gw2skills.net/editor/?PWwAYl7lRweYYML2JmKXrPdA-DSRYjRIBFPSUdvNUIpmAVXVpHq+eRIJhyfLtvZBVA-e",
link12Name: "Heal Firebrand Tank classic - 25/06/2024"
},
{
text: "Ingénieur",
link1: "http://gw2skills.net/editor/?PeABk6p7lxyaZuMYWMOeL5xaA-DyIY1ovPM6qiwUR7FQSCi9znpHBVA-e",
link1Name: "Ingénieur Céleste Open World - 25/06/2024",
link2: "http://gw2skills.net/editor/?PewAk6VlNwaZuMPWKeyT/RVA-DSRYjRXVMSIdlR1VR6pivfCSSosfeLtvZBVA-e",
link2Name: "Mécaniste Heal Alac - 25/06/2024",
link3: "http://gw2skills.net/editor/?PeABkqprlxy4YuMYWMOOL5xaA-DSRYfhEiwM6r+2Pj4kKdoKU4xgkICVAx+J/1AizKQFA-e",
link3Name: "Condi Mécaniste - 25/06/2024",
link4: "http://gw2skills.net/editor/?PegAQJlxy2YusXWMOuLvxPA-DSRYBRVpX2coiMLjaTlKqCbPLkkwY/8W0/MCqA-e",
link4Name: "Power Mécaniste - 25/06/2024",
link5: "http://gw2skills.net/editor/?PegAQJlNwaZusXWMOuLvRVA-DSRYBhWrBOqKqkLjaTlKqCbPLkExo8R2PFsF9PjgKA-e",
link5Name: "Alac Power Mécaniste - 25/06/2024",
link6: "http://gw2skills.net/editor/?PegAQJlNwaZusXWMOuLvRVA-DSZYBRVt2BcIiwnDBpMqNVqoKs9swRCj9zbR/l9vC-e",
link6Name: "Mécha Power Alac Fractal - 25/06/2024",
link7: "http://gw2skills.net/editor/?PegAIRlRw2YNMIWJO2LvtXA-DSZYBhUyAOqq6SnDCqMqoKSPVU7sQSCj9zbR/zIoC-e",
link7Name: "Quickness Scrapper - 25/06/2024",
link8: "http://gw2skills.net/editor/?PewAk6VlNwcYNMPWKeyT/NVA-DSZYPBBPGdFRPqh2VGVXFpnK+ebIJhy+5t0+mFUB-e",
link8Name: "Heal Quickness Scrapper - 26/06/2024",
link9: "http://gw2skills.net/editor/?PegAIRlJw2YNMIWJO2LvteA-DSRYBRVpX2coiMLjaTlKqCbPLkkwY/8W0/MCqA-e",
link9Name: "Power Scrapper - 25/06/2024",
link10: "http://gw2skills.net/editor/?PeABwqprlJw6YcsEGKOOL5vbA-DSRYfhATwM6rv6Pj4kKdoKU4xgkICVAx+J/1AizKQFA-e",
link10Name: "Condi Holographiste - 25/06/2024",
link11: "#",
link11Name: "N/A",
link12: "#",
link12Name: "N/A"
},
{
text: "Voleur",
link1: "http://gw2skills.net/editor/?PaABsitrlZwUYHME2JO2WfxKA-DSRYch0TjMuiKLkWChIT0OqKv/Nkkg4vGc8pBqA-e",
link1Name: "Spectre dps (une honte) - 25/06/2024",
link2: "http://gw2skills.net/editor/?PaABsitrlZwUYHME2JO2WfxaA-DSJYyxfh0SIkei2RV59thkIAJcQ8741gjLNQFA-e",
link2Name: "Spectre alacrité - 25/06/2024",
link3: "http://gw2skills.net/editor/?PaABsitrlZwUYHME2JO2WfxaA-DSZYcBJ8Gqgcc61XItECdUVhkoefaIJCQFQ88XDO+0+VA-e",
link3Name: "Spectre alacrité fractal - 25/06/2024",
link4: "#",
link4Name: "N/A",
link5: "#",
link5Name: "N/A",
link6: "#",
link6Name: "N/A",
link7: "#",
link7Name: "N/A",
link8: "#",
link8Name: "N/A",
link9: "#",
link9Name: "N/A",
link10: "#",
link10Name: "N/A",
link11: "#",
link11Name: "N/A",
link12: "http://gw2skills.net/editor/?PawAQhrlZw2YYsM2JO8LbvKA-DSRYBR5tbOiIiLlWChIigaT0KKKbPQkExY7/kRAW0fGAqA-e",
link12Name: "Dead Eye kite - 25/06/2024"
},
{
text: "Rôdeur",
link1: "http://gw2skills.net/editor/?POwEYKNssCGDLhhwKxyVyvpVye2D-DSRYjR9BlJSo3yKjqrq0TVfvOkEBIBwlf/jl23sgKA-e",
link1Name: "Druide tank Heal - 25/06/2024",
link2: "http://gw2skills.net/editor/?POwAIxflZw2YgsLmJWyX/P9JsD-DSRYBhcTfOqvoKKjaT1KqKbvFkkw4vF9PjgKA-e",
link2Name: "Power Soulbeast marteau - 25/06/2024",
link3: "#",
link3Name: "N/A",
link4: "#",
link4Name: "N/A",
link5: "#",
link5Name: "N/A",
link6: "#",
link6Name: "N/A",
link7: "#",
link7Name: "N/A",
link8: "#",
link8Name: "N/A",
link9: "#",
link9Name: "N/A",
link10: "#",
link10Name: "N/A",
link11: "#",
link11Name: "N/A",
link12: "#",
link12Name: "N/A"
},
{
text: "Envoûteur",
link1: "http://gw2skills.net/editor/?PiwAEhzlVwWZbsJmLOyKdRdA-DSIYRU/XG1mqVUVmcWIJixvfgkAeL6vgBVA-e",
link1Name: "Power virtuose - 25/06/2024",
link2: "http://gw2skills.net/editor/?PiABg+hrlVwWZIsEmLe8X/xfA-DSZYfxt2kZIoIKCRE6YEPVjUV+OGkkg4vGQcWBqA-e",
link2Name: "Condi Virtuose chaos - 25/06/2024",
link3: "http://gw2skills.net/editor/?PiwAYt3lRwiYIsEmJe6X9vNA-DSRYVB9JH1fgnR6S1QUVG+hQSEg7QTTP+1GVA-e",
link3Name: "Mirage Alac fun non sérieux - 25/06/2024",
link4: "http://gw2skills.net/editor/?PiwAQt3lZwsYLMF2Ie0TqtHA-DSRYjR9BlJSo3yKjqrq0TVffNkkQ5vl23sgKA-e",
link4Name: "Heal Chrono - 25/06/2024",
link5: "#",
link5Name: "N//A",
link6: "#",
link6Name: "N/A",
link7: "#",
link7Name: "N/A",
link8: "#",
link8Name: "N/A",
link9: "#",
link9Name: "N/A",
link10: "#",
link10Name: "N/A",
link11: "#",
link11Name: "N/A",
link12: "#",
link12Name: "N/A"
},
{
text: "Nécromant",
link1: "http://gw2skills.net/editor/?PSAFw8laYZGMNmELhNip612rH-DSRYjhCyHJO/CKjqrq0TVf/EkEBoCUe+bp9NLoC-e",
link1Name: "Heal Scourge - 25/06/2024",
link2: "http://gw2skills.net/editor/?PSABo+t/lNw0YgsLGJWqX1PVA-DSRYfhEC3Mu+OOjOUVhIVV4LgkEE/1AizKQFA-e",
link2Name: "Condi Scourge - 24/05/2024",
link3: "http://gw2skills.net/editor/?PSwAEhzlRwcYHMFWJOSXmNbA-DyQYho+8fHKwZEhUtCVlMvFkEx4m0so/ZEUB-e",
link3Name: "Power Reaper - 25/06/2024",
link4: "http://gw2skills.net/editor/?PSgAEZlRwcYHMFWJOSXmNbA-DyQYho62fHiwhEsIoCFVGSVzeLIJixNpZR/FMoC-e",
link4Name: "Power Reaper HT CM - 25/06/2024",
link5: "#",
link5Name: "N/A",
link6: "#",
link6Name: "N/A",
link7: "#",
link7Name: "N/A",
link8: "#",
link8Name: "N/A",
link9: "#",
link9Name: "N/A",
link10: "#",
link10Name: "N/A",
link11: "http://gw2skills.net/editor/?PSABo+p3lhy0YgMVWLW6XVxXA-DyIY14/M6SVluUVs/HSSQ8PTPCqA-e",
link11Name: "Augure Quickness céleste - 25/06/2024",
link12: "http://gw2skills.net/editor/?PSgAEZlRwuYKsEWJW+T9NTA-DyIY1o6/YKQCUhiKmRQNDlQEgK8kQSCi/Z6RQFA-e",
link12Name: "Hybride Reaper Céleste - 25/06/2024"
},
{
text: "Élémentaliste",
link1: "#",
link1Name: "N/A",
link2: "#",
link2Name: "N/A",
link3: "#",
link3Name: "N/A",
link4: "#",
link4Name: "N/A",
link5: "#",
link5Name: "N/A",
link6: "#",
link6Name: "N/A",
link7: "#",
link7Name: "N/A",
link8: "#",
link8Name: "N/A",
link9: "#",
link9Name: "N/A",
link10: "#",
link10Name: "N/A",
link11: "#",
link11Name: "N/A",
link12: "#",
link12Name: "N/A"
}];
// Sélectionnez le menu et les liens dans le document HTML
const menu = document.querySelector("#menu");
const link1 = document.querySelector("#link1");
const link2 = document.querySelector("#link2");
const link3 = document.querySelector("#link3");
const link4 = document.querySelector("#link4");
const link5 = document.querySelector("#link5");
const link6 = document.querySelector("#link6");
const link7 = document.querySelector("#link7");
const link8 = document.querySelector("#link8");
const link9 = document.querySelector("#link9");
const link10 = document.querySelector("#link10");
const link11 = document.querySelector("#link11");
const link12 = document.querySelector("#link12");
// Boucle sur les options de menu et ajoutez-les au menu
menuOptions.forEach(option =>{
const menuItem = document.createElement("option");
menuItem.text = option.text;
menuItem.value = option.text;
menu.add(menuItem);
});
// Ajoutez un gestionnaire d'événements "change" au menu pour mettre à jour les liens et leurs noms en fonction de la sélection de l'utilisateur
function changeFunction() {
const selectedOption = menuOptions[event.target.selectedIndex || 0];
link1.href = selectedOption.link1;
link1.text = selectedOption.link1Name;
link2.href = selectedOption.link2;
link2.text = selectedOption.link2Name;
link3.href = selectedOption.link3;
link3.text = selectedOption.link3Name;
link4.href = selectedOption.link4;
link4.text = selectedOption.link4Name;
link5.href = selectedOption.link5;
link5.text = selectedOption.link5Name;
link6.href = selectedOption.link6;
link6.text = selectedOption.link6Name;
link7.href = selectedOption.link7;
link7.text = selectedOption.link7Name;
link8.href = selectedOption.link8;
link8.text = selectedOption.link8Name;
link9.href = selectedOption.link9;
link9.text = selectedOption.link9Name;
link10.href = selectedOption.link10;
link10.text = selectedOption.link10Name;
link11.href = selectedOption.link11;
link11.text = selectedOption.link11Name;
link12.href = selectedOption.link12;
link12.text = selectedOption.link12Name;
}
menu.addEventListener("change", changeFunction);
</script>
</body>
</html>