-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
569 lines (533 loc) · 32.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
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
<!DOCTYPE html>
<html lang="fr">
<head>
<!-- Métadonnées du site -->
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Partenaire de vos déplacements dans Clermont-Ferrand depuis 1989.">
<meta name="keywords" content="Transport, Clermont-Ferrand, Mobilité">
<meta name="author" content="Transport Clermont Métropole">
<title>Transport Clermont Métropole</title>
<!-- Favicon -->
<link rel="icon" type="image/png" href="https://tcm-mobilite.vercel.app/img/TCM.png">
<!-- Intégrations pour réseaux sociaux -->
<meta property="og:title" content="Transport Clermont Métropole">
<meta property="og:description" content="Partenaire de vos déplacements dans Clermont-Ferrand depuis 1989.">
<meta property="og:image" content="https://tcm-mobilite.vercel.app/img/TCM Clair.png">
<meta property="og:url" content="https://tcm-mobilite.vercel.app/">
<meta name="twitter:title" content="Transport Clermont Métropole">
<meta name="twitter:description" content="Partenaire de vos déplacements dans Clermont-Ferrand depuis 1989.">
<meta name="twitter:image" content="https://tcm-mobilite.vercel.app/img/TCM Clair.png">
<meta name="twitter:card" content="summary_large_image">
<!-- Couleur de fond pour l'intégration -->
<meta name="theme-color" content="#204BFE">
<!-- Meta Tags Generated with https://metatags.io -->
<link href="/dist/output.css" rel="stylesheet">
<script src="https://kit.fontawesome.com/d8bf012a3e.js" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script>document.addEventListener('contextmenu', function (e) { e.preventDefault(); e.stopPropagation(); }); document.addEventListener('copy', function (e) { e.preventDefault(); e.stopPropagation(); }); document.addEventListener('cut', function (e) { e.preventDefault(); e.stopPropagation(); });</script>
<style>
.jw-album-image img,
.jw-element-image img {
pointer-events: none;
-webkit-touch-callout: none;
}
.pswp__share-tooltip .pswp__share--download {
display: none;
}
</style>
<script>
const isChristmas = () => {
const today = new Date();
const startChristmas = new Date(today.getFullYear(), 11, 1); // 1er Décembre
const endChristmas = new Date(today.getFullYear(), 11, 31); // 25 Décembre inclus
return today >= startChristmas && today < endChristmas;
};
document.addEventListener('DOMContentLoaded', () => {
if (isChristmas()) {
const logoContainer = document.getElementById("logo-container");
// Remplacez les logos par l'image de Noël
logoContainer.innerHTML = `
<img src="/img/TCM-Noel.png" width="200" height="200" alt="Logo TCM Noël" class="block">
`;
}
if (isChristmas()) {
// Fonction pour supprimer toutes les classes commençant par "dark:"
const removeDarkClasses = () => {
// Sélectionner tous les éléments avec des classes "dark:"
const elementsWithDark = document.querySelectorAll('[class*="dark:"]');
// Parcourir chaque élément
elementsWithDark.forEach(el => {
// Parcourir ses classes
const newClasses = Array.from(el.classList).filter(className => !className.startsWith('dark:'));
// Remplacer l'ensemble des classes
el.className = newClasses.join(' ');
});
};
// Exécuter la suppression des classes `dark:`
removeDarkClasses();
}
if (isChristmas()) {
document.documentElement.classList.remove('dark');
document.documentElement.setAttribute('data-theme', 'cupcake');
}
});
if (isChristmas()) {
document.addEventListener('DOMContentLoaded', () => {
const snow = document.createElement('div');
snow.id = 'snow';
document.body.appendChild(snow);
const snowStyle = document.createElement('style');
snowStyle.innerHTML = `
#snow {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
pointer-events: none;
background: transparent;
overflow: hidden;
z-index: 9999;
}
@keyframes snowfall {
0% { transform: translateY(-10px); opacity: 1; }
100% { transform: translateY(100vh); opacity: 0; }
}
.flake {
position: absolute;
top: -10px;
width: 10px;
height: 10px;
background: white;
border-radius: 50%;
opacity: 0.8;
animation: snowfall 5s linear infinite;
}
`;
document.head.appendChild(snowStyle);
for (let i = 0; i < 100; i++) {
const flake = document.createElement('div');
flake.classList.add('flake');
flake.style.left = `${Math.random() * 100}vw`;
flake.style.animationDelay = `${Math.random() * 5}s`;
flake.style.animationDuration = `${2 + Math.random() * 3}s`;
flake.style.opacity = Math.random();
document.getElementById('snow').appendChild(flake);
}
});
}
</script>
</head>
<style>
.orange-border {
display: inline-block;
}
.inner-content {
padding: 5px;
/* Ajustez la marge interne pour le contenu de chaque indice de ligne */
}
.orange-border p {
margin: 0;
/* Supprimez les marges internes pour le paragraphe */
}
.tcm-details {
margin-bottom: 20px;
}
.christmas-theme .dark.block {
display: none;
}
.christmas-theme .dark.hidden {
display: block;
}
</style>
<body>
<div id="menu"></div>
<br>
<div class="md:container md:mx-auto">
<div id="TCM" class="relative my-4"></div>
</div>
<div class="md:container md:mx-auto">
<div class="flex w-full flex-col lg:flex-row">
<div class="card bg-base-300 rounded-box grid h-32 flex-grow place-items-center">
<div class="flex flex-col justify-center items-center h-full card bg-base-300 rounded-box p-4">
<h1 class="text-primary text-5xl font-bold text-center">
Voyagez facilement à <span class="text-accent text-5xl font-bold"> Clermont-Ferrand</span> !
</h1>
</div>
</div>
<div class="divider lg:divider-horizontal"></div>
<div class="card rounded-box grid h-32 flex-grow place-items-center bg-primary">
<h2 class="text-2xl font-bold mb-4 text-primary-content">Info trafic</h2>
<div id="lignes" class="grid grid-flow-row auto-rows-max gap-4"></div>
</div>
</div>
<br>
<div class="bg-secondary-content dark:bg-base-200 rounded-box py-24 sm:py-32">
<div class="mx-auto max-w-7xl px-6 lg:px-8">
<div class="mx-auto max-w-2xl lg:mx-0">
<h2 class="text-3xl font-bold tracking-tight text-secondary sm:text-4xl">Notre Actualité</h2>
<p class="mt-2 text-lg leading-8 text-secondary">En direct de notre rédaction, toute
l'actualité TCM.</p>
</div>
<div class="mx-auto mt-10 grid max-w-2xl grid-cols-1 gap-x-8 gap-y-16 border-t border-base-200 pt-10 sm:mt-16 sm:pt-16 lg:mx-0 lg:max-w-none lg:grid-cols-6"
id="content"></div>
</div>
</div>
</div><br>
<footer class="footer footer-center p-10 bg-primary text-primary-content relative">
<aside>
<div id="logo-container">
<img src="/img/TCM-Sombre.png" width="200" height="200" alt="Logo TCM" class="hidden dark:block">
<img src="/img/TCM-Clair.png" width="200" height="200" alt="Logo TCM" class="block dark:hidden">
</div>
<p class="font-bold">
Partenaire de vos déplacements depuis 1989.
</p>
<p>Copyright ©
<script>document.write(new Date().getFullYear())</script> - Tous droits réservés
</p>
</aside>
</footer>
</body>
<script>
//const url = "src/test.json";
const url = "https://raw.githubusercontent.com/Cyber-Thibaut/infotrafic/main/info.json";
function afficherInfoTrafic() {
$.getJSON(url, function (data) {
// Créez un conteneur pour les détails de la ligne TCM
const tcmDetailsContainer = $("<div>").addClass("tcm-details");
const otherLinesContainer = $("<div>").addClass("other-lines");
// Créez un ensemble pour suivre les lignes auxquelles vous avez déjà ajouté un logo
const addedLineLogos = new Set();
let nbLogo = 0;
$.each(data.lignes, function (i, ligne) {
const dateActuelle = new Date();
let logoHtml = "";
$.each(ligne.infos_trafic, function (j, info) {
const dateDebut = new Date(Date.parse(info.annonce));
const dateFin = new Date(Date.parse(info.fin));
const specialLines = ["805", "809", "810", "816", "713", "817"];
const imageSuffix = specialLines.includes(ligne.ligne) ? '-jo' : '';
dateFin.setDate(dateFin.getDate() + 1);
if (dateActuelle >= dateDebut && dateActuelle <= dateFin) {
if (!addedLineLogos.has(ligne.ligne)) {
if (ligne.ligne === "TCM") {
let alertClass = '';
let alertIcon = '';
let alertBgColor = '';
let btnColorClass = '';
if (info.type.includes("travaux")) {
alertClass = 'alert-warning';
alertIcon = `
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 shrink-0 stroke-current"
fill="none"
viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
</svg>`;
alertBgColor = 'bg-yellow-50 border-yellow-200';
btnColorClass = 'btn-warning';
} else if (info.type.includes("information")) {
alertClass = 'alert-info';
alertIcon = `
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
class="h-6 w-6 shrink-0 stroke-current">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>`;
alertBgColor = 'bg-blue-50 border-blue-200';
btnColorClass = 'btn-info';
} else if (info.type.includes("fermeture")) {
alertClass = 'alert-error';
alertIcon = `
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 shrink-0 stroke-current"
fill="none"
viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>`;
alertBgColor = 'bg-red-50 border-red-200';
btnColorClass = 'btn-error';
} else if (info.type.includes("attention") || info.type.includes("perturbation")) {
alertClass = 'alert-warning';
alertIcon = `
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6 shrink-0 stroke-current"
fill="none"
viewBox="0 0 24 24">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z" />
</svg>`;
alertBgColor = 'bg-orange-50 border-orange-200';
btnColorClass = 'btn-warning';
} else {
alertClass = '';
alertIcon = `
<svg
xmlns="http://www.w3.org/2000/svg"
fill="none"
viewBox="0 0 24 24"
class="stroke-info h-6 w-6 shrink-0">
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>`;
alertBgColor = 'bg-blue-50 border-blue-200';
btnColorClass = 'btn-info';
}
logoHtml += `
<div class="alert ${alertClass} flex justify-between items-center p-4 rounded-lg shadow-md ${alertBgColor}">
<div class="flex items-center">
${alertIcon}
<span class="text-lg font-semibold text-gray-700 truncate"> ${info.titre}</span>
</div>
<a href="src/details.html#TCM" class="btn ${btnColorClass} text-white ml-4">
Lire la suite
</a>
</div>`;
addedLineLogos.add(ligne.ligne);
}
else {
logoHtml += `<div class="orange-border"><a href="../src/details.html#${ligne.ligne}"><div class="inner-content"><img id='logo' src='/img/${ligne.ligne}${imageSuffix}.png' width="50" height="50" alt='Logo de la ligne' class="bg-gray-200 p-2 border border-orange-500 rounded-md"></a><img src='/img/assets/warning.png' style='position: relative; width: 20px; height: 20px; top: -10px; left: 35px;'></div>`;
logoHtml += `</div>`;
addedLineLogos.add(ligne.ligne);
}
}
}
});
// Si un incident est trouvé pour cette ligne, ajoutez le logo à la liste correspondante
if (logoHtml !== "") {
if (ligne.ligne === "TCM") {
tcmDetailsContainer.html(logoHtml);
} else {
otherLinesContainer.append(logoHtml);
nbLogo += 1;
// Ajoutez un saut de ligne après chaque groupe de 3 logos
if (nbLogo === 4) {
otherLinesContainer.append("<br>");
nbLogo = 0; // Remettre à zéro le compteur après 3 logos
}
}
}
});
// Vérifiez si otherLinesContainer est vide et ajoutez le logo si c'est le cas
if (otherLinesContainer.children().length === 0) {
let logoHtml = "";
logoHtml += `<div class="green-border"><div class="inner-content"><img id='logo' src='img/TCM.png' width="50" height="50" alt='Logo de la ligne' class="bg-gray-200 p-2 border border-green-500 rounded-md"></a><img src='/img/assets/valid.png' style='position: relative; width: 20px; height: 20px; top: -10px; left: 35px;'></div>`;
logoHtml += `</div>`;
otherLinesContainer.append(logoHtml);
}
// Ajoutez les conteneurs à la page
$("#lignes").append(otherLinesContainer);
$("#TCM").append(tcmDetailsContainer);
});
}
afficherInfoTrafic();
</script>
<script>
$(function () {
var url = "https://seal.transport-manager.net/tibo_lyon/wp-json/wp/v2/posts?categories=8&per_page=9";
$.get(url, function (data) {
var content = "";
if (data.length === 0) {
$("#content").html("<p>Aucun résultat.</p>");
} else {
// Use a Promise.all to handle asynchronous image fetching
var fetchPromises = data.map(function (article) {
// Construct the image URL using the featured_media ID
const apiUrl = "https://seal.transport-manager.net/tibo_lyon/wp-json/wp/v2/media/" + article.featured_media;
return fetch(apiUrl)
.then(response => {
if (!response.ok) {
throw new Error('Erreur lors de la récupération des données de l\'article');
}
return response.json();
})
.then(mediaData => {
// Access the guide.rendered from the fetched media data
const featuredMediaUrl = mediaData.guid.rendered;
// Construct the HTML content for the article using the card structure
return `
<div class="card w-96 bg-base-100 shadow-xl">
<figure><img src="${featuredMediaUrl}" alt="${article.title.rendered}" class="h-full w-full object-cover" /></figure>
<div class="card-body">
<h2 class="card-title text-lg font-bold">${article.title.rendered}</h2>
<p class="text-sm text-gray-700">${article.excerpt.rendered}</p>
<div class="card-actions justify-end">
<a href="${article.link}" class="btn btn-primary">Lire la suite</a>
</div>
</div>
</div>
<br>
`;
})
.catch(error => {
console.error('Une erreur s\'est produite :', error);
return ''; // Return an empty string in case of an error
});
});
// After all fetch promises have been resolved, update the HTML content
Promise.all(fetchPromises).then((articlesContent) => {
content = articlesContent.join(''); // Join all article contents into a single string
$("#content").html(content);
});
}
}).fail(function () {
$("#content").html("<p>Aye Caramba !</p>");
});
});
document.addEventListener('DOMContentLoaded', () => {
const menuContainer = document.getElementById("menu");
if (isChristmas()) {
// Insérer le menu de Noël
menuContainer.innerHTML = `
<div class="navbar bg-base-300 relative shadow-lg border-b-4 border-primary">
<div class="navbar-start">
<div class="dropdown">
<label tabindex="0" class="btn btn-ghost lg:hidden">
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6 text-primary-focus" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 6h16M4 12h8m-8 6h16" />
</svg>
</label>
<ul tabindex="0"
class="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52">
<li><a href="/src/reseau.html" class="hover:text-accent"><i class="fa-solid fa-gifts"></i> Notre
Réseau</a></li>
<li><a href="/src/trafic.html" class="hover:text-accent"><i class="fa-solid fa-sleigh"></i> Info
Trafic</a></li>
<li><a href="/src/tarifs.html" class="hover:text-accent"><i class="fa-solid fa-gift"></i> Tarif</a>
</li>
<li><a href="/src/agences.html" class="hover:text-accent"><i class="fa-solid fa-holly-berry"></i>
Nos Agences</a></li>
<li><a href="/src/calendar.html" class="hover:text-primary-focus animate-pulse"><i
class="fa-solid fa-calendar-check"></i> Calendrier de l'Avent</a></li>
</ul>
</div>
<a class="btn btn-ghost normal-case text-xl" href="/index.html">
<img src="/img/TCM-Noel.png" width="75" height="75" alt="Logo TCM"
class="drop-shadow-xl animate-bounce">
</a>
</div>
<div class="navbar-center hidden lg:flex">
<ul class="menu menu-horizontal px-1">
<li><a href="/src/reseau.html" class="hover:text-accent"><i class="fa-solid fa-gifts"></i> Notre
Réseau</a></li>
<li><a href="/src/trafic.html" class="hover:text-accent"><i class="fa-solid fa-sleigh"></i> Info
Trafic</a></li>
<li><a href="/src/tarifs.html" class="hover:text-accent"><i class="fa-solid fa-gift"></i> Tarif</a></li>
<li><a href="/src/agences.html" class="hover:text-accent"><i class="fa-solid fa-holly-berry"></i> Nos
Agences</a></li>
<li><a href="/src/calendar.html" class="hover:text-primary-focus animate-pulse"><i
class="fa-solid fa-calendar-check"></i> Calendrier de l'Avent</a></li>
</ul>
</div>
<div class="navbar-end">
<button class="btn btn-primary btn-sm rounded-full shadow-lg animate-bounce">🎄 Joyeux Noël !</button>
</div>
</div>
`;
} else {
// Insérer le menu normal
menuContainer.innerHTML = `
<div class="navbar bg-base-300 relative">
<div class="navbar-start">
<div class="dropdown">
<label tabindex="0" class="btn btn-ghost lg:hidden">
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none" viewBox="0 0 24 24"
stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h8m-8 6h16" />
</svg>
</label>
<ul tabindex="0" class="menu menu-sm dropdown-content mt-3 z-[1] p-2 shadow bg-base-100 rounded-box w-52">
<li><a href="/src/reseau.html"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
</svg>Notre Réseau</a></li>
<li><a href="/src/trafic.html"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
Info Trafic
</a></li>
<li><a href="/src/tarifs.html"><svg class="w-[19px] h-[19px] text-gray-800 dark:text-white"
aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 14">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
stroke-width="1.1"
d="M16.5 7A2.5 2.5 0 0 1 19 4.5V2a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v2.5a2.5 2.5 0 1 1 0 5V12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V9.5A2.5 2.5 0 0 1 16.5 7Z" />
</svg> Tarif</a></li>
<li><a href="/src/agences.html"><svg class="w-[19px] h-[19px] text-gray-800 dark:text-white"
aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="21" height="20" fill="none"
viewBox="0 0 21 20">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round"
stroke-width="1.1"
d="M3.308 9a2.257 2.257 0 0 0 2.25-2.264 2.25 2.25 0 0 0 4.5 0 2.25 2.25 0 0 0 4.5 0 2.25 2.25 0 1 0 4.5 0C19.058 5.471 16.956 1 16.956 1H3.045S1.058 5.654 1.058 6.736A2.373 2.373 0 0 0 3.308 9Zm0 0a2.243 2.243 0 0 0 1.866-1h.767a2.242 2.242 0 0 0 3.733 0h.767a2.242 2.242 0 0 0 3.733 0h.767a2.247 2.247 0 0 0 1.867 1A2.22 2.22 0 0 0 18 8.649V19H9v-7H5v7H2V8.524c.37.301.83.469 1.308.476ZM12 12h3v3h-3v-3Z" />
</svg> Nos Agences</a></li>
</ul>
</div>
<a class="btn btn-ghost normal-case text-xl hidden dark:block" href="/index.html"><img src="/img/TCM-Clair.png"
width="75" height="75" alt="Logo TCM"></a>
<a class="btn btn-ghost normal-case text-xl block dark:hidden" href="/index.html"><img src="/img/TCM-Sombre.png"
width="75" height="75" alt="Logo TCM"></a>
</div>
<div class="navbar-center hidden lg:flex">
<ul class="menu menu-horizontal px-1">
<li><a href="/src/reseau.html"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6" />
</svg>Notre Réseau</a></li>
<li><a href="/src/trafic.html"><svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" fill="none"
viewBox="0 0 24 24" stroke="currentColor">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
</svg>
Info Trafic
</a></li>
<li><a href="/src/tarifs.html"><svg class="w-[19px] h-[19px] text-gray-800 dark:text-white"
aria-hidden="true" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 20 14">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.1"
d="M16.5 7A2.5 2.5 0 0 1 19 4.5V2a1 1 0 0 0-1-1H2a1 1 0 0 0-1 1v2.5a2.5 2.5 0 1 1 0 5V12a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1V9.5A2.5 2.5 0 0 1 16.5 7Z" />
</svg> Tarif</a></li>
<li><a href="/src/agences.html"><svg class="w-[19px] h-[19px] text-gray-800 dark:text-white"
aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="21" height="20" fill="none"
viewBox="0 0 21 20">
<path stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.1"
d="M3.308 9a2.257 2.257 0 0 0 2.25-2.264 2.25 2.25 0 0 0 4.5 0 2.25 2.25 0 0 0 4.5 0 2.25 2.25 0 1 0 4.5 0C19.058 5.471 16.956 1 16.956 1H3.045S1.058 5.654 1.058 6.736A2.373 2.373 0 0 0 3.308 9Zm0 0a2.243 2.243 0 0 0 1.866-1h.767a2.242 2.242 0 0 0 3.733 0h.767a2.242 2.242 0 0 0 3.733 0h.767a2.247 2.247 0 0 0 1.867 1A2.22 2.22 0 0 0 18 8.649V19H9v-7H5v7H2V8.524c.37.301.83.469 1.308.476ZM12 12h3v3h-3v-3Z" />
</svg> Nos Agences</a></li>
</ul>
</div>
<div class="navbar-end">
</div>
</div>
`;
}
});
</script>
</html>