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 18KB

1 year ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
6 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
7 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
8 months ago
1 year ago
1 year ago
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435
  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>
  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="#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. <article>
  53. <header>
  54. <h1>Bienvenue</h1>
  55. </header>
  56. <p>
  57. Voici l’espace personnel de David Larlet sur le Web.
  58. Il se veut modeste, accueillant et pérenne.
  59. Il fixe mes pensées et parfois engage des échanges.
  60. J’essaye de tenir et lier des propos bienveillants.
  61. Je vous souhaite une jolie promenade.
  62. </p>
  63. <p lang="en">
  64. For an English profile, check out
  65. <a href="http://larlet.com" data-instant>this page 🇨🇦</a>.
  66. </p>
  67. <h2>Publication récentes</h2>
  68. <nav>
  69. <ul>
  70. <li><a href="/david/2021/04/13/">Nonnes</a> (2021-04-13)</li>
  71. <li><a href="/david/2021/04/12/">Alcool</a> (2021-04-12)</li>
  72. <li><a href="/david/2021/04/11/">Apocalypse</a> (2021-04-11)</li>
  73. <li><a href="/david/2021/04/10/">Autrement</a> (2021-04-10)</li>
  74. <li><a href="/david/2021/04/09/">Maximiser</a> (2021-04-09)</li>
  75. <li><a href="/david/2021/04/08/">NetNewsWire</a> (2021-04-08)</li>
  76. <li><a href="/david/2021/04/06/">Antilivre</a> (2021-04-06)</li>
  77. <li><a href="/david/2021/04/05/">Honte</a> (2021-04-05)</li>
  78. <li><a href="/david/2021/04/04/">Échappatoire</a> (2021-04-04)</li>
  79. <li><a href="/david/2021/04/03/">Bernaches</a> (2021-04-03)</li>
  80. <li><a href="/david/2021/03/31/">Formes</a> (2021-03-31)</li>
  81. <li><a href="/david/2021/03/30/">Timelapse</a> (2021-03-30)</li>
  82. <li><a href="/david/2021/03/29/">Évaluation</a> (2021-03-29)</li>
  83. <li><a href="/david/2021/03/28/">Smolstack</a> (2021-03-28)</li>
  84. <li><a href="/david/2021/03/27/">Immersion</a> (2021-03-27)</li>
  85. <li><a href="/david/2021/03/26/">Stimulant</a> (2021-03-26)</li>
  86. <li><a href="/david/2021/03/25/">Sponsor</a> (2021-03-25)</li>
  87. <li><a href="/david/2021/03/24/">Rareté</a> (2021-03-24)</li>
  88. <li><a href="/david/2021/03/23/">Recrutement</a> (2021-03-23)</li>
  89. <li><a href="/david/2021/03/22/">JavaScript-less</a> (2021-03-22)</li>
  90. <li><a href="/david/2021/03/21/">Gimbal</a> (2021-03-21)</li>
  91. <li><a href="/david/2021/03/20/">Manuel</a> (2021-03-20)</li>
  92. <li><a href="/david/2021/03/19/">Support</a> (2021-03-19)</li>
  93. <li><a href="/david/2021/03/18/">Fatigue</a> (2021-03-18)</li>
  94. <li><a href="/david/2021/03/17/">Arrivant·es</a> (2021-03-17)</li>
  95. <li><a href="/david/2021/03/16/">Confort</a> (2021-03-16)</li>
  96. <li><a href="/david/2021/03/15/">Partage</a> (2021-03-15)</li>
  97. <li><a href="/david/2021/03/14/">Impôts</a> (2021-03-14)</li>
  98. <li><a href="/david/2021/03/13/">In·dépendance</a> (2021-03-13)</li>
  99. <li><a href="/david/2021/03/12/">Forêt</a> (2021-03-12)</li>
  100. <li><a href="/david/2021/03/11/">Héros</a> (2021-03-11)</li>
  101. <li><a href="/david/2021/03/09/">Fun</a> (2021-03-09)</li>
  102. <li><a href="/david/2021/03/08/">Vie</a> (2021-03-08)</li>
  103. <li><a href="/david/2021/03/07/">@World</a> (2021-03-07)</li>
  104. <li><a href="/david/2021/03/06/">Pistage</a> (2021-03-06)</li>
  105. <li><a href="/david/2021/03/05/">Grand Nord</a> (2021-03-05)</li>
  106. <li><a href="/david/2021/03/04/">HTML-over-WebSockets</a> (2021-03-04)</li>
  107. <li><a href="/david/2021/03/03/">Vivre avec</a> (2021-03-03)</li>
  108. <li><a href="/david/2021/03/02/">Dépression</a> (2021-03-02)</li>
  109. <li><a href="/david/2021/03/01/">Responsabilité</a> (2021-03-01)</li>
  110. <li><a href="/david/2021/02/28/">Constance</a> (2021-02-28)</li>
  111. <li><a href="/david/2021/02/27/">Culpabilité</a> (2021-02-27)</li>
  112. <li><a href="/david/2021/02/26/">Disponibilité</a> (2021-02-26)</li>
  113. <li><a href="/david/2021/02/25/">Stabilisation</a> (2021-02-25)</li>
  114. <li><a href="/david/2021/02/24/">Précipitation</a> (2021-02-24)</li>
  115. <li><a href="/david/2021/02/23/">Montage</a> (2021-02-23)</li>
  116. <li><a href="/david/2021/02/22/">Jour 2</a> (2021-02-22)</li>
  117. <li><a href="/david/2021/02/21/">Jour 1</a> (2021-02-21)</li>
  118. <li><a href="/david/2021/02/20/">Apaisement</a> (2021-02-20)</li>
  119. <li><a href="/david/2021/02/19/">Optimisation</a> (2021-02-19)</li>
  120. <li><a href="/david/2021/02/18/">Castors</a> (2021-02-18)</li>
  121. <li><a href="/david/2021/02/16/">Éponge</a> (2021-02-16)</li>
  122. <li><a href="/david/2021/02/15/">Comptabilité</a> (2021-02-15)</li>
  123. <li><a href="/david/2021/02/14/">Bibliothèque</a> (2021-02-14)</li>
  124. <li><a href="/david/2021/02/12/">Beauté</a> (2021-02-12)</li>
  125. <li><a href="/david/2021/02/11/">Nucléaire</a> (2021-02-11)</li>
  126. <li><a href="/david/2021/02/10/">Retraite</a> (2021-02-10)</li>
  127. <li><a href="/david/2021/02/09/">Calme</a> (2021-02-09)</li>
  128. <li><a href="/david/2021/02/08/">Niveaux</a> (2021-02-08)</li>
  129. <li><a href="/david/2021/02/07/">Ostentatoire</a> (2021-02-07)</li>
  130. <li><a href="/david/2021/02/06/">Dystopie</a> (2021-02-06)</li>
  131. <li><a href="/david/2021/02/05/">Réparation</a> (2021-02-05)</li>
  132. <li><a href="/david/2021/02/04/">Chance</a> (2021-02-04)</li>
  133. <li><a href="/david/2021/02/03/">Consentement</a> (2021-02-03)</li>
  134. <li><a href="/david/2021/02/02/">Complexité</a> (2021-02-02)</li>
  135. <li><a href="/david/2021/02/01/">Software</a> (2021-02-01)</li>
  136. <li><a href="/david/2021/01/31/">Meta</a> (2021-01-31)</li>
  137. <li><a href="/david/2021/01/30/">Recommandations</a> (2021-01-30)</li>
  138. <li><a href="/david/2021/01/29/">Routine</a> (2021-01-29)</li>
  139. <li><a href="/david/2021/01/27/">Choix</a> (2021-01-27)</li>
  140. <li><a href="/david/2021/01/26/">Conférences</a> (2021-01-26)</li>
  141. <li><a href="/david/2021/01/25/">Valeurs</a> (2021-01-25)</li>
  142. <li><a href="/david/2021/01/24/">Négativité</a> (2021-01-24)</li>
  143. <li><a href="/david/2021/01/23/">Gratitude</a> (2021-01-23)</li>
  144. <li><a href="/david/2021/01/22/">Tentation</a> (2021-01-22)</li>
  145. <li><a href="/david/2021/01/21/">Questionnements</a> (2021-01-21)</li>
  146. <li><a href="/david/2021/01/20/">Adaptation</a> (2021-01-20)</li>
  147. <li><a href="/david/2021/01/19/">Chaîne de capture</a> (2021-01-19)</li>
  148. <li><a href="/david/2021/01/18/">Textcasts</a> (2021-01-18)</li>
  149. <li><a href="/david/2021/01/17/">Finesse</a> (2021-01-17)</li>
  150. <li><a href="/david/2021/01/16/">Bouc émissaire</a> (2021-01-16)</li>
  151. <li><a href="/david/2021/01/15/">Artfevre</a> (2021-01-15)</li>
  152. <li><a href="/david/2021/01/14/">Parler</a> (2021-01-14)</li>
  153. <li><a href="/david/2021/01/13/">Long terme</a> (2021-01-13)</li>
  154. <li><a href="/david/2021/01/11/">Marche ou trêve</a> (2021-01-11)</li>
  155. <li><a href="/david/2021/01/10/">Biologeek</a> (2021-01-10)</li>
  156. <li><a href="/david/2021/01/09/">Science-F(r)iction</a> (2021-01-09)</li>
  157. <li><a href="/david/2021/01/08/">Holisme écologique</a> (2021-01-08)</li>
  158. <li><a href="/david/2021/01/07/">Blancheur</a> (2021-01-07)</li>
  159. <li><a href="/david/2021/01/06/">Clown d’État</a> (2021-01-06)</li>
  160. <li><a href="/david/2021/01/05/">Statu quo</a> (2021-01-05)</li>
  161. <li><a href="/david/2021/01/04/">Webing-lists</a> (2021-01-04)</li>
  162. <li><a href="/david/2021/01/03/">Vaccina(c)tion</a> (2021-01-03)</li>
  163. <li><a href="/david/2021/01/02/">Gentrification climatique</a> (2021-01-02)</li>
  164. <li><a href="/david/2021/01/01/">PresQuotidien</a> (2021-01-01)</li>
  165. </ul>
  166. </nav>
  167. <h2>Publications 2020</h2>
  168. <p>Liste des publications en ordre chronologique :</p>
  169. <nav>
  170. <ul>
  171. <li><a href="/david/2020/01/03/">Briques</a> (2020-01-03)</li>
  172. <li><a href="/david/2020/01/06/">Écriture</a> (2020-01-06)</li>
  173. <li><a href="/david/2020/01/10/">Travail</a> (2020-01-10)</li>
  174. <li><a href="/david/2020/01/15/">Futurs</a> (2020-01-15)</li>
  175. <li><a href="/david/2020/01/17/">Datagouv</a> (2020-01-17)</li>
  176. <li><a href="/david/2020/01/22/">Réponses</a> (2020-01-22)</li>
  177. <li><a href="/david/2020/01/29/">Sortie ski</a> (2020-01-29)</li>
  178. <li><a href="/david/2020/01/31/">Intentions</a> (2020-01-31)</li>
  179. <li><a href="/david/2020/02/07/">GAFAM+</a> (2020-02-07)</li>
  180. <li><a href="/david/2020/02/14/">Espoirs</a> (2020-02-14)</li>
  181. <li><a href="/david/2020/02/21/">Service</a> (2020-02-21)</li>
  182. <li><a href="/david/2020/03/13/">Technique</a> (2020-03-13)</li>
  183. <li><a href="/david/2020/03/20/">Rédemption</a> (2020-03-20)</li>
  184. <li><a href="/david/2020/03/27/">Exutoire</a> (2020-03-27)</li>
  185. <li><a href="/david/2020/04/03/">Patience</a> (2020-04-03)</li>
  186. <li><a href="/david/2020/04/10/">Résistance</a> (2020-04-10)</li>
  187. <li><a href="/david/2020/04/18/">Zam</a> (2020-04-18)</li>
  188. <li><a href="/david/2020/05/18/">Relance</a> (2020-05-18)</li>
  189. <li><a href="/david/2020/05/20/">Bikepacking</a> (2020-05-20)</li>
  190. <li><a href="/david/2020/05/26/">Covidoudou</a> (2020-05-26)</li>
  191. <li><a href="/david/2020/06/12/">Vrac</a> (2020-06-12)</li>
  192. <li><a href="/david/2020/06/18/">Mouvements</a> (2020-06-18)</li>
  193. <li><a href="/david/2020/06/25/">Ouvertance</a> (2020-06-25)</li>
  194. <li><a href="/david/2020/07/03/">Confetti</a> (2020-07-03)</li>
  195. <li><a href="/david/2020/07/13/">Bilan</a> (2020-07-13)</li>
  196. <li><a href="/david/2020/08/24/">Personnes</a> (2020-08-24)</li>
  197. <li><a href="/david/2020/09/01/">Rentrée</a> (2020-09-01)</li>
  198. <li><a href="/david/2020/09/07/">Rappels</a> (2020-09-07)</li>
  199. <li><a href="/david/2020/09/16/">Coupable</a> (2020-09-16)</li>
  200. <li><a href="/david/2020/10/08/">Parvenir</a> (2020-10-08)</li>
  201. <li><a href="/david/2020/10/22/">Grand-écart</a> (2020-10-22)</li>
  202. <li><a href="/david/2020/10/28/">Chaos</a> (2020-10-28)</li>
  203. <li><a href="/david/2020/11/27/">Perles</a> (2020-11-27)</li>
  204. <li><a href="/david/2020/12/01/">Compréhension</a> (2020-12-01)</li>
  205. <li><a href="/david/2020/12/13/">Publications</a> (2020-12-13)</li>
  206. <li><a href="/david/2020/12/15/">Vidéos</a> (2020-12-15)</li>
  207. <li><a href="/david/2020/12/18/">Arrakice</a> (2020-12-18)</li>
  208. <li><a href="/david/2020/12/21/">Livres</a> (2020-12-21)</li>
  209. </ul>
  210. </nav>
  211. <h2>Publications archéologiques</h2>
  212. <p>
  213. Vous pouvez consulter les différents
  214. <a href="/david/blog/">billets de blog</a> qui ont été rédigés de 2004 à 2019
  215. ou les <a href="/david/stream/">entrées de journaux</a> relativement
  216. régulières entre 2009 et 2019.
  217. </p>
  218. <p>
  219. <em>
  220. Notez qu’avec un tel historique, certaines informations sont obsolètes et/ou
  221. plus cautionnées.
  222. </em>
  223. </p>
  224. <h2>Me contacter</h2>
  225. <p>
  226. 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>.
  227. </p>
  228. </article>
  229. <hr>
  230. <footer>
  231. <p>
  232. <a href="/david/" title="Aller à l’accueil"><svg class="icon icon-home">
  233. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-home"></use>
  234. </svg> Accueil</a> •
  235. <a href="/david/log/" title="Accès au flux RSS"><svg class="icon icon-rss2">
  236. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-rss2"></use>
  237. </svg> RSS</a> •
  238. <a href="http://larlet.com" title="Go to my English profile" data-instant><svg class="icon icon-user-tie">
  239. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-user-tie"></use>
  240. </svg> Pro</a> •
  241. <a href="mailto:david%40larlet.fr" title="Envoyer un courriel"><svg class="icon icon-mail">
  242. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-mail"></use>
  243. </svg> Email</a> •
  244. <abbr class="nowrap" title="Hébergeur : Alwaysdata, 62 rue Tiquetonne 75002 Paris, +33184162340"><svg class="icon icon-hammer2">
  245. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-hammer2"></use>
  246. </svg> Légal</abbr>
  247. </p>
  248. <template id="theme-selector">
  249. <form>
  250. <fieldset>
  251. <legend><svg class="icon icon-brightness-contrast">
  252. <use xlink:href="/static/david/icons2/symbol-defs.svg#icon-brightness-contrast"></use>
  253. </svg> Thème</legend>
  254. <label>
  255. <input type="radio" value="auto" name="chosen-color-scheme" checked> Auto
  256. </label>
  257. <label>
  258. <input type="radio" value="dark" name="chosen-color-scheme"> Foncé
  259. </label>
  260. <label>
  261. <input type="radio" value="light" name="chosen-color-scheme"> Clair
  262. </label>
  263. </fieldset>
  264. </form>
  265. </template>
  266. </footer>
  267. <script src="/static/david/js/instantpage-5.1.0.min.js" type="module"></script>
  268. <script>
  269. function loadThemeForm(templateName) {
  270. const themeSelectorTemplate = document.querySelector(templateName)
  271. const form = themeSelectorTemplate.content.firstElementChild
  272. themeSelectorTemplate.replaceWith(form)
  273. form.addEventListener('change', (e) => {
  274. const chosenColorScheme = e.target.value
  275. localStorage.setItem('theme', chosenColorScheme)
  276. toggleTheme(chosenColorScheme)
  277. })
  278. const selectedTheme = localStorage.getItem('theme')
  279. if (selectedTheme && selectedTheme !== 'undefined') {
  280. form.querySelector(`[value="${selectedTheme}"]`).checked = true
  281. }
  282. }
  283. const prefersColorSchemeDark = '(prefers-color-scheme: dark)'
  284. window.addEventListener('load', () => {
  285. let hasDarkRules = false
  286. for (const styleSheet of Array.from(document.styleSheets)) {
  287. let mediaRules = []
  288. for (const cssRule of styleSheet.cssRules) {
  289. if (cssRule.type !== CSSRule.MEDIA_RULE) {
  290. continue
  291. }
  292. // WARNING: Safari does not have/supports `conditionText`.
  293. if (cssRule.conditionText) {
  294. if (cssRule.conditionText !== prefersColorSchemeDark) {
  295. continue
  296. }
  297. } else {
  298. if (cssRule.cssText.startsWith(prefersColorSchemeDark)) {
  299. continue
  300. }
  301. }
  302. mediaRules = mediaRules.concat(Array.from(cssRule.cssRules))
  303. }
  304. // WARNING: do not try to insert a Rule to a styleSheet you are
  305. // currently iterating on, otherwise the browser will be stuck
  306. // in a infinite loop…
  307. for (const mediaRule of mediaRules) {
  308. styleSheet.insertRule(mediaRule.cssText)
  309. hasDarkRules = true
  310. }
  311. }
  312. if (hasDarkRules) {
  313. loadThemeForm('#theme-selector')
  314. }
  315. })
  316. </script>
  317. </body>
  318. </html>