Repository with sources and generator of https://larlet.fr/david/ https://larlet.fr/david/
Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

index.html 21KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487
  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>Accueil — David Larlet</title>
  13. <meta name="description" content="Voici l’espace personnel de David Larlet sur le Web.">
  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="#f7f7f7">
  24. <meta name="msapplication-config" content="/static/david/icons2/browserconfig.xml">
  25. <meta name="theme-color" content="#f7f7f7" media="(prefers-color-scheme: light)">
  26. <meta name="theme-color" content="#272727" media="(prefers-color-scheme: dark)">
  27. <!-- Documented, feel free to shoot an email. -->
  28. <link rel="stylesheet" href="/static/david/css/style_2021-01-20.css">
  29. <!-- See https://www.zachleat.com/web/comprehensive-webfonts/ for the trade-off. -->
  30. <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>
  31. <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>
  32. <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>
  33. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_regular.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  34. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_bold.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  35. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_italic.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  36. <script>
  37. function toggleTheme(themeName) {
  38. document.documentElement.classList.toggle(
  39. 'forced-dark',
  40. themeName === 'dark'
  41. )
  42. document.documentElement.classList.toggle(
  43. 'forced-light',
  44. themeName === 'light'
  45. )
  46. }
  47. const selectedTheme = localStorage.getItem('theme')
  48. if (selectedTheme !== 'undefined') {
  49. toggleTheme(selectedTheme)
  50. }
  51. </script>
  52. <body class="remarkdown h1-underline h2-underline h3-underline em-underscore hr-center ul-star pre-tick" data-instant-intensity="viewport-all">
  53. <article>
  54. <header>
  55. <h1>Bienvenue</h1>
  56. </header>
  57. <p>
  58. Voici l’espace personnel de David Larlet sur le Web.
  59. Il se veut modeste, accueillant et pérenne.
  60. Il fixe mes pensées et parfois engage des échanges.
  61. J’essaye de tenir et lier des propos bienveillants.
  62. Je vous souhaite une jolie promenade.
  63. </p>
  64. <p lang="en">
  65. For an English profile, check out
  66. <a href="http://larlet.com" data-instant>this page 🇨🇦</a>.
  67. </p>
  68. <h2>Publications récentes</h2>
  69. <nav>
  70. <h3>Août 2021</h3>
  71. <p>
  72. <a href="/david/2021/08/08/">Vacance</a>,
  73. <a href="/david/2021/08/09/">Support</a>,
  74. <a href="/david/2021/08/10/">HTTPSadness</a>,
  75. <a href="/david/2021/08/11/">Pré-requis</a>,
  76. <a href="/david/2021/08/12/">Musique</a>,
  77. <a href="/david/2021/08/13/">Tests payants</a>.
  78. </p>
  79. <h3>Juillet 2021</h3>
  80. <p>
  81. <a href="/david/2021/07/01/">Connexionisme</a>,
  82. <a href="/david/2021/07/02/">Parisianisme</a>,
  83. <a href="/david/2021/07/03/">Orthographisme</a>,
  84. <a href="/david/2021/07/05/">Ano(r)malisme</a>,
  85. <a href="/david/2021/07/06/">Bloguisme</a>,
  86. <a href="/david/2021/07/08/">Copilot</a>,
  87. <a href="/david/2021/07/09/">Balle</a>,
  88. <a href="/david/2021/07/10/">Eau virtuelle</a>,
  89. <a href="/david/2021/07/11/">Lebensraum</a>,
  90. <a href="/david/2021/07/12/">Blame</a>,
  91. <a href="/david/2021/07/13/">ActivityStreams</a>,
  92. <a href="/david/2021/07/14/">Livre ouvert</a>,
  93. <a href="/david/2021/07/15/">Nocturne</a>,
  94. <a href="/david/2021/07/16/">Char</a>,
  95. <a href="/david/2021/07/17/">Long terme</a>,
  96. <a href="/david/2021/07/18/">Sachance</a>,
  97. <a href="/david/2021/07/19/">Jour 1</a>,
  98. <a href="/david/2021/07/20/">Jour 2</a>,
  99. <a href="/david/2021/07/21/">Espoir</a>,
  100. <a href="/david/2021/07/22/">Vol d’eau</a>,
  101. <a href="/david/2021/07/23/">Ozone</a>,
  102. <a href="/david/2021/07/25/">Dé·mont(r)age</a>,
  103. <a href="/david/2021/07/26/">Dose 2</a>,
  104. <a href="/david/2021/07/27/">Évasion</a>,
  105. <a href="/david/2021/07/28/">CarbEAUne</a>,
  106. <a href="/david/2021/07/29/">Mobilaine</a>,
  107. <a href="/david/2021/07/30/">Poignée</a>.
  108. </p>
  109. <h3>Juin 2021</h3>
  110. <p>
  111. <a href="/david/2021/06/01/">Pédagogie</a>,
  112. <a href="/david/2021/06/02/">Percolation</a>,
  113. <a href="/david/2021/06/03/">Flux lisibles</a>,
  114. <a href="/david/2021/06/04/">Lâche(r-prise)</a>,
  115. <a href="/david/2021/06/05/">Incarnation</a>,
  116. <a href="/david/2021/06/06/">Abonnement</a>,
  117. <a href="/david/2021/06/07/">Anxiété</a>,
  118. <a href="/david/2021/06/08/">Sens</a>,
  119. <a href="/david/2021/06/09/">Parenthèse</a>,
  120. <a href="/david/2021/06/10/">Co-écriture</a>,
  121. <a href="/david/2021/06/11/">Anti</a>,
  122. <a href="/david/2021/06/12/">Masque</a>,
  123. <a href="/david/2021/06/13/">Constructivisme</a>,
  124. <a href="/david/2021/06/14/">Manquer</a>,
  125. <a href="/david/2021/06/15/">Avihonte</a>,
  126. <a href="/david/2021/06/16/">Trans</a>,
  127. <a href="/david/2021/06/17/">API statique</a>,
  128. <a href="/david/2021/06/18/">Inutile</a>,
  129. <a href="/david/2021/06/19/">Échecs</a>,
  130. <a href="/david/2021/06/20/">Contribution</a>,
  131. <a href="/david/2021/06/21/">Voûte</a>,
  132. <a href="/david/2021/06/22/">Argent</a>,
  133. <a href="/david/2021/06/23/">FullStack</a>,
  134. <a href="/david/2021/06/24/">Long terme</a>,
  135. <a href="/david/2021/06/25/">Données</a>,
  136. <a href="/david/2021/06/26/">Hybris</a>,
  137. <a href="/david/2021/06/27/">Sécheresse</a>,
  138. <a href="/david/2021/06/28/">Bin-hômme</a>,
  139. <a href="/david/2021/06/29/">OK</a>,
  140. <a href="/david/2021/06/30/">Six mois</a>.
  141. </p>
  142. <h3>Mai 2021</h3>
  143. <p>
  144. <a href="/david/2021/05/03/">Pop culture</a>,
  145. <a href="/david/2021/05/04/">Touriste</a>,
  146. <a href="/david/2021/05/05/">Accessibilité</a>,
  147. <a href="/david/2021/05/06/">Jour 1</a>,
  148. <a href="/david/2021/05/07/">Jour 2</a>,
  149. <a href="/david/2021/05/08/">Étoiles</a>,
  150. <a href="/david/2021/05/09/">Reflets</a>,
  151. <a href="/david/2021/05/10/">Résilience</a>,
  152. <a href="/david/2021/05/11/">Paradigme</a>,
  153. <a href="/david/2021/05/12/">Propriétaires</a>,
  154. <a href="/david/2021/05/13/">Obsolescence chiffrée</a>,
  155. <a href="/david/2021/05/14/">Jour 1</a>,
  156. <a href="/david/2021/05/15/">Inquiétude</a>,
  157. <a href="/david/2021/05/16/">Aération</a>,
  158. <a href="/david/2021/05/17/">Empreinte</a>,
  159. <a href="/david/2021/05/18/">Immunité</a>,
  160. <a href="/david/2021/05/19/">Regroupement</a>,
  161. <a href="/david/2021/05/20/">Carbone &amp; Silicium</a>,
  162. <a href="/david/2021/05/21/">Voiture espion</a>,
  163. <a href="/david/2021/05/22/">Fardeau</a>,
  164. <a href="/david/2021/05/23/">Homophobie</a>,
  165. <a href="/david/2021/05/24/">Dose 1</a>,
  166. <a href="/david/2021/05/25/">Mérite</a>,
  167. <a href="/david/2021/05/26/">Follow</a>,
  168. <a href="/david/2021/05/27/">Craftsman</a>,
  169. <a href="/david/2021/05/28/">Curriculum chain</a>,
  170. <a href="/david/2021/05/30/">Infanticide</a>,
  171. <a href="/david/2021/05/31/">Design accessible</a>.
  172. </p>
  173. <h3>Avril 2021</h3>
  174. <p>
  175. <a href="/david/2021/04/03/">Bernaches</a>,
  176. <a href="/david/2021/04/04/">Échappatoire</a>,
  177. <a href="/david/2021/04/05/">Honte</a>,
  178. <a href="/david/2021/04/06/">Antilivre</a>,
  179. <a href="/david/2021/04/08/">NetNewsWire</a>,
  180. <a href="/david/2021/04/09/">Maximiser</a>,
  181. <a href="/david/2021/04/10/">Autrement</a>,
  182. <a href="/david/2021/04/11/">Apocalypse</a>,
  183. <a href="/david/2021/04/12/">Alcool</a>,
  184. <a href="/david/2021/04/13/">Nonnes</a>,
  185. <a href="/david/2021/04/14/">Trending</a>,
  186. <a href="/david/2021/04/15/">Dark mode</a>,
  187. <a href="/david/2021/04/16/">Jour 1</a>,
  188. <a href="/david/2021/04/17/">Jour 2</a>,
  189. <a href="/david/2021/04/18/">Jour 3</a>,
  190. <a href="/david/2021/04/19/">Conversions</a>,
  191. <a href="/david/2021/04/20/">Remote</a>,
  192. <a href="/david/2021/04/21/">Montage</a>,
  193. <a href="/david/2021/04/22/">Vacances</a>,
  194. <a href="/david/2021/04/23/">Contemplation</a>,
  195. <a href="/david/2021/04/24/">Répartie</a>,
  196. <a href="/david/2021/04/25/">Complot</a>,
  197. <a href="/david/2021/04/26/">Mourir</a>,
  198. <a href="/david/2021/04/27/">Cheminement</a>,
  199. <a href="/david/2021/04/28/">Politique</a>,
  200. <a href="/david/2021/04/29/">Coût</a>,
  201. <a href="/david/2021/04/30/">Produit</a>.
  202. </p>
  203. <h3>Mars 2021</h3>
  204. <p>
  205. <a href="/david/2021/03/01/">Responsabilité</a>,
  206. <a href="/david/2021/03/02/">Dépression</a>,
  207. <a href="/david/2021/03/03/">Vivre avec</a>,
  208. <a href="/david/2021/03/04/">HTML-over-WebSockets</a>,
  209. <a href="/david/2021/03/05/">Grand Nord</a>,
  210. <a href="/david/2021/03/06/">Pistage</a>,
  211. <a href="/david/2021/03/07/">@World</a>,
  212. <a href="/david/2021/03/08/">Vie</a>,
  213. <a href="/david/2021/03/09/">Fun</a>,
  214. <a href="/david/2021/03/11/">Héros</a>,
  215. <a href="/david/2021/03/12/">Forêt</a>,
  216. <a href="/david/2021/03/13/">In·dépendance</a>,
  217. <a href="/david/2021/03/14/">Impôts</a>,
  218. <a href="/david/2021/03/15/">Partage</a>,
  219. <a href="/david/2021/03/16/">Confort</a>,
  220. <a href="/david/2021/03/17/">Arrivant·es</a>,
  221. <a href="/david/2021/03/18/">Fatigue</a>,
  222. <a href="/david/2021/03/19/">Support</a>,
  223. <a href="/david/2021/03/20/">Manuel</a>,
  224. <a href="/david/2021/03/21/">Gimbal</a>,
  225. <a href="/david/2021/03/22/">JavaScript-less</a>,
  226. <a href="/david/2021/03/23/">Recrutement</a>,
  227. <a href="/david/2021/03/24/">Rareté</a>,
  228. <a href="/david/2021/03/25/">Sponsor</a>,
  229. <a href="/david/2021/03/26/">Stimulant</a>,
  230. <a href="/david/2021/03/27/">Immersion</a>,
  231. <a href="/david/2021/03/28/">Smolstack</a>,
  232. <a href="/david/2021/03/29/">Évaluation</a>,
  233. <a href="/david/2021/03/30/">Timelapse</a>,
  234. <a href="/david/2021/03/31/">Formes</a>.
  235. </p>
  236. <h3>Février 2021</h3>
  237. <p>
  238. <a href="/david/2021/02/01/">Software</a>,
  239. <a href="/david/2021/02/02/">Complexité</a>,
  240. <a href="/david/2021/02/03/">Consentement</a>,
  241. <a href="/david/2021/02/04/">Chance</a>,
  242. <a href="/david/2021/02/05/">Réparation</a>,
  243. <a href="/david/2021/02/06/">Dystopie</a>,
  244. <a href="/david/2021/02/07/">Ostentatoire</a>,
  245. <a href="/david/2021/02/08/">Niveaux</a>,
  246. <a href="/david/2021/02/09/">Calme</a>,
  247. <a href="/david/2021/02/10/">Retraite</a>,
  248. <a href="/david/2021/02/11/">Nucléaire</a>,
  249. <a href="/david/2021/02/12/">Beauté</a>,
  250. <a href="/david/2021/02/14/">Bibliothèque</a>,
  251. <a href="/david/2021/02/15/">Comptabilité</a>,
  252. <a href="/david/2021/02/16/">Éponge</a>,
  253. <a href="/david/2021/02/18/">Castors</a>,
  254. <a href="/david/2021/02/19/">Optimisation</a>,
  255. <a href="/david/2021/02/20/">Apaisement</a>,
  256. <a href="/david/2021/02/21/">Jour 1</a>,
  257. <a href="/david/2021/02/22/">Jour 2</a>,
  258. <a href="/david/2021/02/23/">Montage</a>,
  259. <a href="/david/2021/02/24/">Précipitation</a>,
  260. <a href="/david/2021/02/25/">Stabilisation</a>,
  261. <a href="/david/2021/02/26/">Disponibilité</a>,
  262. <a href="/david/2021/02/27/">Culpabilité</a>,
  263. <a href="/david/2021/02/28/">Constance</a>.
  264. </p>
  265. <h3>Janvier 2021</h3>
  266. <p>
  267. <a href="/david/2021/01/01/">PresQuotidien</a>,
  268. <a href="/david/2021/01/02/">Gentrification climatique</a>,
  269. <a href="/david/2021/01/03/">Vaccina(c)tion</a>,
  270. <a href="/david/2021/01/04/">Webing-lists</a>,
  271. <a href="/david/2021/01/05/">Statu quo</a>,
  272. <a href="/david/2021/01/06/">Clown d’État</a>,
  273. <a href="/david/2021/01/07/">Blancheur</a>,
  274. <a href="/david/2021/01/08/">Holisme écologique</a>,
  275. <a href="/david/2021/01/09/">Science-F(r)iction</a>,
  276. <a href="/david/2021/01/10/">Biologeek</a>,
  277. <a href="/david/2021/01/11/">Marche ou trêve</a>,
  278. <a href="/david/2021/01/13/">Long terme</a>,
  279. <a href="/david/2021/01/14/">Parler</a>,
  280. <a href="/david/2021/01/15/">Artfevre</a>,
  281. <a href="/david/2021/01/16/">Bouc émissaire</a>,
  282. <a href="/david/2021/01/17/">Finesse</a>,
  283. <a href="/david/2021/01/18/">Textcasts</a>,
  284. <a href="/david/2021/01/19/">Chaîne de capture</a>,
  285. <a href="/david/2021/01/20/">Adaptation</a>,
  286. <a href="/david/2021/01/21/">Questionnements</a>,
  287. <a href="/david/2021/01/22/">Tentation</a>,
  288. <a href="/david/2021/01/23/">Gratitude</a>,
  289. <a href="/david/2021/01/24/">Négativité</a>,
  290. <a href="/david/2021/01/25/">Valeurs</a>,
  291. <a href="/david/2021/01/26/">Conférences</a>,
  292. <a href="/david/2021/01/27/">Choix</a>,
  293. <a href="/david/2021/01/29/">Routine</a>,
  294. <a href="/david/2021/01/30/">Recommandations</a>,
  295. <a href="/david/2021/01/31/">Meta</a>.
  296. </p>
  297. </nav>
  298. <h2>Publications 2020</h2>
  299. <p>Liste des publications en ordre chronologique :</p>
  300. <nav>
  301. <p>
  302. <a href="/david/2020/01/03/">Briques</a>,
  303. <a href="/david/2020/01/06/">Écriture</a>,
  304. <a href="/david/2020/01/10/">Travail</a>,
  305. <a href="/david/2020/01/15/">Futurs</a>,
  306. <a href="/david/2020/01/17/">Datagouv</a>,
  307. <a href="/david/2020/01/22/">Réponses</a>,
  308. <a href="/david/2020/01/29/">Sortie ski</a>,
  309. <a href="/david/2020/01/31/">Intentions</a>,
  310. <a href="/david/2020/02/07/">GAFAM+</a>,
  311. <a href="/david/2020/02/14/">Espoirs</a>,
  312. <a href="/david/2020/02/21/">Service</a>,
  313. <a href="/david/2020/03/13/">Technique</a>,
  314. <a href="/david/2020/03/20/">Rédemption</a>,
  315. <a href="/david/2020/03/27/">Exutoire</a>,
  316. <a href="/david/2020/04/03/">Patience</a>,
  317. <a href="/david/2020/04/10/">Résistance</a>,
  318. <a href="/david/2020/04/18/">Zam</a>,
  319. <a href="/david/2020/05/18/">Relance</a>,
  320. <a href="/david/2020/05/20/">Bikepacking</a>,
  321. <a href="/david/2020/05/26/">Covidoudou</a>,
  322. <a href="/david/2020/06/12/">Vrac</a>,
  323. <a href="/david/2020/06/18/">Mouvements</a>,
  324. <a href="/david/2020/06/25/">Ouvertance</a>,
  325. <a href="/david/2020/07/03/">Confetti</a>,
  326. <a href="/david/2020/07/13/">Bilan</a>,
  327. <a href="/david/2020/08/24/">Personnes</a>,
  328. <a href="/david/2020/09/01/">Rentrée</a>,
  329. <a href="/david/2020/09/07/">Rappels</a>,
  330. <a href="/david/2020/09/16/">Coupable</a>,
  331. <a href="/david/2020/10/08/">Parvenir</a>,
  332. <a href="/david/2020/10/22/">Grand-écart</a>,
  333. <a href="/david/2020/10/28/">Chaos</a>,
  334. <a href="/david/2020/11/27/">Perles</a>,
  335. <a href="/david/2020/12/01/">Compréhension</a>,
  336. <a href="/david/2020/12/13/">Publications</a>,
  337. <a href="/david/2020/12/15/">Vidéos</a>,
  338. <a href="/david/2020/12/18/">Arrakice</a>,
  339. <a href="/david/2020/12/21/">Livres</a>.
  340. </p>
  341. </nav>
  342. <h2>Publications archéologiques</h2>
  343. <p>
  344. Vous pouvez consulter les différents
  345. <a href="/david/blog/">billets de blog</a> qui ont été rédigés de 2004 à 2019
  346. ou les <a href="/david/stream/">entrées de journaux</a> relativement
  347. régulières entre 2009 et 2019.
  348. </p>
  349. <p>
  350. <em>
  351. Notez qu’avec un tel historique, certaines informations sont obsolètes et/ou
  352. plus cautionnées.
  353. </em>
  354. </p>
  355. <h2>Me contacter</h2>
  356. <p>
  357. 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>.
  358. </p>
  359. </article>
  360. <hr>
  361. <footer>
  362. <p>
  363. <a href="/david/" title="Aller à l’accueil"><svg class="icon icon-home">
  364. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-home"></use>
  365. </svg> Accueil</a> •
  366. <a href="/david/log/" title="Accès au flux RSS"><svg class="icon icon-rss2">
  367. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-rss2"></use>
  368. </svg> Suivre</a> •
  369. <a href="http://larlet.com" title="Go to my English profile" data-instant><svg class="icon icon-user-tie">
  370. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-user-tie"></use>
  371. </svg> Pro</a> •
  372. <a href="mailto:david%40larlet.fr" title="Envoyer un courriel"><svg class="icon icon-mail">
  373. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-mail"></use>
  374. </svg> Email</a> •
  375. <abbr class="nowrap" title="Hébergeur : Alwaysdata, 62 rue Tiquetonne 75002 Paris, +33184162340"><svg class="icon icon-hammer2">
  376. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-hammer2"></use>
  377. </svg> Légal</abbr>
  378. </p>
  379. <template id="theme-selector">
  380. <form>
  381. <fieldset>
  382. <legend><svg class="icon icon-brightness-contrast">
  383. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-brightness-contrast"></use>
  384. </svg> Thème</legend>
  385. <label>
  386. <input type="radio" value="auto" name="chosen-color-scheme" checked> Auto
  387. </label>
  388. <label>
  389. <input type="radio" value="dark" name="chosen-color-scheme"> Foncé
  390. </label>
  391. <label>
  392. <input type="radio" value="light" name="chosen-color-scheme"> Clair
  393. </label>
  394. </fieldset>
  395. </form>
  396. </template>
  397. </footer>
  398. <script src="/static/david/js/instantpage-5.1.0.min.js" type="module"></script>
  399. <script>
  400. function loadThemeForm(templateName) {
  401. const themeSelectorTemplate = document.querySelector(templateName)
  402. const form = themeSelectorTemplate.content.firstElementChild
  403. themeSelectorTemplate.replaceWith(form)
  404. form.addEventListener('change', (e) => {
  405. const chosenColorScheme = e.target.value
  406. localStorage.setItem('theme', chosenColorScheme)
  407. toggleTheme(chosenColorScheme)
  408. })
  409. const selectedTheme = localStorage.getItem('theme')
  410. if (selectedTheme && selectedTheme !== 'undefined') {
  411. form.querySelector(`[value="${selectedTheme}"]`).checked = true
  412. }
  413. }
  414. const prefersColorSchemeDark = '(prefers-color-scheme: dark)'
  415. window.addEventListener('load', () => {
  416. let hasDarkRules = false
  417. for (const styleSheet of Array.from(document.styleSheets)) {
  418. let mediaRules = []
  419. for (const cssRule of styleSheet.cssRules) {
  420. if (cssRule.type !== CSSRule.MEDIA_RULE) {
  421. continue
  422. }
  423. // WARNING: Safari does not have/supports `conditionText`.
  424. if (cssRule.conditionText) {
  425. if (cssRule.conditionText !== prefersColorSchemeDark) {
  426. continue
  427. }
  428. } else {
  429. if (cssRule.cssText.startsWith(prefersColorSchemeDark)) {
  430. continue
  431. }
  432. }
  433. mediaRules = mediaRules.concat(Array.from(cssRule.cssRules))
  434. }
  435. // WARNING: do not try to insert a Rule to a styleSheet you are
  436. // currently iterating on, otherwise the browser will be stuck
  437. // in a infinite loop…
  438. for (const mediaRule of mediaRules) {
  439. styleSheet.insertRule(mediaRule.cssText)
  440. hasDarkRules = true
  441. }
  442. }
  443. if (hasDarkRules) {
  444. loadThemeForm('#theme-selector')
  445. }
  446. })
  447. </script>
  448. </body>
  449. </html>