Compare commits

..

38 commits

Author SHA1 Message Date
055eee34e0 modif texteexplicatif dons 2026-02-12 17:28:49 +01:00
9522700204 ajout d'un outil thunometre pour les dons lies aux inscriptions 2026-02-12 17:16:01 +01:00
7e3ddb83d0 Merge pull request 'retire le timestamp de la MAJ du guide du footer' (#44) from maj-guide-div into main
Reviewed-on: interhack/2026.camp.public.website#44
Reviewed-by: Nono <nono@noreply.interhacker.space>
Reviewed-by: kholah <kholah@alternatique.fr>
2026-02-12 13:19:07 +00:00
c65a063124 retire le timestamp de la MAJ du guide du footer 2026-02-12 13:18:53 +00:00
28c72626b7 Merge pull request 'Corrections d'erreurs sur la page principale' (#45) from feat/add-formulaire-inscription into main
Reviewed-on: interhack/2026.camp.public.website#45
Reviewed-by: kholah <kholah@alternatique.fr>
2026-02-12 13:18:40 +00:00
ffbc59d362 Corrections d'erreurs 2026-02-12 14:00:28 +01:00
e2619bbe91 Merge pull request 'Fix #30 : Mise en page des barres de progressions' (#31) from progression into main
Reviewed-on: interhack/2026.camp.public.website#31
Reviewed-by: VincentP <vincent-peugnet@riseup.net>
2026-02-12 12:37:23 +00:00
9847d7c527 Activer la barre de progression 2026-02-12 13:36:08 +01:00
744dd42c48 Ajout d'un grandient pour la barre de progression 2026-02-12 13:36:08 +01:00
9e7e781c36 Mise en page du HTML des barres de progressions 2026-02-12 13:36:05 +01:00
ce0020b3ff Ajout d'un CSS pour centrer les barres de progrès 2026-02-12 13:35:36 +01:00
1a40be3526 Merge pull request 'Ajout d'un lien vers le formulaire d'inscription' (#42) from feat/add-formulaire-inscription into main
Reviewed-on: interhack/2026.camp.public.website#42
Reviewed-by: kholah <kholah@alternatique.fr>
2026-02-12 12:30:55 +00:00
d8c5d1d576 Ajout d'un lien vers le formulaire d'inscription 2026-02-09 11:53:12 +01:00
a3c6e8893f Merge pull request 'Repasser la jauge attendu à 200 personnes' (#39) from 34-jauge-200 into main
Reviewed-on: interhack/2026.camp.public.website#39
2026-02-03 12:28:55 +00:00
a64f91606a Repasser la jauge attendu à 200 personnes 2026-02-03 12:28:45 +00:00
e9dcacf319 Merge pull request 'Ajout de la section des dons' (#40) from 36-boutons-dons into main
Reviewed-on: interhack/2026.camp.public.website#40
2026-02-03 12:28:22 +00:00
fc3a5eb9d1 Ajout d'une option pour les dons 2026-01-30 18:27:56 +01:00
fa058dadbd Ajout d'un curseur sur les boutons 2026-01-30 18:27:45 +01:00
40b2b2fcf7 Change la façon dont les feux d'artifices apparaissent 2026-01-30 18:18:46 +01:00
c47bd42d46 Ajout d'un effet pour le passage sur les boutons de don 2026-01-30 12:35:15 +01:00
f7c88f2a69 Ajout du CSS des dons 2026-01-30 12:35:09 +01:00
e2b073704d Ajout de la section des dons 2026-01-30 12:34:52 +01:00
Pierre de Lacroix
aa404a10ff
add contact page to container image 2026-01-29 16:37:47 +01:00
473a84cd3e Merge pull request 'Ajout de la page contact' (#28) from fougere/2026.camp.public.website:feat/contact-page into main
Reviewed-on: interhack/2026.camp.public.website#28
Reviewed-by: Nono <nono@noreply.interhacker.space>
2026-01-29 14:11:32 +00:00
b2bedeb068 Merge branch 'main' into feat/contact-page 2026-01-29 14:11:05 +00:00
4309e5ae21 Merge pull request 'Add background to titles for better contrast' (#29) from titles-contrast into main
Reviewed-on: interhack/2026.camp.public.website#29
Reviewed-by: Nono <nono@noreply.interhacker.space>
2026-01-27 22:29:33 +00:00
072905184d Merge pull request 'Ajout du logo de la French Data Network' (#21) from feat/add-logos into main
Reviewed-on: interhack/2026.camp.public.website#21
Reviewed-by: Fougère <folgere@tutamail.com>
2026-01-27 22:29:08 +00:00
faac34187b Merge branch 'main' into feat/add-logos 2026-01-27 19:03:17 +00:00
0143d7a661 Correction du lien du matrix 2026-01-27 19:50:51 +01:00
Pierre de Lacroix
8fc42a390b
add background to titles for better contrast 2026-01-25 13:59:58 +01:00
Pierre de Lacroix
bfa57e3fc8
add aria-hidden to stickers 2026-01-25 13:32:08 +01:00
Pierre de Lacroix
fc5ae9031c
fix invisible links (closes #26) 2026-01-25 13:02:56 +01:00
1f72a3a976 Ajout de la page contact 2026-01-24 15:15:53 +01:00
2ae53d4997 Merge pull request 'add progression system' (#25) from progression into main
Reviewed-on: interhack/2026.camp.public.website#25
2026-01-22 23:04:39 +00:00
Pierre de Lacroix
e18381fc17
plug progression system to camp-api 2026-01-23 00:03:47 +01:00
d3d1672b2f add progression system 2026-01-22 19:45:13 +01:00
6c26735680 Merge pull request '- Modification des tailles et espacements des titres' (#23) from fougere/2026.camp.public.website:fix/guide-style into main
Reviewed-on: interhack/2026.camp.public.website#23
Reviewed-by: Nono <nono@noreply.interhacker.space>
2026-01-22 11:21:32 +00:00
ef2193ceae Ajout du logo de la French Data Network 2026-01-13 12:43:08 +01:00
12 changed files with 422 additions and 33 deletions

View file

@ -1,6 +1,6 @@
FROM docker.io/nginx:1.29-alpine
COPY index.html poster.html guide.html /usr/share/nginx/html
COPY index.html poster.html guide.html contact.html /usr/share/nginx/html
COPY assets /usr/share/nginx/html/assets
COPY css /usr/share/nginx/html/css
COPY js /usr/share/nginx/html/js

Binary file not shown.

BIN
assets/logos/fdn.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

64
contact.html Normal file
View file

@ -0,0 +1,64 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="css/base.css">
<link rel="stylesheet" href="css/contact.css">
<link rel="stylesheet" href="css/drag.css">
<script src="js/drag.js" defer></script>
<link rel="icon" type="image/x-icon" href="assets/stickers/ecran.png">
<title>Camp Interhack 2026 Contact</title>
</head>
<body>
<nav>
<a href="index.html">maison</a>
<a href="guide.html">guide</a>
<a href="poster.html">poster</a>
<a href="contact.html" class="current">contact</a>
</nav>
<main>
<img class="draggable randomStart" src="assets/stickers/ecran.png" alt="">
<img class="draggable randomStart" src="assets/stickers/ferasouder.png" alt="">
<img class="draggable randomStart" src="assets/stickers/machineacoudre.png" alt="">
<img class="draggable randomStart" src="assets/stickers/tracteur.png" alt="">
<h1>
<span id="camp" class="draggable">camp</span>
<br>
<span id="interhack" class="draggable">interhack</span>
<span class="draggable">contact</span>
</h1>
<h2>
</h2>
<section id="contact">
<div>
<h3>Mail :</h3>
<a href="mailto:orga@camp.interhacker.space">orga@camp.interhacker.space</a>
</div>
<div>
<h3>Matrix :</h3>
<a href="https://matrix.to/#/#camp-space:matrix.interhacker.space" class="matrix-link">#interhack:matrix.interhacker.space</a>
</div>
</section>
</main>
<footer>
<div>
<h2>Association</h2>
<a href="assets/Camp-Interhack_Statuts.pdf">statuts</a>
</div>
<div>
<h2>Interhack</h2>
<a href="https://interhacker.space">accueil</a>
<a href="https://wiki.interhacker.space">wiki</a>
</div>
<div>
<h2>Site Web</h2>
<a href="https://git.interhacker.space/interhack/2026.camp.public.website">source</a>
</div>
</footer>
</body>
</html>

View file

@ -33,7 +33,11 @@ img {
}
a {
color: var(--accent-yellow);
color: inherit;
}
nav a, footer a {
color: black;
text-decoration: none;
}
@ -43,6 +47,10 @@ main h1, main h2, main h3 {
z-index: 20;
}
main h1 span, main h2 span, main h3 {
background-color: #000000b8;
}
main h1 {
position: relative;
text-align: center;
@ -179,14 +187,25 @@ figcaption {
font-family: segoesc;
float: left;
margin-left: 10%;
line-height: 0.8em;
}
#interhack {
text-shadow: -5px 5px 0px var(--accent-orange), -10px 10px 0px var(--accent-violet);
color: var(--accent-yellow);
margin-right: 10%;
line-height: 0.5em;
}
#progress {
display: block;
text-align: center;
}
#gauge-bar {
float: left;
}
#fundraising-bar {
float: left;
}
code {
@ -202,9 +221,15 @@ code {
margin-right: 0;
}
div#maj-guide {
text-align: center;
margin: 2em 1em;
}
@media (max-width: 500px) {
/* Hide stickers on mobile */
.randomStart {
display: none;
}
}
}

15
css/contact.css Normal file
View file

@ -0,0 +1,15 @@
#contact {
display: flex;
align-items: last baseline;
gap: 2em;
justify-content: space-between;
}
h1 span:nth-of-type(n+3) {
position: relative;
text-align: center;
font-size: clamp(1.5rem, 5vw, 5rem);
font-family: segoesc;
display: block;
margin: 1em auto 0.5em auto;
}

View file

@ -15,4 +15,95 @@
justify-content: center;
align-items: center;
height: 200px;
}
}
/* Section des dons */
#don > div {
display: flex;
flex-direction: row;
flex-wrap: wrap;
justify-content: space-evenly;
}
#don button {
flex-grow: 1;
width: 3em;
color: white;
font-size: 2em;
border: none;
font-family: MonTrappist;
margin: 0.2em;
padding: 0.3em;
background: var(--primary-bg-color);
background: linear-gradient(0deg,rgba(136, 0, 255, 1) 0%, rgba(255, 191, 62, 1) 50%, rgba(255, 78, 0, 1) 100%);
box-shadow: -5px 5px 0px var(--accent-yellow), -10px 10px 0px var(--accent-orange), -15px 15px 0px var(--accent-violet);
cursor: pointer;
}
#don > hr {
margin-top: 1em;
}
#don p {
text-align: justify;
text-align: center;
}
@keyframes bang {
from {
transform: translate3d(0,0,0);
opacity: 1;
}
}
.btn-pop i {
/* position: ; */
display:run-in;
left: 0px;
top: 0px;
width: 1px;
height: 1px;
background: red;
opacity: 0;
}
/* Barre de progression */
.progression {
animation: 3s loadbar;
width:auto;
background-color: white;
display: inline-block;
padding: 0.7em 0.5em 0.5em 0.5em;
text-wrap: nowrap;
}
@keyframes loadbar {
0% { width:0%; }
}
.bar {
width : 50%;
margin : auto;
border : 2px solid white;
display: inline-block;
}
.progression > span {
display: inline-block;
width: 100%;
font-family: MonTrappist;
font-size : 1.5em;
}
.lessthanhalf span {
padding-left: 100%;
color: white;
padding-left: calc(100% + 1em);
}
.morethanhalf {
text-align : end;
background: linear-gradient(90deg,rgba(136, 0, 255, 1) 0%, rgba(255, 78, 0, 1) 42%, rgba(255, 191, 62, 1) 100%);
}

View file

@ -23,23 +23,24 @@ BISOUS
<a href="index.html">maison</a>
<a href="guide.html" class="current">guide</a>
<a href="poster.html">poster</a>
<a href="contact.html">contact</a>
</nav>
<main>
<img class="draggable randomStart " src="assets/stickers/ecran.png" alt="">
<img class="draggable randomStart " src="assets/stickers/ferasouder.png" alt="">
<img class="draggable randomStart " src="assets/stickers/machineacoudre.png" alt="">
<img class="draggable randomStart " src="assets/stickers/tracteur.png" alt="">
<img class="draggable randomStart " aria-hidden="true" src="assets/stickers/ecran.png" alt="">
<img class="draggable randomStart " aria-hidden="true" src="assets/stickers/ferasouder.png" alt="">
<img class="draggable randomStart " aria-hidden="true" src="assets/stickers/machineacoudre.png" alt="">
<img class="draggable randomStart " aria-hidden="true" src="assets/stickers/tracteur.png" alt="">
<img class="draggable randomStart " src="assets/stickers/ecran.png" alt="">
<img class="draggable randomStart " src="assets/stickers/ferasouder.png" alt="">
<img class="draggable randomStart " src="assets/stickers/machineacoudre.png" alt="">
<img class="draggable randomStart " src="assets/stickers/tracteur.png" alt="">
<img class="draggable randomStart " aria-hidden="true" src="assets/stickers/ecran.png" alt="">
<img class="draggable randomStart " aria-hidden="true" src="assets/stickers/ferasouder.png" alt="">
<img class="draggable randomStart " aria-hidden="true" src="assets/stickers/machineacoudre.png" alt="">
<img class="draggable randomStart " aria-hidden="true" src="assets/stickers/tracteur.png" alt="">
<img class="draggable randomStart " src="assets/stickers/ecran.png" alt="">
<img class="draggable randomStart " src="assets/stickers/ferasouder.png" alt="">
<img class="draggable randomStart " src="assets/stickers/machineacoudre.png" alt="">
<img class="draggable randomStart " src="assets/stickers/tracteur.png" alt="">
<img class="draggable randomStart " aria-hidden="true" src="assets/stickers/ecran.png" alt="">
<img class="draggable randomStart " aria-hidden="true" src="assets/stickers/ferasouder.png" alt="">
<img class="draggable randomStart " aria-hidden="true" src="assets/stickers/machineacoudre.png" alt="">
<img class="draggable randomStart " aria-hidden="true" src="assets/stickers/tracteur.png" alt="">
<h1>
<span id="camp" class="draggable">camp</span>
@ -55,6 +56,10 @@ BISOUS
<!-- EDGEDOC: A la place de ce commentaire, le contenu du Edgedoc https://md.lqdn.fr/H0gKhjbKTfeM41L9bG9zUA -->
</section>
<div id="maj-guide">
Dernière mise à jour du guide: <!-- DATE: A la place de ce commentaire, la date et heure du jour -->
</div>
</main>
<footer>
<div>
@ -70,9 +75,6 @@ BISOUS
<h2>Site Web</h2>
<a href="https://git.interhacker.space/interhack/2026.camp.public.website">source</a>
</div>
<div>
Dernière mise à jour du guide: <!-- DATE: A la place de ce commentaire, la date et heure du jour -->
</div>
</footer>
</body>
</html>

