Repository with sources and generator of https://larlet.fr/david/ https://larlet.fr/david/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

index.html 20KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522
  1. <!doctype html><!-- This is a valid HTML5 document. -->
  2. <!-- Screen readers, SEO, extensions and so on. -->
  3. <html lang="fr">
  4. <!-- Has to be within the first 1024 bytes, hence before the `title` element
  5. See: https://www.w3.org/TR/2012/CR-html5-20121217/document-metadata.html#charset -->
  6. <meta charset="utf-8">
  7. <!-- Why no `X-UA-Compatible` meta: https://stackoverflow.com/a/6771584 -->
  8. <!-- The viewport meta is quite crowded and we are responsible for that.
  9. See: https://codepen.io/tigt/post/meta-viewport-for-2015 -->
  10. <meta name="viewport" content="width=device-width,initial-scale=1">
  11. <!-- Required to make a valid HTML5 document. -->
  12. <title>Publications (pres)quotidiennes — David Larlet</title>
  13. <meta name="description" content="Archives 2021 des publications de David Larlet">
  14. <!-- That good ol' feed, subscribe :). -->
  15. <link rel="alternate" type="application/atom+xml" title="Feed" href="/david/log/">
  16. <!-- Generated from https://realfavicongenerator.net/ such a mess. -->
  17. <link rel="apple-touch-icon" sizes="180x180" href="/static/david/icons2/apple-touch-icon.png">
  18. <link rel="icon" type="image/png" sizes="32x32" href="/static/david/icons2/favicon-32x32.png">
  19. <link rel="icon" type="image/png" sizes="16x16" href="/static/david/icons2/favicon-16x16.png">
  20. <link rel="manifest" href="/static/david/icons2/site.webmanifest">
  21. <link rel="mask-icon" href="/static/david/icons2/safari-pinned-tab.svg" color="#07486c">
  22. <link rel="shortcut icon" href="/static/david/icons2/favicon.ico">
  23. <meta name="msapplication-TileColor" content="#f0f0ea">
  24. <meta name="msapplication-config" content="/static/david/icons2/browserconfig.xml">
  25. <meta name="theme-color" content="#f0f0ea">
  26. <!-- Documented, feel free to shoot an email. -->
  27. <link rel="stylesheet" href="/static/david/css/style_2021-01-20.css">
  28. <!-- See https://www.zachleat.com/web/comprehensive-webfonts/ for the trade-off. -->
  29. <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>
  30. <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>
  31. <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>
  32. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_regular.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  33. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_bold.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  34. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_italic.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  35. <script>
  36. function toggleTheme(themeName) {
  37. document.documentElement.classList.toggle(
  38. 'forced-dark',
  39. themeName === 'dark'
  40. )
  41. document.documentElement.classList.toggle(
  42. 'forced-light',
  43. themeName === 'light'
  44. )
  45. }
  46. const selectedTheme = localStorage.getItem('theme')
  47. if (selectedTheme !== 'undefined') {
  48. toggleTheme(selectedTheme)
  49. }
  50. </script>
  51. <body class="remarkdown h1-underline h2-underline h3-underline em-underscore hr-center ul-star pre-tick" data-instant-intensity="viewport-all">
  52. <header>
  53. <h1>Publications (pres)quotidiennes</h1>
  54. </header>
  55. <nav>
  56. <p class="center">
  57. <a href="/david/" title="Aller à l’accueil"><svg class="icon icon-home">
  58. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-home"></use>
  59. </svg> Accueil</a>
  60. </p>
  61. </nav>
  62. <hr>
  63. <main>
  64. <p>Liste des publications en ordre chronologique :</p>
  65. <h2><a href="/david/2021/01/01/">PresQuotidien</a> (2021-01-01)</h2>
  66. <h2><a href="/david/2021/01/02/">Gentrification climatique</a> (2021-01-02)</h2>
  67. <h2><a href="/david/2021/01/03/">Vaccina(c)tion</a> (2021-01-03)</h2>
  68. <h2><a href="/david/2021/01/04/">Webing-lists</a> (2021-01-04)</h2>
  69. <h2><a href="/david/2021/01/05/">Statu quo</a> (2021-01-05)</h2>
  70. <h2><a href="/david/2021/01/06/">Clown d’État</a> (2021-01-06)</h2>
  71. <h2><a href="/david/2021/01/07/">Blancheur</a> (2021-01-07)</h2>
  72. <h2><a href="/david/2021/01/08/">Holisme écologique</a> (2021-01-08)</h2>
  73. <h2><a href="/david/2021/01/09/">Science-F(r)iction</a> (2021-01-09)</h2>
  74. <h2><a href="/david/2021/01/10/">Biologeek</a> (2021-01-10)</h2>
  75. <h2><a href="/david/2021/01/11/">Marche ou trêve</a> (2021-01-11)</h2>
  76. <h2><a href="/david/2021/01/13/">Long terme</a> (2021-01-13)</h2>
  77. <h2><a href="/david/2021/01/14/">Parler</a> (2021-01-14)</h2>
  78. <h2><a href="/david/2021/01/15/">Artfevre</a> (2021-01-15)</h2>
  79. <h2><a href="/david/2021/01/16/">Bouc émissaire</a> (2021-01-16)</h2>
  80. <h2><a href="/david/2021/01/17/">Finesse</a> (2021-01-17)</h2>
  81. <h2><a href="/david/2021/01/18/">Textcasts</a> (2021-01-18)</h2>
  82. <h2><a href="/david/2021/01/19/">Chaîne de capture</a> (2021-01-19)</h2>
  83. <h2><a href="/david/2021/01/20/">Adaptation</a> (2021-01-20)</h2>
  84. <h2><a href="/david/2021/01/21/">Questionnements</a> (2021-01-21)</h2>
  85. <h2><a href="/david/2021/01/22/">Tentation</a> (2021-01-22)</h2>
  86. <h2><a href="/david/2021/01/23/">Gratitude</a> (2021-01-23)</h2>
  87. <h2><a href="/david/2021/01/24/">Négativité</a> (2021-01-24)</h2>
  88. <h2><a href="/david/2021/01/25/">Valeurs</a> (2021-01-25)</h2>
  89. <h2><a href="/david/2021/01/26/">Conférences</a> (2021-01-26)</h2>
  90. <h2><a href="/david/2021/01/27/">Choix</a> (2021-01-27)</h2>
  91. <h2><a href="/david/2021/01/29/">Routine</a> (2021-01-29)</h2>
  92. <h2><a href="/david/2021/01/30/">Recommandations</a> (2021-01-30)</h2>
  93. <h2><a href="/david/2021/01/31/">Meta</a> (2021-01-31)</h2>
  94. <h2><a href="/david/2021/02/01/">Software</a> (2021-02-01)</h2>
  95. <h2><a href="/david/2021/02/02/">Complexité</a> (2021-02-02)</h2>
  96. <h2><a href="/david/2021/02/03/">Consentement</a> (2021-02-03)</h2>
  97. <h2><a href="/david/2021/02/04/">Chance</a> (2021-02-04)</h2>
  98. <h2><a href="/david/2021/02/05/">Réparation</a> (2021-02-05)</h2>
  99. <h2><a href="/david/2021/02/06/">Dystopie</a> (2021-02-06)</h2>
  100. <h2><a href="/david/2021/02/07/">Ostentatoire</a> (2021-02-07)</h2>
  101. <h2><a href="/david/2021/02/08/">Niveaux</a> (2021-02-08)</h2>
  102. <h2><a href="/david/2021/02/09/">Calme</a> (2021-02-09)</h2>
  103. <h2><a href="/david/2021/02/10/">Retraite</a> (2021-02-10)</h2>
  104. <h2><a href="/david/2021/02/11/">Nucléaire</a> (2021-02-11)</h2>
  105. <h2><a href="/david/2021/02/12/">Beauté</a> (2021-02-12)</h2>
  106. <h2><a href="/david/2021/02/14/">Bibliothèque</a> (2021-02-14)</h2>
  107. <h2><a href="/david/2021/02/15/">Comptabilité</a> (2021-02-15)</h2>
  108. <h2><a href="/david/2021/02/16/">Éponge</a> (2021-02-16)</h2>
  109. <h2><a href="/david/2021/02/18/">Castors</a> (2021-02-18)</h2>
  110. <h2><a href="/david/2021/02/19/">Optimisation</a> (2021-02-19)</h2>
  111. <h2><a href="/david/2021/02/20/">Apaisement</a> (2021-02-20)</h2>
  112. <h2><a href="/david/2021/02/21/">Jour 1</a> (2021-02-21)</h2>
  113. <h2><a href="/david/2021/02/22/">Jour 2</a> (2021-02-22)</h2>
  114. <h2><a href="/david/2021/02/23/">Montage</a> (2021-02-23)</h2>
  115. <h2><a href="/david/2021/02/24/">Précipitation</a> (2021-02-24)</h2>
  116. <h2><a href="/david/2021/02/25/">Stabilisation</a> (2021-02-25)</h2>
  117. <h2><a href="/david/2021/02/26/">Disponibilité</a> (2021-02-26)</h2>
  118. <h2><a href="/david/2021/02/27/">Culpabilité</a> (2021-02-27)</h2>
  119. <h2><a href="/david/2021/02/28/">Constance</a> (2021-02-28)</h2>
  120. <h2><a href="/david/2021/03/01/">Responsabilité</a> (2021-03-01)</h2>
  121. <h2><a href="/david/2021/03/02/">Dépression</a> (2021-03-02)</h2>
  122. <h2><a href="/david/2021/03/03/">Vivre avec</a> (2021-03-03)</h2>
  123. <h2><a href="/david/2021/03/04/">HTML-over-WebSockets</a> (2021-03-04)</h2>
  124. <h2><a href="/david/2021/03/05/">Grand Nord</a> (2021-03-05)</h2>
  125. <h2><a href="/david/2021/03/06/">Pistage</a> (2021-03-06)</h2>
  126. <h2><a href="/david/2021/03/07/">@World</a> (2021-03-07)</h2>
  127. <h2><a href="/david/2021/03/08/">Vie</a> (2021-03-08)</h2>
  128. <h2><a href="/david/2021/03/09/">Fun</a> (2021-03-09)</h2>
  129. <h2><a href="/david/2021/03/11/">Héros</a> (2021-03-11)</h2>
  130. <h2><a href="/david/2021/03/12/">Forêt</a> (2021-03-12)</h2>
  131. <h2><a href="/david/2021/03/13/">In·dépendance</a> (2021-03-13)</h2>
  132. <h2><a href="/david/2021/03/14/">Impôts</a> (2021-03-14)</h2>
  133. <h2><a href="/david/2021/03/15/">Partage</a> (2021-03-15)</h2>
  134. <h2><a href="/david/2021/03/16/">Confort</a> (2021-03-16)</h2>
  135. <h2><a href="/david/2021/03/17/">Arrivant·es</a> (2021-03-17)</h2>
  136. <h2><a href="/david/2021/03/18/">Fatigue</a> (2021-03-18)</h2>
  137. <h2><a href="/david/2021/03/19/">Support</a> (2021-03-19)</h2>
  138. <h2><a href="/david/2021/03/20/">Manuel</a> (2021-03-20)</h2>
  139. <h2><a href="/david/2021/03/21/">Gimbal</a> (2021-03-21)</h2>
  140. <h2><a href="/david/2021/03/22/">JavaScript-less</a> (2021-03-22)</h2>
  141. <h2><a href="/david/2021/03/23/">Recrutement</a> (2021-03-23)</h2>
  142. <h2><a href="/david/2021/03/24/">Rareté</a> (2021-03-24)</h2>
  143. <h2><a href="/david/2021/03/25/">Sponsor</a> (2021-03-25)</h2>
  144. <h2><a href="/david/2021/03/26/">Stimulant</a> (2021-03-26)</h2>
  145. <h2><a href="/david/2021/03/27/">Immersion</a> (2021-03-27)</h2>
  146. <h2><a href="/david/2021/03/28/">Smolstack</a> (2021-03-28)</h2>
  147. <h2><a href="/david/2021/03/29/">Évaluation</a> (2021-03-29)</h2>
  148. <h2><a href="/david/2021/03/30/">Timelapse</a> (2021-03-30)</h2>
  149. <h2><a href="/david/2021/03/31/">Formes</a> (2021-03-31)</h2>
  150. <h2><a href="/david/2021/04/03/">Bernaches</a> (2021-04-03)</h2>
  151. <h2><a href="/david/2021/04/04/">Échappatoire</a> (2021-04-04)</h2>
  152. <h2><a href="/david/2021/04/05/">Honte</a> (2021-04-05)</h2>
  153. <h2><a href="/david/2021/04/06/">Antilivre</a> (2021-04-06)</h2>
  154. <h2><a href="/david/2021/04/08/">NetNewsWire</a> (2021-04-08)</h2>
  155. <h2><a href="/david/2021/04/09/">Maximiser</a> (2021-04-09)</h2>
  156. <h2><a href="/david/2021/04/10/">Autrement</a> (2021-04-10)</h2>
  157. <h2><a href="/david/2021/04/11/">Apocalypse</a> (2021-04-11)</h2>
  158. <h2><a href="/david/2021/04/12/">Alcool</a> (2021-04-12)</h2>
  159. <h2><a href="/david/2021/04/13/">Nonnes</a> (2021-04-13)</h2>
  160. <h2><a href="/david/2021/04/14/">Trending</a> (2021-04-14)</h2>
  161. <h2><a href="/david/2021/04/15/">Dark mode</a> (2021-04-15)</h2>
  162. <h2><a href="/david/2021/04/16/">Jour 1</a> (2021-04-16)</h2>
  163. <h2><a href="/david/2021/04/17/">Jour 2</a> (2021-04-17)</h2>
  164. <h2><a href="/david/2021/04/18/">Jour 3</a> (2021-04-18)</h2>
  165. <h2><a href="/david/2021/04/19/">Conversions</a> (2021-04-19)</h2>
  166. <h2><a href="/david/2021/04/20/">Remote</a> (2021-04-20)</h2>
  167. <h2><a href="/david/2021/04/21/">Montage</a> (2021-04-21)</h2>
  168. <h2><a href="/david/2021/04/22/">Vacances</a> (2021-04-22)</h2>
  169. <h2><a href="/david/2021/04/23/">Contemplation</a> (2021-04-23)</h2>
  170. <h2><a href="/david/2021/04/24/">Répartie</a> (2021-04-24)</h2>
  171. <h2><a href="/david/2021/04/25/">Complot</a> (2021-04-25)</h2>
  172. <h2><a href="/david/2021/04/26/">Mourir</a> (2021-04-26)</h2>
  173. <h2><a href="/david/2021/04/27/">Cheminement</a> (2021-04-27)</h2>
  174. <h2><a href="/david/2021/04/28/">Politique</a> (2021-04-28)</h2>
  175. <h2><a href="/david/2021/04/29/">Coût</a> (2021-04-29)</h2>
  176. <h2><a href="/david/2021/04/30/">Produit</a> (2021-04-30)</h2>
  177. <h2><a href="/david/2021/05/03/">Pop culture</a> (2021-05-03)</h2>
  178. <h2><a href="/david/2021/05/04/">Touriste</a> (2021-05-04)</h2>
  179. <h2><a href="/david/2021/05/05/">Accessibilité</a> (2021-05-05)</h2>
  180. <h2><a href="/david/2021/05/06/">Jour 1</a> (2021-05-06)</h2>
  181. <h2><a href="/david/2021/05/07/">Jour 2</a> (2021-05-07)</h2>
  182. <h2><a href="/david/2021/05/08/">Étoiles</a> (2021-05-08)</h2>
  183. <h2><a href="/david/2021/05/09/">Reflets</a> (2021-05-09)</h2>
  184. <h2><a href="/david/2021/05/10/">Résilience</a> (2021-05-10)</h2>
  185. <h2><a href="/david/2021/05/11/">Paradigme</a> (2021-05-11)</h2>
  186. <h2><a href="/david/2021/05/12/">Propriétaires</a> (2021-05-12)</h2>
  187. <h2><a href="/david/2021/05/13/">Obsolescence chiffrée</a> (2021-05-13)</h2>
  188. <h2><a href="/david/2021/05/14/">Jour 1</a> (2021-05-14)</h2>
  189. <h2><a href="/david/2021/05/15/">Inquiétude</a> (2021-05-15)</h2>
  190. <h2><a href="/david/2021/05/16/">Aération</a> (2021-05-16)</h2>
  191. <h2><a href="/david/2021/05/17/">Empreinte</a> (2021-05-17)</h2>
  192. <h2><a href="/david/2021/05/18/">Immunité</a> (2021-05-18)</h2>
  193. <h2><a href="/david/2021/05/19/">Regroupement</a> (2021-05-19)</h2>
  194. <h2><a href="/david/2021/05/20/">Carbone &amp; Silicium</a> (2021-05-20)</h2>
  195. <h2><a href="/david/2021/05/21/">Voiture espion</a> (2021-05-21)</h2>
  196. <h2><a href="/david/2021/05/22/">Fardeau</a> (2021-05-22)</h2>
  197. <h2><a href="/david/2021/05/23/">Homophobie</a> (2021-05-23)</h2>
  198. <h2><a href="/david/2021/05/24/">Dose 1</a> (2021-05-24)</h2>
  199. <h2><a href="/david/2021/05/25/">Mérite</a> (2021-05-25)</h2>
  200. <h2><a href="/david/2021/05/26/">Follow</a> (2021-05-26)</h2>
  201. <h2><a href="/david/2021/05/27/">Craftsman</a> (2021-05-27)</h2>
  202. <h2><a href="/david/2021/05/28/">Curriculum chain</a> (2021-05-28)</h2>
  203. <h2><a href="/david/2021/05/30/">Infanticide</a> (2021-05-30)</h2>
  204. <h2><a href="/david/2021/05/31/">Design accessible</a> (2021-05-31)</h2>
  205. <h2><a href="/david/2021/06/01/">Pédagogie</a> (2021-06-01)</h2>
  206. <h2><a href="/david/2021/06/02/">Percolation</a> (2021-06-02)</h2>
  207. <h2><a href="/david/2021/06/03/">Flux lisibles</a> (2021-06-03)</h2>
  208. <h2><a href="/david/2021/06/04/">Lâche(r-prise)</a> (2021-06-04)</h2>
  209. <h2><a href="/david/2021/06/05/">Incarnation</a> (2021-06-05)</h2>
  210. <h2><a href="/david/2021/06/06/">Abonnement</a> (2021-06-06)</h2>
  211. <h2><a href="/david/2021/06/07/">Anxiété</a> (2021-06-07)</h2>
  212. <h2><a href="/david/2021/06/08/">Sens</a> (2021-06-08)</h2>
  213. <h2><a href="/david/2021/06/09/">Parenthèse</a> (2021-06-09)</h2>
  214. <h2><a href="/david/2021/06/10/">Co-écriture</a> (2021-06-10)</h2>
  215. <h2><a href="/david/2021/06/11/">Anti</a> (2021-06-11)</h2>
  216. <h2><a href="/david/2021/06/12/">Masque</a> (2021-06-12)</h2>
  217. <h2><a href="/david/2021/06/13/">Constructivisme</a> (2021-06-13)</h2>
  218. <h2><a href="/david/2021/06/14/">Manquer</a> (2021-06-14)</h2>
  219. <h2><a href="/david/2021/06/15/">Avihonte</a> (2021-06-15)</h2>
  220. <h2><a href="/david/2021/06/16/">Trans</a> (2021-06-16)</h2>
  221. <h2><a href="/david/2021/06/17/">API statique</a> (2021-06-17)</h2>
  222. <h2><a href="/david/2021/06/18/">Inutile</a> (2021-06-18)</h2>
  223. <h2><a href="/david/2021/06/19/">Échecs</a> (2021-06-19)</h2>
  224. <h2><a href="/david/2021/06/20/">Contribution</a> (2021-06-20)</h2>
  225. <h2><a href="/david/2021/06/21/">Voûte</a> (2021-06-21)</h2>
  226. <h2><a href="/david/2021/06/22/">Argent</a> (2021-06-22)</h2>
  227. <h2><a href="/david/2021/06/23/">FullStack</a> (2021-06-23)</h2>
  228. <h2><a href="/david/2021/06/24/">Long terme</a> (2021-06-24)</h2>
  229. <h2><a href="/david/2021/06/25/">Données</a> (2021-06-25)</h2>
  230. <h2><a href="/david/2021/06/26/">Hybris</a> (2021-06-26)</h2>
  231. <h2><a href="/david/2021/06/27/">Sécheresse</a> (2021-06-27)</h2>
  232. <h2><a href="/david/2021/06/28/">Bin-hômme</a> (2021-06-28)</h2>
  233. <h2><a href="/david/2021/06/29/">OK</a> (2021-06-29)</h2>
  234. <h2><a href="/david/2021/06/30/">Six mois</a> (2021-06-30)</h2>
  235. <h2><a href="/david/2021/07/01/">Connexionisme</a> (2021-07-01)</h2>
  236. <h2><a href="/david/2021/07/02/">Parisianisme</a> (2021-07-02)</h2>
  237. <h2><a href="/david/2021/07/03/">Orthographisme</a> (2021-07-03)</h2>
  238. <h2><a href="/david/2021/07/05/">Ano(r)malisme</a> (2021-07-05)</h2>
  239. <h2><a href="/david/2021/07/06/">Bloguisme</a> (2021-07-06)</h2>
  240. <h2><a href="/david/2021/07/08/">Copilot</a> (2021-07-08)</h2>
  241. <h2><a href="/david/2021/07/09/">Balle</a> (2021-07-09)</h2>
  242. <h2><a href="/david/2021/07/10/">Eau virtuelle</a> (2021-07-10)</h2>
  243. </main>
  244. <hr>
  245. <footer>
  246. <p>
  247. <a href="/david/" title="Aller à l’accueil"><svg class="icon icon-home">
  248. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-home"></use>
  249. </svg> Accueil</a> •
  250. <a href="/david/log/" title="Accès au flux RSS"><svg class="icon icon-rss2">
  251. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-rss2"></use>
  252. </svg> Suivre</a> •
  253. <a href="http://larlet.com" title="Go to my English profile" data-instant><svg class="icon icon-user-tie">
  254. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-user-tie"></use>
  255. </svg> Pro</a> •
  256. <a href="mailto:david%40larlet.fr" title="Envoyer un courriel"><svg class="icon icon-mail">
  257. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-mail"></use>
  258. </svg> Email</a> •
  259. <abbr class="nowrap" title="Hébergeur : Alwaysdata, 62 rue Tiquetonne 75002 Paris, +33184162340"><svg class="icon icon-hammer2">
  260. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-hammer2"></use>
  261. </svg> Légal</abbr>
  262. </p>
  263. <template id="theme-selector">
  264. <form>
  265. <fieldset>
  266. <legend><svg class="icon icon-brightness-contrast">
  267. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-brightness-contrast"></use>
  268. </svg> Thème</legend>
  269. <label>
  270. <input type="radio" value="auto" name="chosen-color-scheme" checked> Auto
  271. </label>
  272. <label>
  273. <input type="radio" value="dark" name="chosen-color-scheme"> Foncé
  274. </label>
  275. <label>
  276. <input type="radio" value="light" name="chosen-color-scheme"> Clair
  277. </label>
  278. </fieldset>
  279. </form>
  280. </template>
  281. </footer>
  282. <script src="/static/david/js/instantpage-5.1.0.min.js" type="module"></script>
  283. <script>
  284. function loadThemeForm(templateName) {
  285. const themeSelectorTemplate = document.querySelector(templateName)
  286. const form = themeSelectorTemplate.content.firstElementChild
  287. themeSelectorTemplate.replaceWith(form)
  288. form.addEventListener('change', (e) => {
  289. const chosenColorScheme = e.target.value
  290. localStorage.setItem('theme', chosenColorScheme)
  291. toggleTheme(chosenColorScheme)
  292. })
  293. const selectedTheme = localStorage.getItem('theme')
  294. if (selectedTheme && selectedTheme !== 'undefined') {
  295. form.querySelector(`[value="${selectedTheme}"]`).checked = true
  296. }
  297. }
  298. const prefersColorSchemeDark = '(prefers-color-scheme: dark)'
  299. window.addEventListener('load', () => {
  300. let hasDarkRules = false
  301. for (const styleSheet of Array.from(document.styleSheets)) {
  302. let mediaRules = []
  303. for (const cssRule of styleSheet.cssRules) {
  304. if (cssRule.type !== CSSRule.MEDIA_RULE) {
  305. continue
  306. }
  307. // WARNING: Safari does not have/supports `conditionText`.
  308. if (cssRule.conditionText) {
  309. if (cssRule.conditionText !== prefersColorSchemeDark) {
  310. continue
  311. }
  312. } else {
  313. if (cssRule.cssText.startsWith(prefersColorSchemeDark)) {
  314. continue
  315. }
  316. }
  317. mediaRules = mediaRules.concat(Array.from(cssRule.cssRules))
  318. }
  319. // WARNING: do not try to insert a Rule to a styleSheet you are
  320. // currently iterating on, otherwise the browser will be stuck
  321. // in a infinite loop…
  322. for (const mediaRule of mediaRules) {
  323. styleSheet.insertRule(mediaRule.cssText)
  324. hasDarkRules = true
  325. }
  326. }
  327. if (hasDarkRules) {
  328. loadThemeForm('#theme-selector')
  329. }
  330. })
  331. </script>
  332. </body>
  333. </html>