|
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511 |
- <!doctype html><!-- This is a valid HTML5 document. -->
- <!-- Screen readers, SEO, extensions and so on. -->
- <html lang="fr">
- <!-- Has to be within the first 1024 bytes, hence before the `title` element
- See: https://www.w3.org/TR/2012/CR-html5-20121217/document-metadata.html#charset -->
- <meta charset="utf-8">
- <!-- Why no `X-UA-Compatible` meta: https://stackoverflow.com/a/6771584 -->
- <!-- The viewport meta is quite crowded and we are responsible for that.
- See: https://codepen.io/tigt/post/meta-viewport-for-2015 -->
- <meta name="viewport" content="width=device-width,initial-scale=1">
- <!-- Required to make a valid HTML5 document. -->
- <title>Accueil — David Larlet</title>
- <meta name="description" content="Voici l’espace personnel de David Larlet sur le Web.">
- <!-- That good ol' feed, subscribe :). -->
- <link rel="alternate" type="application/atom+xml" title="Feed" href="/david/log/">
- <!-- Generated from https://realfavicongenerator.net/ such a mess. -->
- <link rel="apple-touch-icon" sizes="180x180" href="/static/david/icons2/apple-touch-icon.png">
- <link rel="icon" type="image/png" sizes="32x32" href="/static/david/icons2/favicon-32x32.png">
- <link rel="icon" type="image/png" sizes="16x16" href="/static/david/icons2/favicon-16x16.png">
- <link rel="manifest" href="/static/david/icons2/site.webmanifest">
- <link rel="mask-icon" href="/static/david/icons2/safari-pinned-tab.svg" color="#07486c">
- <link rel="shortcut icon" href="/static/david/icons2/favicon.ico">
- <meta name="msapplication-TileColor" content="#f7f7f7">
- <meta name="msapplication-config" content="/static/david/icons2/browserconfig.xml">
- <meta name="theme-color" content="#f7f7f7" media="(prefers-color-scheme: light)">
- <meta name="theme-color" content="#272727" media="(prefers-color-scheme: dark)">
- <!-- Documented, feel free to shoot an email. -->
- <link rel="stylesheet" href="/static/david/css/style_2021-01-20.css">
- <!-- See https://www.zachleat.com/web/comprehensive-webfonts/ for the trade-off. -->
- <link rel="preload" href="/static/david/css/fonts/triplicate_t4_poly_regular.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" crossorigin>
- <link rel="preload" href="/static/david/css/fonts/triplicate_t4_poly_bold.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" crossorigin>
- <link rel="preload" href="/static/david/css/fonts/triplicate_t4_poly_italic.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)" crossorigin>
- <link rel="preload" href="/static/david/css/fonts/triplicate_t3_regular.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
- <link rel="preload" href="/static/david/css/fonts/triplicate_t3_bold.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
- <link rel="preload" href="/static/david/css/fonts/triplicate_t3_italic.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
- <script>
- function toggleTheme(themeName) {
- document.documentElement.classList.toggle(
- 'forced-dark',
- themeName === 'dark'
- )
- document.documentElement.classList.toggle(
- 'forced-light',
- themeName === 'light'
- )
- }
- const selectedTheme = localStorage.getItem('theme')
- if (selectedTheme !== 'undefined') {
- toggleTheme(selectedTheme)
- }
- </script>
-
- <body class="remarkdown h1-underline h2-underline h3-underline em-underscore hr-center ul-star pre-tick" data-instant-intensity="viewport-all">
-
-
- <article>
- <header>
- <h1>Bienvenue</h1>
- </header>
- <p>
- Voici l’espace personnel de David Larlet sur le Web.
- Il se veut modeste, accueillant et pérenne.
- Il fixe mes pensées et parfois engage des échanges.
- J’essaye de tenir et lier des propos bienveillants.
- Je vous souhaite une jolie promenade.
- </p>
-
- <p lang="en">
- For an English profile, check out
- <a href="http://larlet.com" data-instant>this page 🇨🇦</a>.
- </p>
-
- <h2>Publications 2023</h2>
-
- <p>Liste des publications récentes en ordre anté-chronologique :</p>
-
- <nav>
- <p>
- <a href="/david/2023/09/09/">Blogroll</a>,
- <a href="/david/2023/09/08/">Char 2</a>,
- <a href="/david/2023/09/07/">Conteur</a>,
- <a href="/david/2023/09/06/">Retour</a>,
- <a href="/david/2023/07/28/">France</a>,
- <a href="/david/2023/07/02/">Perles</a>,
- <a href="/david/2023/06/26/">Particules</a>,
- <a href="/david/2023/06/19/">Village</a>,
- <a href="/david/2023/06/12/">Apocalypse</a>,
- <a href="/david/2023/06/06/">Réponse(s)</a>,
- <a href="/david/2023/05/06/">SudWeb</a>,
- <a href="/david/2023/05/05/">AÏe</a>,
- <a href="/david/2023/05/01/">Long cours</a>,
- <a href="/david/2023/03/13/">Traditions</a>,
- <a href="/david/2023/03/04/">Jour 3</a>,
- <a href="/david/2023/03/03/">Jour 2</a>,
- <a href="/david/2023/03/02/">Jour 1</a>,
- <a href="/david/2023/02/28/">AlgoRSSithme</a>,
- <a href="/david/2023/02/25/">Transmission</a>,
- <a href="/david/2023/02/18/">Quiz</a>,
- <a href="/david/2023/02/13/">Livre</a>,
- <a href="/david/2023/02/12/">Jour 3</a>,
- <a href="/david/2023/02/11/">Jour 2</a>,
- <a href="/david/2023/02/10/">Jour 1</a>,
- <a href="/david/2023/02/09/">Allumage</a>,
- <a href="/david/2023/02/08/">TextcAIst</a>,
- <a href="/david/2023/02/07/">Madeleine</a>,
- <a href="/david/2023/02/05/">Attente</a>,
- <a href="/david/2023/02/03/">Chargement</a>,
- <a href="/david/2023/02/02/">Moment</a>,
- <a href="/david/2023/02/01/">Ombres</a>,
- <a href="/david/2023/01/31/">Ennui</a>,
- <a href="/david/2023/01/30/">Lecture</a>,
- <a href="/david/2023/01/26/">Décentralisation</a>,
- <a href="/david/2023/01/24/">Capot</a>,
- <a href="/david/2023/01/23/">Déception</a>,
- <a href="/david/2023/01/22/">Jour 2</a>,
- <a href="/david/2023/01/21/">Jour 1</a>,
- <a href="/david/2023/01/20/">Lettres</a>,
- <a href="/david/2023/01/18/">Femmes</a>,
- <a href="/david/2023/01/17/">Populaire</a>,
- <a href="/david/2023/01/16/">Chasse</a>,
- <a href="/david/2023/01/15/">Snow Fall</a>,
- <a href="/david/2023/01/14/">Dépendances</a>,
- <a href="/david/2023/01/13/">Eaux grises</a>,
- <a href="/david/2023/01/12/">Masque</a>,
- <a href="/david/2023/01/11/">Suspendu</a>,
- <a href="/david/2023/01/10/">Qualité</a>,
- <a href="/david/2023/01/09/">Indépendant·e</a>,
- <a href="/david/2023/01/08/">Partage</a>,
- <a href="/david/2023/01/07/">Dette</a>,
- <a href="/david/2023/01/06/">Toile</a>,
- <a href="/david/2023/01/05/">Instanseul</a>,
- <a href="/david/2023/01/04/">Rétrospectives</a>,
- <a href="/david/2023/01/03/">Préparation</a>,
- <a href="/david/2023/01/02/">Lucidité</a>,
- <a href="/david/2023/01/01/">Alleeez</a>.
-
- </p>
- </nav>
-
- <p id="tags-2023">Ou par étiquettes :</p>
-
- <nav>
- <p>
- <a href="/david/2023/accompagnement/" rel="tag">#accompagnement (7)</a>,
- <a href="/david/2023/amadou/" rel="tag">#amadou (1)</a>,
- <a href="/david/2023/attention/" rel="tag">#attention (2)</a>,
- <a href="/david/2023/aventure/" rel="tag">#aventure (13)</a>,
- <a href="/david/2023/complexite/" rel="tag">#complexité (5)</a>,
- <a href="/david/2023/confiance/" rel="tag">#confiance (5)</a>,
- <a href="/david/2023/confidentialite/" rel="tag">#confidentialité (4)</a>,
- <a href="/david/2023/courage/" rel="tag">#courage (7)</a>,
- <a href="/david/2023/decentralisation/" rel="tag">#décentralisation (4)</a>,
- <a href="/david/2023/don/" rel="tag">#don (2)</a>,
- <a href="/david/2023/eau/" rel="tag">#eau (3)</a>,
- <a href="/david/2023/ecriture/" rel="tag">#écriture (4)</a>,
- <a href="/david/2023/foret/" rel="tag">#forêt (11)</a>,
- <a href="/david/2023/gafam/" rel="tag">#gafam (2)</a>,
- <a href="/david/2023/gratitude/" rel="tag">#gratitude (8)</a>,
- <a href="/david/2023/incompetence/" rel="tag">#incompétence (4)</a>,
- <a href="/david/2023/intimite/" rel="tag">#intimité (3)</a>,
- <a href="/david/2023/livre/" rel="tag">#livre (3)</a>,
- <a href="/david/2023/masque/" rel="tag">#masque (1)</a>,
- <a href="/david/2023/mastodon/" rel="tag">#mastodon (1)</a>,
- <a href="/david/2023/nostalgie/" rel="tag">#nostalgie (3)</a>,
- <a href="/david/2023/parentalite/" rel="tag">#parentalité (4)</a>,
- <a href="/david/2023/partage/" rel="tag">#partage (2)</a>,
- <a href="/david/2023/patriarcat/" rel="tag">#patriarcat (1)</a>,
- <a href="/david/2023/photographie/" rel="tag">#photographie (3)</a>,
- <a href="/david/2023/propriete/" rel="tag">#propriété (1)</a>,
- <a href="/david/2023/psychologie/" rel="tag">#psychologie (2)</a>,
- <a href="/david/2023/qualite/" rel="tag">#qualité (3)</a>,
- <a href="/david/2023/recherche/" rel="tag">#recherche (10)</a>,
- <a href="/david/2023/recyclage/" rel="tag">#recyclage (2)</a>,
- <a href="/david/2023/reponse/" rel="tag">#réponse (2)</a>,
- <a href="/david/2023/scopyleft/" rel="tag">#scopyleft (1)</a>,
- <a href="/david/2023/simplicite/" rel="tag">#simplicité (4)</a>,
- <a href="/david/2023/sociologie/" rel="tag">#sociologie (7)</a>,
- <a href="/david/2023/solastalgia/" rel="tag">#solastalgia (3)</a>,
- <a href="/david/2023/sport/" rel="tag">#sport (3)</a>,
- <a href="/david/2023/technique/" rel="tag">#technique (8)</a>,
- <a href="/david/2023/traces/" rel="tag">#traces (6)</a>,
- <a href="/david/2023/tristesse/" rel="tag">#tristesse (4)</a>,
- <a href="/david/2023/viande/" rel="tag">#viande (1)</a>,
- <a href="/david/2023/web/" rel="tag">#web (8)</a>.
-
- </p>
- </nav>
-
- <p>
- Les <a href="/david/blogroll/">liens des ami·es</a> avec leurs dernières publications 🤗.
- </p>
-
- <h2>Publications sporadiques 2022</h2>
-
- <p>Liste des publications en ordre chronologique :</p>
-
- <nav>
- <p>
- <a href="/david/2022/01/19/">Négatif</a>,
- <a href="/david/2022/02/17/">Envie</a>,
- <a href="/david/2022/03/04/">Régime</a>,
- <a href="/david/2022/03/18/">Temps</a>,
- <a href="/david/2022/03/23/">Open-source</a>,
- <a href="/david/2022/04/02/">Recherche</a>,
- <a href="/david/2022/04/14/">Ressenti</a>,
- <a href="/david/2022/04/23/">Quarantaine</a>,
- <a href="/david/2022/04/26/">R&Day</a>,
- <a href="/david/2022/05/13/">Aurore</a>,
- <a href="/david/2022/05/15/">Rédemption</a>,
- <a href="/david/2022/05/17/">Outils</a>,
- <a href="/david/2022/05/30/">Méditation</a>,
- <a href="/david/2022/06/06/">Hommes</a>,
- <a href="/david/2022/06/24/">Bouddhisme</a>,
- <a href="/david/2022/06/30/">Valeur(s)</a>,
- <a href="/david/2022/07/06/">Regard</a>,
- <a href="/david/2022/07/08/">LudoviCovid</a>,
- <a href="/david/2022/07/14/">Vingt</a>,
- <a href="/david/2022/07/23/">Origines</a>,
- <a href="/david/2022/08/24/">Silence</a>,
- <a href="/david/2022/09/03/">Bifurquer</a>,
- <a href="/david/2022/10/18/">Esclavage</a>,
- <a href="/david/2022/11/12/">Mastodon</a>,
- <a href="/david/2022/11/27/">Neuf</a>,
- <a href="/david/2022/12/19/">Traces</a>,
- <a href="/david/2022/12/22/">Marcher</a>.
- </p>
- </nav>
-
- <p>
- J’ai aussi ouvert trois nouveaux espaces en 2022 :
- </p>
- <ul>
- <li><a href="https://media.larlet.fr/">Des photos/media plus ou moins récents</a></li>
- <li><a href="https://code.larlet.fr/">Des morceaux de code et d’apprentissages</a></li>
- <li><a href="https://nature.larlet.fr/">Des bribes/expériences de nature</a></li>
- </ul>
- <p>
- En plus de publier des bêtises
- <a href="https://fedi.larlet.fr/@david" rel="me">sur Mastodon</a>.
- </p>
-
- <h2 id="tags">
- Publications <a href="/david/2021/" title="Voir la liste de toutes les publications 2021">2021</a> par tags <svg class="icon icon-tags">
- <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-tags"></use>
- </svg>
- </h2>
- <nav>
- <p>
- <a href="/david/2021/accessibilite/" rel="tag">#accessibilité (17)</a>
- <a href="/david/2021/accompagnement/" rel="tag">#accompagnement (21)</a>
- <a href="/david/2021/allie/" rel="tag">#allié (12)</a>
- <a href="/david/2021/alterego/" rel="tag">#alterego (7)</a>
- <a href="/david/2021/anarchisme/" rel="tag">#anarchisme (5)</a>
- <a href="/david/2021/anxiete/" rel="tag">#anxiété (35)</a>
- <a href="/david/2021/capitalocene/" rel="tag">#capitalocène (21)</a>
- <a href="/david/2021/climat/" rel="tag">#climat (13)</a>
- <a href="/david/2021/contemplation/" rel="tag">#contemplation (7)</a>
- <a href="/david/2021/cooperative/" rel="tag">#coopérative (7)</a>
- <a href="/david/2021/design/" rel="tag">#design (11)</a>
- <a href="/david/2021/echecs/" rel="tag">#échecs (5)</a>
- <a href="/david/2021/ecole/" rel="tag">#école (8)</a>
- <a href="/david/2021/ecriture/" rel="tag">#écriture (15)</a>
- <a href="/david/2021/etiquette/" rel="tag">#étiquette (5)</a>
- <a href="/david/2021/exploration/" rel="tag">#exploration (5)</a>
- <a href="/david/2021/feminisme/" rel="tag">#féminisme (4)</a>
- <a href="/david/2021/foret/" rel="tag">#forêt (40)</a>
- <a href="/david/2021/frugalite/" rel="tag">#frugalité (6)</a>
- <a href="/david/2021/gafam/" rel="tag">#gafam (15)</a>
- <a href="/david/2021/gratitude/" rel="tag">#gratitude (18)</a>
- <a href="/david/2021/inclassable/" rel="tag">#inclassable (4)</a>
- <a href="/david/2021/incompetence/" rel="tag">#incompétence (35)</a>
- <a href="/david/2021/lecture/" rel="tag">#lecture (11)</a>
- <a href="/david/2021/materiel/" rel="tag">#matériel (4)</a>
- <a href="/david/2021/misanthropie/" rel="tag">#misanthropie (23)</a>
- <a href="/david/2021/neige/" rel="tag">#neige (7)</a>
- <a href="/david/2021/open-source/" rel="tag">#open-source (12)</a>
- <a href="/david/2021/pandemie/" rel="tag">#pandémie (44)</a>
- <a href="/david/2021/parentalite/" rel="tag">#parentalité (11)</a>
- <a href="/david/2021/partage/" rel="tag">#partage (23)</a>
- <a href="/david/2021/pharmakon/" rel="tag">#pharmakon (11)</a>
- <a href="/david/2021/poesie/" rel="tag">#poésie (5)</a>
- <a href="/david/2021/premieres-nations/" rel="tag">#premières-nations (4)</a>
- <a href="/david/2021/produit/" rel="tag">#produit (17)</a>
- <a href="/david/2021/protopie/" rel="tag">#protopie (5)</a>
- <a href="/david/2021/publication/" rel="tag">#publication (16)</a>
- <a href="/david/2021/recherche/" rel="tag">#recherche (29)</a>
- <a href="/david/2021/rythme/" rel="tag">#rythme (20)</a>
- <a href="/david/2021/scopyleft/" rel="tag">#scopyleft (5)</a>
- <a href="/david/2021/sociologie/" rel="tag">#sociologie (26)</a>
- <a href="/david/2021/technique/" rel="tag">#technique (47)</a>
- <a href="/david/2021/traces/" rel="tag">#traces (15)</a>
- <a href="/david/2021/transformation/" rel="tag">#transformation (49)</a>
- <a href="/david/2021/travail/" rel="tag">#travail (14)</a>
- <a href="/david/2021/utilisateur-ice/" rel="tag">#utilisateur·ice (5)</a>
- <a href="/david/2021/video/" rel="tag">#vidéo (21)</a>
- <a href="/david/2021/web/" rel="tag">#web (24)</a>
-
- </p>
- </nav>
-
- <h2>Publications hebdomadaires <a href="/david/2020/" title="Voir la liste de toutes les publications 2020">2020</a></h2>
-
- <p>Liste des publications en ordre chronologique :</p>
-
- <nav>
- <p>
- <a href="/david/2020/01/03/">Briques</a>,
- <a href="/david/2020/01/06/">Écriture</a>,
- <a href="/david/2020/01/10/">Travail</a>,
- <a href="/david/2020/01/15/">Futurs</a>,
- <a href="/david/2020/01/17/">Datagouv</a>,
- <a href="/david/2020/01/22/">Réponses</a>,
- <a href="/david/2020/01/29/">Sortie ski</a>,
- <a href="/david/2020/01/31/">Intentions</a>,
- <a href="/david/2020/02/07/">GAFAM+</a>,
- <a href="/david/2020/02/14/">Espoirs</a>,
- <a href="/david/2020/02/21/">Service</a>,
- <a href="/david/2020/03/13/">Technique</a>,
- <a href="/david/2020/03/20/">Rédemption</a>,
- <a href="/david/2020/03/27/">Exutoire</a>,
- <a href="/david/2020/04/03/">Patience</a>,
- <a href="/david/2020/04/10/">Résistance</a>,
- <a href="/david/2020/04/18/">Zam</a>,
- <a href="/david/2020/05/18/">Relance</a>,
- <a href="/david/2020/05/20/">Bikepacking</a>,
- <a href="/david/2020/05/26/">Covidoudou</a>,
- <a href="/david/2020/06/12/">Vrac</a>,
- <a href="/david/2020/06/18/">Mouvements</a>,
- <a href="/david/2020/06/25/">Ouvertance</a>,
- <a href="/david/2020/07/03/">Confetti</a>,
- <a href="/david/2020/07/13/">Bilan</a>,
- <a href="/david/2020/08/24/">Personnes</a>,
- <a href="/david/2020/09/01/">Rentrée</a>,
- <a href="/david/2020/09/07/">Rappels</a>,
- <a href="/david/2020/09/16/">Coupable</a>,
- <a href="/david/2020/10/08/">Parvenir</a>,
- <a href="/david/2020/10/22/">Grand-écart</a>,
- <a href="/david/2020/10/28/">Chaos</a>,
- <a href="/david/2020/11/27/">Perles</a>,
- <a href="/david/2020/12/01/">Compréhension</a>,
- <a href="/david/2020/12/13/">Publications</a>,
- <a href="/david/2020/12/15/">Vidéos</a>,
- <a href="/david/2020/12/18/">Arrakice</a>,
- <a href="/david/2020/12/21/">Livres</a>.
- </p>
- </nav>
-
- <h2>Recherche</h2>
-
- <p>Les contenus de ces dernières années sont indexés.</p>
-
- <form action="/david/recherche/" method="get">
- <label for="input-search">Termes de votre recherche :</label>
- <input type="search" name="s" required>
- <button>Chercher</button>
- </form>
-
-
- <h2>Publications archéologiques</h2>
-
- <p>
- Vous pouvez consulter les différents
- <a href="/david/blog/">billets de blog</a> qui ont été rédigés de 2004 à 2019
- ou les <a href="/david/stream/">entrées de journaux</a> relativement
- régulières entre 2009 et 2019.
- </p>
-
- <p>
- <em>
- Notez qu’avec un tel historique, certaines informations sont obsolètes et/ou
- plus cautionnées.
- </em>
- </p>
-
- <h2>Me contacter</h2>
-
- <p>
- Je réponds à <em>presque</em> tous les courriels reçus, exception faite de ceux que j’assimile à de la publicité ou du <code>spam</code>. Vous pouvez <a href="mailto:david%40larlet.fr" title="Envoyer un courriel">m’écrire</a> sans trop de civilités et me tutoyer, je répondrai probablement de même. Si vous souhaitez correspondre de manière chiffrée, voici <a href="/static/david/david-larlet-pgp-public-key-1359EA98.asc" title="Clé publique de chiffrement">ma clé publique</a>.
- </p>
- </article>
-
-
- <hr>
-
- <footer>
- <p>
- <nobr>
- <a href="/david/" title="Aller à l’accueil"
- ><svg class="icon icon-home">
- <use
- xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-home"
- ></use>
- </svg>
- Accueil</a
- >
- </nobr>
- •
- <nobr>
- <a href="/david/log/" title="Accès au flux RSS"
- ><svg class="icon icon-rss2">
- <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-rss2"></use>
- </svg>
- Suivre</a
- >
- </nobr>
- •
- <nobr>
- <a href="http://larlet.com" title="Go to my English profile" data-instant
- ><svg class="icon icon-user-tie">
- <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-user-tie"></use>
- </svg>
- Pro</a
- >
- </nobr>
- •
- <nobr>
- <a href="mailto:david%40larlet.fr" title="Envoyer un courriel"
- ><svg class="icon icon-mail">
- <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-mail"></use>
- </svg>
- Email</a
- >
- </nobr>
- •
- <nobr>
- <abbr
- class="nowrap"
- title="Hébergeur : Alwaysdata, 62 rue Tiquetonne 75002 Paris, +33184162340"
- ><svg class="icon icon-hammer2">
- <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-hammer2"></use>
- </svg>
- Légal</abbr
- >
- </nobr>
- </p>
- <template id="theme-selector">
- <form>
- <fieldset>
- <legend><svg class="icon icon-brightness-contrast">
- <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-brightness-contrast"></use>
- </svg> Thème</legend>
- <label>
- <input type="radio" value="auto" name="chosen-color-scheme" checked> Auto
- </label>
- <label>
- <input type="radio" value="dark" name="chosen-color-scheme"> Foncé
- </label>
- <label>
- <input type="radio" value="light" name="chosen-color-scheme"> Clair
- </label>
- </fieldset>
- </form>
- </template>
- </footer>
- <script src="/static/david/js/instantpage-5.1.0.min.js" type="module"></script>
- <script>
- function loadThemeForm(templateName) {
- const themeSelectorTemplate = document.querySelector(templateName)
- const form = themeSelectorTemplate.content.firstElementChild
- themeSelectorTemplate.replaceWith(form)
-
- form.addEventListener('change', (e) => {
- const chosenColorScheme = e.target.value
- localStorage.setItem('theme', chosenColorScheme)
- toggleTheme(chosenColorScheme)
- })
-
- const selectedTheme = localStorage.getItem('theme')
- if (selectedTheme && selectedTheme !== 'undefined') {
- form.querySelector(`[value="${selectedTheme}"]`).checked = true
- }
- }
-
- const prefersColorSchemeDark = '(prefers-color-scheme: dark)'
- window.addEventListener('load', () => {
- let hasDarkRules = false
- for (const styleSheet of Array.from(document.styleSheets)) {
- let mediaRules = []
- for (const cssRule of styleSheet.cssRules) {
- if (cssRule.type !== CSSRule.MEDIA_RULE) {
- continue
- }
- // WARNING: Safari does not have/supports `conditionText`.
- if (cssRule.conditionText) {
- if (cssRule.conditionText !== prefersColorSchemeDark) {
- continue
- }
- } else {
- if (cssRule.cssText.startsWith(prefersColorSchemeDark)) {
- continue
- }
- }
- mediaRules = mediaRules.concat(Array.from(cssRule.cssRules))
- }
-
- // WARNING: do not try to insert a Rule to a styleSheet you are
- // currently iterating on, otherwise the browser will be stuck
- // in a infinite loop…
- for (const mediaRule of mediaRules) {
- styleSheet.insertRule(mediaRule.cssText)
- hasDarkRules = true
- }
- }
- if (hasDarkRules) {
- loadThemeForm('#theme-selector')
- }
- })
- </script>
-
- </body>
- </html>
|