View file

@ -8,6 +8,8 @@
<link rel="stylesheet" href="css/home.css">
<link rel="stylesheet" href="css/drag.css">
<script src="js/drag.js" defer></script>
<script src="js/progress.js" defer></script>
<script src="js/pop.js" defer></script>
<link rel="icon" type="image/x-icon" href="assets/stickers/ecran.png">
<title>Camp Interhack</title>
</head>
@ -17,18 +19,19 @@
<a href="index.html" class="current">maison</a>
<a href="guide.html">guide</a>
<a href="poster.html">poster</a>
<a href="contact.html">contact</a>
</nav>
<main>
<img class="draggable randomStart" src="assets/stickers/ecran.png" alt="">
<img class="draggable randomStart" src="assets/stickers/ferasouder.png" alt="">
<img class="draggable randomStart" src="assets/stickers/machineacoudre.png" alt="">
<img class="draggable randomStart" src="assets/stickers/tracteur.png" alt="">
<img class="draggable randomStart" aria-hidden="true" src="assets/stickers/ecran.png" alt="">
<img class="draggable randomStart" aria-hidden="true" src="assets/stickers/ferasouder.png" alt="">
<img class="draggable randomStart" aria-hidden="true" src="assets/stickers/machineacoudre.png" alt="">
<img class="draggable randomStart" aria-hidden="true" src="assets/stickers/tracteur.png" alt="">
<img class="draggable randomStart" src="assets/stickers/ecran.png" alt="">
<img class="draggable randomStart" src="assets/stickers/ferasouder.png" alt="">
<img class="draggable randomStart" src="assets/stickers/machineacoudre.png" alt="">
<img class="draggable randomStart" src="assets/stickers/tracteur.png" alt="">
<img class="draggable randomStart" aria-hidden="true" src="assets/stickers/ecran.png" alt="">
<img class="draggable randomStart" aria-hidden="true" src="assets/stickers/ferasouder.png" alt="">
<img class="draggable randomStart" aria-hidden="true" src="assets/stickers/machineacoudre.png" alt="">
<img class="draggable randomStart" aria-hidden="true" src="assets/stickers/tracteur.png" alt="">
<h1>
<span id="camp" class="draggable">camp</span>
@ -79,9 +82,73 @@
collective.<br>
Seule exigence, respecter toutes les marginalités, originalités, bizarreries et normaleries de
chacun·es.</p>
<p>
<h3>
<a class="btn-nice" href="https://grist.interhacker.space/o/camp/forms/jhWe1wCu16LGEu81RTn3Um/4">S'inscrire</a>
</h3>
</p>
</section>
<h3>
<span>Où en est-on ?</span>
</h3>
<section id="progress">
<p>Il y a</p>
<div class="places">
<span class="bar">
<span id="gauge-bar" style="width:0" class="progression lessthanhalf">
<span id="gauge-text">?/200</span>
</span>
</span>
</div>
<p>places déjà réservées.</p>
<br>
<p>Et nous avons reçu</p>
<div class="places">
<span class="bar">
<span id="fundraising-bar" style="width:0" class="progression lessthanhalf">
<span id="fundraising-text">? %</span>
</span>
</span>
</div>
<p>des dons dont nous avons besoin.</p>
</section>
<h3>
<span>Faire un don</span>
</h3>
<section id="don">
<p>Nous avons besoin de sous avant le débût du Camp pour financer l'achat de fournitures, payer la réservation du lieu et monter la logistique.</p>
<div>
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09a8-c97f-784c-ab19-841c0700837d?resource_id=019c09a8-c976-797d-b213-4ac052e5d786"><button>5€</button></a>
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09a9-76e2-7086-9b69-436a09ff801d?resource_id=019c09a9-76db-7325-b239-f0f80d056b74"><button>1€</button></a>
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09a9-f4d1-7cf5-a1b0-eff390954dd0?resource_id=019c09a9-f4cb-7335-9fa4-6b599f072969"><button>10€</button></a>
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09aa-85db-7edd-9508-f6b7f03e1594?resource_id=019c09aa-85d4-7a19-889b-6c09cd7e4ae5"><button>20€</button></a>
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09ab-25d1-724a-9156-a8af734ddcc6?resource_id=019c09ab-25c8-7e9c-a0b0-72655c28b87e"><button>40€</button></a>
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09ab-9f99-72fa-8151-0722830429a8?resource_id=019c09ab-9f93-78cb-9825-11af0c12f080"><button>50€</button></a>
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c0ff1-9272-7c10-b8b0-22c0fdc9f080?resource_id=019c0ff1-926d-7146-a0c4-5056a719e7ea"><button>75€</button></a>
<a class="btn-pop" href="https://pay.qonto.com/payment-links/019c09ac-a6b9-76e9-9988-fe53c940ff06?resource_id=019c09ac-a6b3-735a-a13b-11d1698ba31a"><button>100€</button></a>
</div>
<hr>
<div>
<p>Nous estimons avoir un budget de 10 000 ~ 15 000€ et être autour de 200 personnes, et aurons donc besoin d'au moins autant pour que le camp soit à l'équilibre.</p>
<a href="https://grist.interhacker.space/o/docs/pUsyFia9Papk/Untitled-document">Voir le détail des comptes</a>
</div>
<hr>
<div>
<p>Si tu ne sais pas quel prix libre donner, et/ou que tu veux de l'aide pour définir un prix libre juste et éclairé pour ta participation au camp, voici un thunomètre rapide qui peut répondre au besoin.</p>
<a href="assets/Thunometre-participanxes.pdf">Thunomètre</a>
</div>
</section>
<h3>
<span>Iels y participent</span>
</h3>
@ -95,11 +162,12 @@
</a>
<a href="https://lebib.org"><img class="logo" src="assets/logos/lebib.png" alt="Le Bib Net"></a>
</div>
<div class="participants">
<a href="https://hackstub.eu/"><img class="logo" src="assets/logos/hackstub.svg" alt="La Hackstub"></a>
<a href="https://fuz.re"><img class="logo" src="assets/logos/fuz.png" alt="Le Fuz"></a>
<a href="https://labolyon.fr/"><img class="logo" src="assets/logos/lol_logo_txt.png" alt="Le Laboratoire Ouvert Lyonnais"></a>
<a href="https://fdn.fr/"><img class="logo" src="assets/logos/fdn.png" alt="La French Data Network"></a>
</div>
</main>
<footer>
@ -118,5 +186,5 @@
</div>
</footer>
</body>
</html>

