Compare commits
6 commits
2869544807
...
9847d7c527
| Author | SHA1 | Date | |
|---|---|---|---|
| 9847d7c527 | |||
| 744dd42c48 | |||
| 9e7e781c36 | |||
| ce0020b3ff | |||
| 1a40be3526 | |||
| d8c5d1d576 |
4 changed files with 45 additions and 9 deletions
13
css/base.css
13
css/base.css
|
|
@ -195,6 +195,19 @@ figcaption {
|
||||||
margin-right: 10%;
|
margin-right: 10%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#progress {
|
||||||
|
display: block;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#gauge-bar {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
|
#fundraising-bar {
|
||||||
|
float: left;
|
||||||
|
}
|
||||||
|
|
||||||
code {
|
code {
|
||||||
background: #ffffff1f;
|
background: #ffffff1f;
|
||||||
padding: 0.2em 0.4em;
|
padding: 0.2em 0.4em;
|
||||||
|
|
|
||||||
|
|
@ -104,6 +104,6 @@ font-size : 1.5em;
|
||||||
}
|
}
|
||||||
|
|
||||||
.morethanhalf {
|
.morethanhalf {
|
||||||
text-align : end;
|
text-align : end;
|
||||||
color:black;
|
background: linear-gradient(90deg,rgba(136, 0, 255, 1) 0%, rgba(255, 78, 0, 1) 42%, rgba(255, 191, 62, 1) 100%);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
29
index.html
29
index.html
|
|
@ -82,20 +82,43 @@
|
||||||
collective.<br>
|
collective.<br>
|
||||||
Seule exigence, respecter toutes les marginalités, originalités, bizarreries et normaleries de
|
Seule exigence, respecter toutes les marginalités, originalités, bizarreries et normaleries de
|
||||||
chacun·es.</p>
|
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>
|
</section>
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
<span>Où en est-on ?</span>
|
<span>Où en est-on ?</span>
|
||||||
</h3>
|
</h3>
|
||||||
<section id="progress">
|
<section id="progress">
|
||||||
<p>Il y a</p>
|
<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>
|
|
||||||
|
<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. Ouverture prochaine des inscriptions !</p>
|
<p>places déjà réservées. Ouverture prochaine des inscriptions !</p>
|
||||||
<br>
|
<br>
|
||||||
<p>Et nous avons reçu</p>
|
<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>
|
<div class="places">
|
||||||
<p>des dons dont nous avons besoin</p>
|
<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 (voir le détail des comptes)</p>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<h3>
|
<h3>
|
||||||
<span>Faire un don</span>
|
<span>Faire un don</span>
|
||||||
</h3>
|
</h3>
|
||||||
|
|
|
||||||
|
|
@ -4,8 +4,8 @@ const gaugeMax = 200;
|
||||||
const fundraisingTotalMax = 20000;
|
const fundraisingTotalMax = 20000;
|
||||||
|
|
||||||
async function getGauge() {
|
async function getGauge() {
|
||||||
// REMOVE WHEN SIGNUP FORM IS OPEN
|
// // REMOVE WHEN SIGNUP FORM IS OPEN
|
||||||
return 0;
|
// return 0;
|
||||||
|
|
||||||
try {
|
try {
|
||||||
const response = await fetch(gauge_url);
|
const response = await fetch(gauge_url);
|
||||||
|
|
@ -61,7 +61,7 @@ async function setGauge() {
|
||||||
const gaugeRatio = gauge / gaugeMax;
|
const gaugeRatio = gauge / gaugeMax;
|
||||||
|
|
||||||
gaugeBar.style.setProperty("width", percentRatio(gaugeRatio) + "%");
|
gaugeBar.style.setProperty("width", percentRatio(gaugeRatio) + "%");
|
||||||
gaugeText.innerText = gauge + "/" + gaugeMax;
|
gaugeText.innerText = gauge + " / " + gaugeMax;
|
||||||
|
|
||||||
setAboveHalf(gaugeRatio, gaugeBar);
|
setAboveHalf(gaugeRatio, gaugeBar);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue