Accueil : coupe repliée et expliquée simplement, bilan déplié, retour en haut, section À propos, sélecteur saisonnier masqué
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cette révision appartient à :
1 Parent
c3abee3a46
révision
394f0d043b
2 fichiers modifiés
+154
-22
Aucun fichier ne correspond à votre recherche
@@ -291,7 +291,8 @@ a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(-
|
||||
.forum-box.mobile{display:none}
|
||||
@media (max-width:1000px){.forum-box{left:auto;right:28px;bottom:68px;width:320px}.legende{left:28px;right:auto}}
|
||||
@media (max-width:719px){.carte .forum-box{display:none}.forum-box.mobile{display:block;position:static;width:auto;flex:0 0 100%;margin:6px 0 4px}}
|
||||
.coupe{padding-bottom:8px}
|
||||
.panneaux-coupe{padding-bottom:0}
|
||||
.coupe-etat{font-weight:600;color:var(--roche)!important}.coupe-etat:empty{display:none}
|
||||
#coupe-svg svg{width:100%;height:auto;display:block;background:#faf9f5;border:1px solid var(--roche)}
|
||||
#coupe-svg text{font-family:var(--texte);font-size:11px;fill:var(--gris)}
|
||||
@media (max-width:719px){#coupe-svg text{font-size:10.5px}}
|
||||
@@ -379,6 +380,22 @@ a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(-
|
||||
.sanscookie span{font-size:12.5px;color:var(--gris)}
|
||||
.sanscookie button{position:absolute;top:2px;right:4px;border:0;background:none;font-size:20px;line-height:1;color:var(--gris);cursor:pointer;padding:4px 6px}
|
||||
@media (prefers-reduced-motion:reduce){.sanscookie{transition:none}}
|
||||
/* ---------- à propos (bas de page) ---------- */
|
||||
.apropos{max-width:1080px;margin:0 auto;padding:8px 28px 44px;display:grid;grid-template-columns:1fr 1fr;gap:14px 34px}
|
||||
.apropos h2{font-family:var(--titre);font-weight:600;font-size:21px;margin:0 0 6px;color:var(--sapin)}
|
||||
.apropos p{margin:0 0 8px;font-size:14.5px;color:var(--gris)}
|
||||
.apropos a{color:var(--sapin);font-weight:600;text-underline-offset:3px}
|
||||
@media (max-width:719px){.apropos{grid-template-columns:1fr;padding:6px 16px 32px}}
|
||||
[data-aff=acces] .apropos p{font-size:17px;color:var(--roche)}
|
||||
[data-aff=acces] .apropos a{text-decoration:underline}
|
||||
/* ---------- revenir en haut ---------- */
|
||||
.haut{position:fixed;right:16px;bottom:var(--haut-bas,16px);z-index:20;width:44px;height:44px;display:grid;place-items:center;padding:0;font:inherit;color:var(--sapin);background:rgba(250,249,245,.94);border:1px solid var(--roche);border-radius:0;cursor:pointer;opacity:1;transition:opacity .25s ease}
|
||||
.haut svg{width:20px;height:20px}
|
||||
.haut:hover{background:#fff}
|
||||
.haut[hidden]{display:none}
|
||||
.haut.cache{opacity:0;visibility:hidden}
|
||||
[data-aff=acces] .haut{width:52px;height:52px;border-width:2px;background:#fff}
|
||||
[data-aff=acces] .haut svg{width:26px;height:26px}
|
||||
/* ---------- paramètres (roue du pied de page) ---------- */
|
||||
.pied{position:relative;padding-top:66px}
|
||||
.prm-ouvrir{position:absolute;top:18px;right:max(28px,calc((100% - 1080px) / 2));display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;line-height:1;color:#fff;background:none;border:1px solid #5d6166;border-radius:0;padding:7px 11px 7px 8px;cursor:pointer}
|
||||
@@ -505,7 +522,8 @@ html[data-aff=acces]{--gris:#3a3f3c;--pierre:#b9b4a6}
|
||||
<div class="outils" id="outils">
|
||||
<div class="rech"><input type="search" id="rech" placeholder="Une station, un village…" autocomplete="off" aria-label="Chercher une station ou un village" data-i18n-a="placeholder:rech.ph;aria-label:rech.aria"><ul id="rech-res" hidden></ul></div>
|
||||
|
||||
<label class="record"><span data-i18n="record.label">Mise en avant</span> <select id="record"><option value="auto" data-i18n="record.auto">Selon la saison</option><option value="froid" data-i18n="record.froid">Plus froid</option><option value="chaud" data-i18n="record.chaud">Plus chaud</option><option value="vent" data-i18n="record.vent">Plus de vent</option><option value="pluie" data-i18n="record.pluie">Plus de pluie</option></select></label>
|
||||
<!-- Réglage saisonnier masqué : il se réglera plus tard dans l'admin du site (RECORD : auto = saison météo, ou froid / chaud / vent / pluie). -->
|
||||
<label class="record" hidden><span data-i18n="record.label">Mise en avant</span> <select id="record"><option value="auto" data-i18n="record.auto">Selon la saison</option><option value="froid" data-i18n="record.froid">Plus froid</option><option value="chaud" data-i18n="record.chaud">Plus chaud</option><option value="vent" data-i18n="record.vent">Plus de vent</option><option value="pluie" data-i18n="record.pluie">Plus de pluie</option></select></label>
|
||||
</div>
|
||||
<button type="button" id="retour" data-i18n="retour">← Tout le massif</button>
|
||||
<div class="pendule" id="pendule" aria-live="polite"><i class="corde g"></i><i class="corde d"></i>
|
||||
@@ -538,11 +556,16 @@ html[data-aff=acces]{--gris:#3a3f3c;--pierre:#b9b4a6}
|
||||
<div class="fb-bas"><span class="gcarre" aria-hidden="true">G</span><span data-i18n-html="fb.bas"><strong>L'écosystème Gastinel.</strong> Un compte pour le forum, vos favoris et toutes nos applications. Sans publicité, une alternative aux GAFAM.</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="liste coupe" id="coupe">
|
||||
<h2 data-i18n="coupe.titre">La coupe du massif</h2>
|
||||
<p id="coupe-txt" data-i18n="coupe.txt">Chaque carré est une station : plus il est haut, plus la station est en altitude ; plus il est à gauche, plus il fait froid.</p>
|
||||
<div id="coupe-svg"></div>
|
||||
<p class="coupe-lect" id="coupe-lect" aria-live="polite" data-i18n="coupe.survol">Survole ou touche une station.</p>
|
||||
<section class="panneaux panneaux-coupe" id="coupe">
|
||||
<div class="panneau" id="p-coupe">
|
||||
<button type="button" class="panneau-tete" aria-expanded="false" aria-controls="c-coupe"><b data-i18n="coupe.titre">La coupe du massif</b><small data-i18n="coupe.sous">altitude et température</small><i aria-hidden="true"></i></button>
|
||||
<div class="panneau-corps" id="c-coupe" inert><div class="panneau-in"><div class="corps-liste coupe">
|
||||
<p data-i18n="coupe.intro">Chaque carré est une station : plus il est haut, plus la station est en altitude ; plus il est à gauche, plus il y fait froid. En général, plus on monte, plus il fait froid (la ligne verte). Mais par nuit calme, l’air froid glisse et s’accumule au fond des combes : il fait alors plus chaud plus haut, c’est une « inversion ».</p>
|
||||
<p class="coupe-etat" id="coupe-txt"></p>
|
||||
<div id="coupe-svg"></div>
|
||||
<p class="coupe-lect" id="coupe-lect" aria-live="polite" data-i18n="coupe.survol">Survole ou touche une station.</p>
|
||||
</div></div></div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="panneaux" id="stations">
|
||||
<div class="panneau" id="p-stations">
|
||||
@@ -552,9 +575,21 @@ html[data-aff=acces]{--gris:#3a3f3c;--pierre:#b9b4a6}
|
||||
<div id="secteurs"></div>
|
||||
</div></div></div>
|
||||
</div>
|
||||
<div class="panneau" id="p-bilan">
|
||||
<button type="button" class="panneau-tete" aria-expanded="false" aria-controls="c-bilan"><b data-i18n="pan.bilan">Bilan de la semaine</b><small data-i18n="pan.bilan.sous">records des 7 derniers jours</small><i aria-hidden="true"></i></button>
|
||||
<div class="panneau-corps" id="c-bilan" inert><div class="panneau-in"><div class="corps-liste" id="bilan" data-i18n="charge">Chargement…</div></div></div>
|
||||
<div class="panneau ouvert" id="p-bilan">
|
||||
<button type="button" class="panneau-tete" aria-expanded="true" aria-controls="c-bilan"><b data-i18n="pan.bilan">Bilan de la semaine</b><small data-i18n="pan.bilan.sous">records des 7 derniers jours</small><i aria-hidden="true"></i></button>
|
||||
<div class="panneau-corps" id="c-bilan"><div class="panneau-in"><div class="corps-liste" id="bilan" data-i18n="charge">Chargement…</div></div></div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="apropos" aria-labelledby="ap-site-t">
|
||||
<div>
|
||||
<h2 id="ap-site-t" data-i18n="ap.site.t">À propos de ce site</h2>
|
||||
<p data-i18n="ap.site.txt">Météo Vercors montre sur une carte la température, le vent et la pluie mesurés dans le Vercors, au plus près de chez vous. Sans publicité et sans suivi.</p>
|
||||
<p><a href="a-propos.html" data-i18n="ap.site.lien">Sources, licences et mentions →</a></p>
|
||||
</div>
|
||||
<div>
|
||||
<h2 data-i18n="ap.g.t">À propos de Gastinel</h2>
|
||||
<p data-i18n="ap.g.txt">Gastinel est une micro-entreprise de Théo Gastinel, à Lans-en-Vercors. Le compte Gastinel sert à se connecter au forum et aux services Gastinel.</p>
|
||||
<p><a href="https://gastinel.me" rel="noopener" data-i18n="ap.g.lien">Voir le portfolio, gastinel.me →</a></p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="pied">
|
||||
@@ -589,6 +624,7 @@ html[data-aff=acces]{--gris:#3a3f3c;--pierre:#b9b4a6}
|
||||
</div>
|
||||
<p class="pied-bas">© Théo Gastinel · Météo Vercors</p>
|
||||
</footer>
|
||||
<button type="button" class="haut cache" id="haut" aria-label="Revenir en haut de la page" title="Revenir en haut" data-i18n-a="aria-label:haut.aria;title:haut.titre"><svg viewBox="0 0 24 24" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M12 20V5M5 11.5 12 4.5l7 7"/></svg></button>
|
||||
<noscript><p style="max-width:640px;margin:0 auto;padding:16px;font-family:system-ui">Météo Vercors a besoin de JavaScript pour afficher la carte et les relevés en direct. Les sources et les mentions légales sont sur la page <a href="a-propos.html">À propos</a>.</p></noscript>
|
||||
|
||||
<script>
|
||||
@@ -690,6 +726,11 @@ const I18N = {
|
||||
'coupe.txt': 'Each square is a station: the higher it is, the higher the station; the further left, the colder it is.',
|
||||
'coupe.survol': 'Hover over or tap a station.',
|
||||
'pan.stations': 'The stations', 'pan.stations.sous': 'all of them, north to south', 'pan.stations.txt': 'On the map: one value per village or site; the details are here.',
|
||||
'coupe.sous': 'altitude and temperature',
|
||||
'coupe.intro': 'Each square is a station: the higher it is, the higher the station; the further left, the colder it is. Usually, the higher you go, the colder it gets (the green line). But on calm nights, cold air slides down and pools at the bottom of the hollows, so it is warmer higher up: this is called an “inversion”.',
|
||||
'haut.aria': 'Back to the top of the page', 'haut.titre': 'Back to top',
|
||||
'ap.site.t': 'About this site', 'ap.site.txt': 'Météo Vercors shows on a map the temperature, wind and rain measured in the Vercors, as close to home as possible. No advertising, no tracking.', 'ap.site.lien': 'Sources, licences and legal notice →',
|
||||
'ap.g.t': 'About Gastinel', 'ap.g.txt': 'Gastinel is a micro-business run by Théo Gastinel, in Lans-en-Vercors. The Gastinel account is used to sign in to the forum and to Gastinel services.', 'ap.g.lien': 'See the portfolio, gastinel.me →',
|
||||
'pan.bilan': 'Week in review', 'pan.bilan.sous': 'records of the last 7 days', charge: 'Loading…',
|
||||
'pied.accroche': 'Our own stations, local figures.',
|
||||
'pied.donnees': 'Data: Météo-France (Licence Ouverte), ROMMA (with the association’s agreement), the Gastinel family’s stations (WeatherLink, ROMMA, Infoclimat). Base map: IGN, open licence.',
|
||||
@@ -756,6 +797,11 @@ const I18N = {
|
||||
'coupe.txt': 'Jedes Quadrat ist eine Station: Je höher es steht, desto höher liegt die Station; je weiter links, desto kälter ist es.',
|
||||
'coupe.survol': 'Mit der Maus über eine Station fahren oder sie antippen.',
|
||||
'pan.stations': 'Die Stationen', 'pan.stations.sous': 'alle, von Nord nach Süd', 'pan.stations.txt': 'Auf der Karte: ein Wert pro Dorf oder Ort; die Details stehen hier.',
|
||||
'coupe.sous': 'Höhe und Temperatur',
|
||||
'coupe.intro': 'Jedes Quadrat ist eine Station: Je höher es steht, desto höher liegt die Station; je weiter links, desto kälter ist es. Normalerweise wird es mit der Höhe kälter (grüne Linie). In ruhigen Nächten sammelt sich die Kaltluft aber am Grund der Mulden, und weiter oben ist es wärmer: Das nennt man „Inversion“.',
|
||||
'haut.aria': 'Zurück zum Seitenanfang', 'haut.titre': 'Nach oben',
|
||||
'ap.site.t': 'Über diese Seite', 'ap.site.txt': 'Météo Vercors zeigt auf einer Karte Temperatur, Wind und Regen, die im Vercors gemessen werden, so nah wie möglich bei Ihnen. Keine Werbung, kein Tracking.', 'ap.site.lien': 'Quellen, Lizenzen und Impressum →',
|
||||
'ap.g.t': 'Über Gastinel', 'ap.g.txt': 'Gastinel ist ein Kleinunternehmen von Théo Gastinel in Lans-en-Vercors. Das Gastinel-Konto dient zur Anmeldung im Forum und bei den Gastinel-Diensten.', 'ap.g.lien': 'Portfolio ansehen, gastinel.me →',
|
||||
'pan.bilan': 'Wochenbilanz', 'pan.bilan.sous': 'Rekorde der letzten 7 Tage', charge: 'Wird geladen…',
|
||||
'pied.accroche': 'Stationen von hier, Zahlen von hier.',
|
||||
'pied.donnees': 'Daten: Météo-France (Licence Ouverte), ROMMA (mit Zustimmung des Vereins), Stationen der Familie Gastinel (WeatherLink, ROMMA, Infoclimat). Kartengrundlage: IGN, offene Lizenz.',
|
||||
@@ -929,7 +975,7 @@ Object.values(STATIONS).forEach(x => { x.t = x.mn = x.mx = null; x.exemple = tru
|
||||
// phrase du jour : le point le plus froid, et l'inversion si elle se voit
|
||||
const MOMENT = h => t('moment', h);
|
||||
let RECORD = 'auto';
|
||||
try { RECORD = localStorage.getItem('vm-record') || 'auto'; } catch (e) {}
|
||||
// RECORD : valeur par défaut = saison météo ('auto'). Le sélecteur n'est plus affiché ; ce réglage ira dans l'admin du site.
|
||||
// saisons météorologiques : hiver = décembre à février, été = juin à août
|
||||
function saisonMeteo(){
|
||||
const m = parseInt(new Intl.DateTimeFormat('fr-FR', {month: 'numeric', timeZone: 'Europe/Paris'}).format(new Date()), 10);
|
||||
@@ -1733,6 +1779,7 @@ btnLecture.addEventListener('click', () => {
|
||||
document.querySelectorAll('[data-auteur]').forEach(e => { e.textContent = u.auteur ? 'par ' + u.auteur : ''; });
|
||||
if (u.n) document.querySelectorAll('[data-n]').forEach(e => { e.textContent = u.n + (u.n > 1 ? ' sujets' : ' sujet') + ' cette semaine'; });
|
||||
}).catch(() => {}) : 0);
|
||||
remplirBilan(); // le bilan est déplié dès l'arrivée
|
||||
function apresDonnees(){ chargerSeries(); if (TEMPS != null) { snapshotLive(); appliquerTemps(); } }
|
||||
const selRecord = document.getElementById('record');
|
||||
selRecord.value = RECORD;
|
||||
@@ -2024,6 +2071,25 @@ function ouverture(){
|
||||
armer();
|
||||
})();
|
||||
|
||||
// bouton « Revenir en haut » : visible seulement quand la carte n'est plus à l'écran, et toujours au-dessus du pied de page
|
||||
const btnHaut = document.getElementById('haut'), piedPage = document.querySelector('.pied');
|
||||
let carteVue = true, rafHaut = 0;
|
||||
function placerHaut(){
|
||||
rafHaut = 0;
|
||||
btnHaut.classList.toggle('cache', carteVue);
|
||||
if (carteVue) return;
|
||||
const r = piedPage.getBoundingClientRect();
|
||||
btnHaut.style.setProperty('--haut-bas', Math.max(16, innerHeight - r.top + 12) + 'px');
|
||||
}
|
||||
const demanderHaut = () => { if (!rafHaut) rafHaut = requestAnimationFrame(placerHaut); };
|
||||
if ('IntersectionObserver' in window) new IntersectionObserver(l => { carteVue = l[0].isIntersecting; demanderHaut(); }).observe(document.getElementById('carte'));
|
||||
else btnHaut.hidden = true;
|
||||
addEventListener('scroll', () => { if (!carteVue) demanderHaut(); }, {passive: true});
|
||||
addEventListener('resize', demanderHaut);
|
||||
btnHaut.addEventListener('click', () => {
|
||||
scrollTo({top: 0, behavior: reduit ? 'auto' : 'smooth'});
|
||||
const h1 = document.querySelector('h1'); h1.tabIndex = -1; h1.focus({preventScroll: true});
|
||||
});
|
||||
// ---- fenêtre des paramètres (roue du pied de page) ----
|
||||
const dlgPrm = document.getElementById('prm'), btnPrm = document.getElementById('prm-ouvrir');
|
||||
function etatParametres(){
|
||||
|
||||
@@ -291,7 +291,8 @@ a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(-
|
||||
.forum-box.mobile{display:none}
|
||||
@media (max-width:1000px){.forum-box{left:auto;right:28px;bottom:68px;width:320px}.legende{left:28px;right:auto}}
|
||||
@media (max-width:719px){.carte .forum-box{display:none}.forum-box.mobile{display:block;position:static;width:auto;flex:0 0 100%;margin:6px 0 4px}}
|
||||
.coupe{padding-bottom:8px}
|
||||
.panneaux-coupe{padding-bottom:0}
|
||||
.coupe-etat{font-weight:600;color:var(--roche)!important}.coupe-etat:empty{display:none}
|
||||
#coupe-svg svg{width:100%;height:auto;display:block;background:#faf9f5;border:1px solid var(--roche)}
|
||||
#coupe-svg text{font-family:var(--texte);font-size:11px;fill:var(--gris)}
|
||||
@media (max-width:719px){#coupe-svg text{font-size:10.5px}}
|
||||
@@ -379,6 +380,22 @@ a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid var(-
|
||||
.sanscookie span{font-size:12.5px;color:var(--gris)}
|
||||
.sanscookie button{position:absolute;top:2px;right:4px;border:0;background:none;font-size:20px;line-height:1;color:var(--gris);cursor:pointer;padding:4px 6px}
|
||||
@media (prefers-reduced-motion:reduce){.sanscookie{transition:none}}
|
||||
/* ---------- à propos (bas de page) ---------- */
|
||||
.apropos{max-width:1080px;margin:0 auto;padding:8px 28px 44px;display:grid;grid-template-columns:1fr 1fr;gap:14px 34px}
|
||||
.apropos h2{font-family:var(--titre);font-weight:600;font-size:21px;margin:0 0 6px;color:var(--sapin)}
|
||||
.apropos p{margin:0 0 8px;font-size:14.5px;color:var(--gris)}
|
||||
.apropos a{color:var(--sapin);font-weight:600;text-underline-offset:3px}
|
||||
@media (max-width:719px){.apropos{grid-template-columns:1fr;padding:6px 16px 32px}}
|
||||
[data-aff=acces] .apropos p{font-size:17px;color:var(--roche)}
|
||||
[data-aff=acces] .apropos a{text-decoration:underline}
|
||||
/* ---------- revenir en haut ---------- */
|
||||
.haut{position:fixed;right:16px;bottom:var(--haut-bas,16px);z-index:20;width:44px;height:44px;display:grid;place-items:center;padding:0;font:inherit;color:var(--sapin);background:rgba(250,249,245,.94);border:1px solid var(--roche);border-radius:0;cursor:pointer;opacity:1;transition:opacity .25s ease}
|
||||
.haut svg{width:20px;height:20px}
|
||||
.haut:hover{background:#fff}
|
||||
.haut[hidden]{display:none}
|
||||
.haut.cache{opacity:0;visibility:hidden}
|
||||
[data-aff=acces] .haut{width:52px;height:52px;border-width:2px;background:#fff}
|
||||
[data-aff=acces] .haut svg{width:26px;height:26px}
|
||||
/* ---------- paramètres (roue du pied de page) ---------- */
|
||||
.pied{position:relative;padding-top:66px}
|
||||
.prm-ouvrir{position:absolute;top:18px;right:max(28px,calc((100% - 1080px) / 2));display:inline-flex;align-items:center;gap:7px;font:inherit;font-size:11.5px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;line-height:1;color:#fff;background:none;border:1px solid #5d6166;border-radius:0;padding:7px 11px 7px 8px;cursor:pointer}
|
||||
@@ -505,7 +522,8 @@ html[data-aff=acces]{--gris:#3a3f3c;--pierre:#b9b4a6}
|
||||
<div class="outils" id="outils">
|
||||
<div class="rech"><input type="search" id="rech" placeholder="Une station, un village…" autocomplete="off" aria-label="Chercher une station ou un village" data-i18n-a="placeholder:rech.ph;aria-label:rech.aria"><ul id="rech-res" hidden></ul></div>
|
||||
|
||||
<label class="record"><span data-i18n="record.label">Mise en avant</span> <select id="record"><option value="auto" data-i18n="record.auto">Selon la saison</option><option value="froid" data-i18n="record.froid">Plus froid</option><option value="chaud" data-i18n="record.chaud">Plus chaud</option><option value="vent" data-i18n="record.vent">Plus de vent</option><option value="pluie" data-i18n="record.pluie">Plus de pluie</option></select></label>
|
||||
<!-- Réglage saisonnier masqué : il se réglera plus tard dans l'admin du site (RECORD : auto = saison météo, ou froid / chaud / vent / pluie). -->
|
||||
<label class="record" hidden><span data-i18n="record.label">Mise en avant</span> <select id="record"><option value="auto" data-i18n="record.auto">Selon la saison</option><option value="froid" data-i18n="record.froid">Plus froid</option><option value="chaud" data-i18n="record.chaud">Plus chaud</option><option value="vent" data-i18n="record.vent">Plus de vent</option><option value="pluie" data-i18n="record.pluie">Plus de pluie</option></select></label>
|
||||
</div>
|
||||
<button type="button" id="retour" data-i18n="retour">← Tout le massif</button>
|
||||
<div class="pendule" id="pendule" aria-live="polite"><i class="corde g"></i><i class="corde d"></i>
|
||||
@@ -538,11 +556,16 @@ html[data-aff=acces]{--gris:#3a3f3c;--pierre:#b9b4a6}
|
||||
<div class="fb-bas"><span class="gcarre" aria-hidden="true">G</span><span data-i18n-html="fb.bas"><strong>L'écosystème Gastinel.</strong> Un compte pour le forum, vos favoris et toutes nos applications. Sans publicité, une alternative aux GAFAM.</span></div>
|
||||
</div>
|
||||
</div>
|
||||
<section class="liste coupe" id="coupe">
|
||||
<h2 data-i18n="coupe.titre">La coupe du massif</h2>
|
||||
<p id="coupe-txt" data-i18n="coupe.txt">Chaque carré est une station : plus il est haut, plus la station est en altitude ; plus il est à gauche, plus il fait froid.</p>
|
||||
<div id="coupe-svg"></div>
|
||||
<p class="coupe-lect" id="coupe-lect" aria-live="polite" data-i18n="coupe.survol">Survole ou touche une station.</p>
|
||||
<section class="panneaux panneaux-coupe" id="coupe">
|
||||
<div class="panneau" id="p-coupe">
|
||||
<button type="button" class="panneau-tete" aria-expanded="false" aria-controls="c-coupe"><b data-i18n="coupe.titre">La coupe du massif</b><small data-i18n="coupe.sous">altitude et température</small><i aria-hidden="true"></i></button>
|
||||
<div class="panneau-corps" id="c-coupe" inert><div class="panneau-in"><div class="corps-liste coupe">
|
||||
<p data-i18n="coupe.intro">Chaque carré est une station : plus il est haut, plus la station est en altitude ; plus il est à gauche, plus il y fait froid. En général, plus on monte, plus il fait froid (la ligne verte). Mais par nuit calme, l’air froid glisse et s’accumule au fond des combes : il fait alors plus chaud plus haut, c’est une « inversion ».</p>
|
||||
<p class="coupe-etat" id="coupe-txt"></p>
|
||||
<div id="coupe-svg"></div>
|
||||
<p class="coupe-lect" id="coupe-lect" aria-live="polite" data-i18n="coupe.survol">Survole ou touche une station.</p>
|
||||
</div></div></div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="panneaux" id="stations">
|
||||
<div class="panneau" id="p-stations">
|
||||
@@ -552,9 +575,21 @@ html[data-aff=acces]{--gris:#3a3f3c;--pierre:#b9b4a6}
|
||||
<div id="secteurs"></div>
|
||||
</div></div></div>
|
||||
</div>
|
||||
<div class="panneau" id="p-bilan">
|
||||
<button type="button" class="panneau-tete" aria-expanded="false" aria-controls="c-bilan"><b data-i18n="pan.bilan">Bilan de la semaine</b><small data-i18n="pan.bilan.sous">records des 7 derniers jours</small><i aria-hidden="true"></i></button>
|
||||
<div class="panneau-corps" id="c-bilan" inert><div class="panneau-in"><div class="corps-liste" id="bilan" data-i18n="charge">Chargement…</div></div></div>
|
||||
<div class="panneau ouvert" id="p-bilan">
|
||||
<button type="button" class="panneau-tete" aria-expanded="true" aria-controls="c-bilan"><b data-i18n="pan.bilan">Bilan de la semaine</b><small data-i18n="pan.bilan.sous">records des 7 derniers jours</small><i aria-hidden="true"></i></button>
|
||||
<div class="panneau-corps" id="c-bilan"><div class="panneau-in"><div class="corps-liste" id="bilan" data-i18n="charge">Chargement…</div></div></div>
|
||||
</div>
|
||||
</section>
|
||||
<section class="apropos" aria-labelledby="ap-site-t">
|
||||
<div>
|
||||
<h2 id="ap-site-t" data-i18n="ap.site.t">À propos de ce site</h2>
|
||||
<p data-i18n="ap.site.txt">Météo Vercors montre sur une carte la température, le vent et la pluie mesurés dans le Vercors, au plus près de chez vous. Sans publicité et sans suivi.</p>
|
||||
<p><a href="a-propos.html" data-i18n="ap.site.lien">Sources, licences et mentions →</a></p>
|
||||
</div>
|
||||
<div>
|
||||
<h2 data-i18n="ap.g.t">À propos de Gastinel</h2>
|
||||
<p data-i18n="ap.g.txt">Gastinel est une micro-entreprise de Théo Gastinel, à Lans-en-Vercors. Le compte Gastinel sert à se connecter au forum et aux services Gastinel.</p>
|
||||
<p><a href="https://gastinel.me" rel="noopener" data-i18n="ap.g.lien">Voir le portfolio, gastinel.me →</a></p>
|
||||
</div>
|
||||
</section>
|
||||
<footer class="pied">
|
||||
@@ -589,6 +624,7 @@ html[data-aff=acces]{--gris:#3a3f3c;--pierre:#b9b4a6}
|
||||
</div>
|
||||
<p class="pied-bas">© Théo Gastinel · Météo Vercors</p>
|
||||
</footer>
|
||||
<button type="button" class="haut cache" id="haut" aria-label="Revenir en haut de la page" title="Revenir en haut" data-i18n-a="aria-label:haut.aria;title:haut.titre"><svg viewBox="0 0 24 24" aria-hidden="true" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M12 20V5M5 11.5 12 4.5l7 7"/></svg></button>
|
||||
<noscript><p style="max-width:640px;margin:0 auto;padding:16px;font-family:system-ui">Météo Vercors a besoin de JavaScript pour afficher la carte et les relevés en direct. Les sources et les mentions légales sont sur la page <a href="a-propos.html">À propos</a>.</p></noscript>
|
||||
|
||||
<script>
|
||||
@@ -690,6 +726,11 @@ const I18N = {
|
||||
'coupe.txt': 'Each square is a station: the higher it is, the higher the station; the further left, the colder it is.',
|
||||
'coupe.survol': 'Hover over or tap a station.',
|
||||
'pan.stations': 'The stations', 'pan.stations.sous': 'all of them, north to south', 'pan.stations.txt': 'On the map: one value per village or site; the details are here.',
|
||||
'coupe.sous': 'altitude and temperature',
|
||||
'coupe.intro': 'Each square is a station: the higher it is, the higher the station; the further left, the colder it is. Usually, the higher you go, the colder it gets (the green line). But on calm nights, cold air slides down and pools at the bottom of the hollows, so it is warmer higher up: this is called an “inversion”.',
|
||||
'haut.aria': 'Back to the top of the page', 'haut.titre': 'Back to top',
|
||||
'ap.site.t': 'About this site', 'ap.site.txt': 'Météo Vercors shows on a map the temperature, wind and rain measured in the Vercors, as close to home as possible. No advertising, no tracking.', 'ap.site.lien': 'Sources, licences and legal notice →',
|
||||
'ap.g.t': 'About Gastinel', 'ap.g.txt': 'Gastinel is a micro-business run by Théo Gastinel, in Lans-en-Vercors. The Gastinel account is used to sign in to the forum and to Gastinel services.', 'ap.g.lien': 'See the portfolio, gastinel.me →',
|
||||
'pan.bilan': 'Week in review', 'pan.bilan.sous': 'records of the last 7 days', charge: 'Loading…',
|
||||
'pied.accroche': 'Our own stations, local figures.',
|
||||
'pied.donnees': 'Data: Météo-France (Licence Ouverte), ROMMA (with the association’s agreement), the Gastinel family’s stations (WeatherLink, ROMMA, Infoclimat). Base map: IGN, open licence.',
|
||||
@@ -756,6 +797,11 @@ const I18N = {
|
||||
'coupe.txt': 'Jedes Quadrat ist eine Station: Je höher es steht, desto höher liegt die Station; je weiter links, desto kälter ist es.',
|
||||
'coupe.survol': 'Mit der Maus über eine Station fahren oder sie antippen.',
|
||||
'pan.stations': 'Die Stationen', 'pan.stations.sous': 'alle, von Nord nach Süd', 'pan.stations.txt': 'Auf der Karte: ein Wert pro Dorf oder Ort; die Details stehen hier.',
|
||||
'coupe.sous': 'Höhe und Temperatur',
|
||||
'coupe.intro': 'Jedes Quadrat ist eine Station: Je höher es steht, desto höher liegt die Station; je weiter links, desto kälter ist es. Normalerweise wird es mit der Höhe kälter (grüne Linie). In ruhigen Nächten sammelt sich die Kaltluft aber am Grund der Mulden, und weiter oben ist es wärmer: Das nennt man „Inversion“.',
|
||||
'haut.aria': 'Zurück zum Seitenanfang', 'haut.titre': 'Nach oben',
|
||||
'ap.site.t': 'Über diese Seite', 'ap.site.txt': 'Météo Vercors zeigt auf einer Karte Temperatur, Wind und Regen, die im Vercors gemessen werden, so nah wie möglich bei Ihnen. Keine Werbung, kein Tracking.', 'ap.site.lien': 'Quellen, Lizenzen und Impressum →',
|
||||
'ap.g.t': 'Über Gastinel', 'ap.g.txt': 'Gastinel ist ein Kleinunternehmen von Théo Gastinel in Lans-en-Vercors. Das Gastinel-Konto dient zur Anmeldung im Forum und bei den Gastinel-Diensten.', 'ap.g.lien': 'Portfolio ansehen, gastinel.me →',
|
||||
'pan.bilan': 'Wochenbilanz', 'pan.bilan.sous': 'Rekorde der letzten 7 Tage', charge: 'Wird geladen…',
|
||||
'pied.accroche': 'Stationen von hier, Zahlen von hier.',
|
||||
'pied.donnees': 'Daten: Météo-France (Licence Ouverte), ROMMA (mit Zustimmung des Vereins), Stationen der Familie Gastinel (WeatherLink, ROMMA, Infoclimat). Kartengrundlage: IGN, offene Lizenz.',
|
||||
@@ -929,7 +975,7 @@ Object.values(STATIONS).forEach(x => { x.t = x.mn = x.mx = null; x.exemple = tru
|
||||
// phrase du jour : le point le plus froid, et l'inversion si elle se voit
|
||||
const MOMENT = h => t('moment', h);
|
||||
let RECORD = 'auto';
|
||||
try { RECORD = localStorage.getItem('vm-record') || 'auto'; } catch (e) {}
|
||||
// RECORD : valeur par défaut = saison météo ('auto'). Le sélecteur n'est plus affiché ; ce réglage ira dans l'admin du site.
|
||||
// saisons météorologiques : hiver = décembre à février, été = juin à août
|
||||
function saisonMeteo(){
|
||||
const m = parseInt(new Intl.DateTimeFormat('fr-FR', {month: 'numeric', timeZone: 'Europe/Paris'}).format(new Date()), 10);
|
||||
@@ -1733,6 +1779,7 @@ btnLecture.addEventListener('click', () => {
|
||||
document.querySelectorAll('[data-auteur]').forEach(e => { e.textContent = u.auteur ? 'par ' + u.auteur : ''; });
|
||||
if (u.n) document.querySelectorAll('[data-n]').forEach(e => { e.textContent = u.n + (u.n > 1 ? ' sujets' : ' sujet') + ' cette semaine'; });
|
||||
}).catch(() => {}) : 0);
|
||||
remplirBilan(); // le bilan est déplié dès l'arrivée
|
||||
function apresDonnees(){ chargerSeries(); if (TEMPS != null) { snapshotLive(); appliquerTemps(); } }
|
||||
const selRecord = document.getElementById('record');
|
||||
selRecord.value = RECORD;
|
||||
@@ -2024,6 +2071,25 @@ function ouverture(){
|
||||
armer();
|
||||
})();
|
||||
|
||||
// bouton « Revenir en haut » : visible seulement quand la carte n'est plus à l'écran, et toujours au-dessus du pied de page
|
||||
const btnHaut = document.getElementById('haut'), piedPage = document.querySelector('.pied');
|
||||
let carteVue = true, rafHaut = 0;
|
||||
function placerHaut(){
|
||||
rafHaut = 0;
|
||||
btnHaut.classList.toggle('cache', carteVue);
|
||||
if (carteVue) return;
|
||||
const r = piedPage.getBoundingClientRect();
|
||||
btnHaut.style.setProperty('--haut-bas', Math.max(16, innerHeight - r.top + 12) + 'px');
|
||||
}
|
||||
const demanderHaut = () => { if (!rafHaut) rafHaut = requestAnimationFrame(placerHaut); };
|
||||
if ('IntersectionObserver' in window) new IntersectionObserver(l => { carteVue = l[0].isIntersecting; demanderHaut(); }).observe(document.getElementById('carte'));
|
||||
else btnHaut.hidden = true;
|
||||
addEventListener('scroll', () => { if (!carteVue) demanderHaut(); }, {passive: true});
|
||||
addEventListener('resize', demanderHaut);
|
||||
btnHaut.addEventListener('click', () => {
|
||||
scrollTo({top: 0, behavior: reduit ? 'auto' : 'smooth'});
|
||||
const h1 = document.querySelector('h1'); h1.tabIndex = -1; h1.focus({preventScroll: true});
|
||||
});
|
||||
// ---- fenêtre des paramètres (roue du pied de page) ----
|
||||
const dlgPrm = document.getElementById('prm'), btnPrm = document.getElementById('prm-ouvrir');
|
||||
function etatParametres(){
|
||||
|
||||
Référencer dans un nouveau ticket
Bloquer un utilisateur