31
js/pop.js Normal file
View file

@ -0,0 +1,31 @@
document.querySelectorAll('button').forEach(function(button) {
button.addEventListener('mouseenter', function() {
function random(max) {
return Math.random() * (max - 0) + 0;
}
var c = document.createDocumentFragment();
for (var i = 0; i < 100; i++) {
var styles = 'position: absolute;' +
'left: ' + (random(100)) + '30%;' + // Limit the position to within the button
'top: ' + (random(60)) + '30%;' + // Limit the position to within the button
'width: 3px; height: 6px; ' + // Increase size
'transform: translate(-50%, -50%) rotate(' + random(360) + 'deg);' +
'background: hsla(' + random(360) + ', 100%, 50%, 1);' +
'animation: bang 2000ms ease-out forwards;' +
'opacity: 0;' +
'z-index: 10;'; // Set a high z-index
var e = document.createElement("i");
e.style.cssText = styles;
c.appendChild(e);
}
button.appendChild(c);
setTimeout(() => {
// Create an array of the <i> elements to remove
let childrenToRemove = Array.from(button.querySelectorAll('i'));
// Remove each <i> element
childrenToRemove.forEach(child => button.removeChild(child));
}, 3000);
});
});

91
js/progress.js Normal file
View file

@ -0,0 +1,91 @@
const gauge_url = "https://api.camp.interhacker.space/api/gauge"
const fundraising_url = "https://api.camp.interhacker.space/api/fundraising"
const gaugeMax = 200;
const fundraisingTotalMax = 20000;
async function getGauge() {
// // REMOVE WHEN SIGNUP FORM IS OPEN
// return 0;
try {
const response = await fetch(gauge_url);
if (!response.ok) {
throw new Error(`Response status: ${response.status}`);
}
const result = await response.json();
return result.gauge
} catch (error) {
console.error(error.message);
return null;
}
}
async function getFundraisingTotal() {
try {
const response = await fetch(fundraising_url);
if (!response.ok) {
throw new Error(`Response status: ${response.status}`);
}
const result = await response.json();
return result.total
} catch (error) {
console.error(error.message);
return null;
}
}
function percentRatio(ratio) {
return Math.floor(ratio * 100);
}
function setAboveHalf(ratio, element) {
if (ratio > 0.5) {
element.classList.remove("lessthanhalf");
element.classList.add("morethanhalf");
}
}
async function setGauge() {
const gauge = await getGauge();
if (gauge !== null) {
const gaugeBar = document.getElementById("gauge-bar");
const gaugeText = document.getElementById("gauge-text");
const gaugeRatio = gauge / gaugeMax;
gaugeBar.style.setProperty("width", percentRatio(gaugeRatio) + "%");
gaugeText.innerText = gauge + " / " + gaugeMax;
setAboveHalf(gaugeRatio, gaugeBar);
}
}
async function setFundraisingTotal() {
const fundraising_total = await getFundraisingTotal();
if (fundraising_total !== null) {
const fundraisingBar = document.getElementById("fundraising-bar");
const fundraisingText = document.getElementById("fundraising-text");
const fundraisingRatio = fundraising_total / fundraisingTotalMax;
fundraisingBar.style.setProperty("width", percentRatio(fundraisingRatio) + "%");
fundraisingText.innerText = percentRatio(fundraisingRatio) + " %";
setAboveHalf(fundraisingRatio, fundraisingBar);
}
}
async function setProgress() {
setGauge();
setFundraisingTotal();
}
document.addEventListener("DOMContentLoaded", setProgress);

View file

@ -1,4 +1,5 @@
<html lang="en">
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
@ -14,8 +15,9 @@
<body>
<nav>
<a href="index.html">maison</a>
<a href="guide.html" >guide</a>
<a href="guide.html">guide</a>
<a href="poster.html" class="current">poster</a>
<a href="contact.html">contact</a>
</nav>