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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  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>Tag #complexité — David Larlet</title>
  13. <meta name="description" content="Publications relatives au tag #complexité">
  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. <style type="text/css">
  53. details[open] summary {
  54. display: none;
  55. }
  56. </style>
  57. <body class="remarkdown h1-underline h2-underline h3-underline em-underscore hr-center ul-star pre-tick" data-instant-intensity="viewport-all">
  58. <header>
  59. <h1>Publications relatives au tag #complexité</h1>
  60. </header>
  61. <nav>
  62. <p class="center">
  63. <a href="/david/" title="Aller à l’accueil"><svg class="icon icon-home">
  64. <use xlink:href="/static/david/icons2/symbol-defs-2021-12.svg#icon-home"></use>
  65. </svg> Accueil</a>
  66. • <a rel="tags" href="/david/#tags-2023" title="Liste de toutes les étiquettes"><svg class="icon icon-tags">
  67. <use xlink:href="/static/david/icons2/symbol-defs-2021-12.svg#icon-tags"></use>
  68. </svg> Étiquettes</a>
  69. </p>
  70. </nav>
  71. <hr>
  72. <main>
  73. <p>Les plus récentes en premier, les 3 premières sont dépliées et ensuite c’est à la demande, bonne exploration !</p>
  74. <h2><a href="/david/2023/02/08/" title="Lien permanent vers cet article">TextcAIst</a> (2023-02-08)</h2>
  75. <blockquote lang="en">
  76. <p>Still… this is amazing. If I have learned anything from this journey, it’s that the ability to generate high-quality, <mark>readable transcripts from podcast audio is going to be here soon.</mark> It’s not quite here yet—Whisper has quirks that make it better for searchable transcripts than actual reading, and it doesn’t identify speakers—but it’s perilously close&nbsp;now.</p>
  77. <p><cite><em><a href="https://sixcolors.com/post/2023/02/automating-podcast-transcripts-on-my-mac-with-openai-whisper/">Automating podcast transcripts on my Mac with OpenAI Whisper</a></em>&nbsp;(<a href="/david/cache/2023/eebbf1a999fdf5c8aa80b65eccd9c48a/">cache</a>)</cite></p>
  78. </blockquote>
  79. <p>Suite des <a href="/david/2021/01/18/">mes recherches</a> pour pallier mon manque d’attention uniquement auditive (qui me prive des <em>podcasts</em>/balados). Je n’avais pas du tout exploré ni même envisagé la piste de l’Intelligence Artificielle mais c’est peut-être prometteur pour un affinage en post-traitement vu que ça a le vent en&nbsp;poupe&#8239;!</p>
  80. <p>En allant plus loin, ça pourrait potentiellement même m’en faire un&nbsp;résumé…</p>
  81. <hr />
  82. <blockquote lang="en">
  83. <p>🎥 Alongside Cameron’s recent comments, discussions on representation and “blue face” controversies have resurfaced. “Blue face” is the practice of taking creative liberties to hybridize various indigenous groups and make their own race then have non-Indigenous actors play them. <mark>Various groups across the globe have called for a boycott of the new film.</mark> At the very least, it makes sense to draw attention to the excellent films actually produced and created by Indigenous&nbsp;people.</p>
  84. <p><cite><em><a href="https://www.cbr.com/better-movies-than-camerons-avatar-2-inigenous-creators/">10&nbsp;Films By Indigenous Filmmakers To Watch Instead Of Avatar: The Way Of Water</a></em>&nbsp;(<a href="/david/cache/2023/98a93dedbf2eb7665680ec6b1bb31e8c/">cache</a>)</cite></p>
  85. </blockquote>
  86. <blockquote>
  87. <p>🌱 En restant sur un thème de rythme de la nature, et du fait que <mark>ce rythme ne s’applique pas au web,</mark> j’ai eu envie d’insérer un autre témoin du temps qui passe. Là, il ne sera pas lié à mon entretien de cet espace web mais plutôt au jour de&nbsp;l’année.</p>
  88. <p><cite><em><a href="https://blog.professeurjoachim.com/billet/2023-01-05-exercices-de-feuille-de-styles">Exercices (de feuille) de styles</a></em>&nbsp;(<a href="/david/cache/2023/c45d25b1d1062fcf10fbf7caaf9e21b1/">cache</a>)</cite></p>
  89. </blockquote>
  90. <blockquote>
  91. <p>🔋 Quand ils ont fait les barrages, ils ne nous ont pas écoutés, quand ils ont fait des coupes forestières au point de faire fuir l’orignal et le caribou dans certaines régions, ils ne nous ont pas écoutés, <mark>et maintenant, ils veulent extraire du lithium</mark> et d’autres&nbsp;métaux</p>
  92. <p><cite><em><a href="https://www.ledevoir.com/societe/780738/lithium-et-mineraux-critiques-lithium-et-mineraux-critiques-le-combat-d-une-mere-crie-de-8-enfants">Lithium et minéraux critiques&nbsp;: le combat d’une mère crie de huit enfants</a></em>&nbsp;(<a href="/david/cache/2023/a0d209f5273c7d9f984f78773fa089f2/">cache</a>)</cite></p>
  93. </blockquote>
  94. <h2><a href="/david/2023/01/31/" title="Lien permanent vers cet article">Ennui</a> (2023-01-31)</h2>
  95. <blockquote lang="en">
  96. <p>There’s a quote from a writer that has rattled around in my head for years (although I have never been able to source it, leading me to wonder if I accidentally made it up), but it went something like, “I only need a half hour a day to write. But I have to wait around an awful long time for that half hour to show up.” I think about this all the time—that the actual amount of time spent in doing something creative (writing, designing, making music, whathaveyou) is often buffered by hours and hours on either side by real—sometimes pleasant, sometimes&nbsp;infuriating—boredom.</p>
  97. <p>[…] That is, not merely an absence of doing, but a not-doing so complete it doesn’t stimulate, and it doesn’t heal. It merely waits—patiently or otherwise—for an arrival. <mark>I fear we have forgotten how to&nbsp;wait.</mark></p>
  98. <p><cite><em><a href="https://aworkinglibrary.com/writing/tolerance-for-boredom">Tolerance for boredom</a></em>&nbsp;(<a href="/david/cache/2023/ae079737f65e55da1d7a672b3a685b46/">cache</a>)</cite></p>
  99. </blockquote>
  100. <p>C’est l’une des choses que je trouve être la plus difficile à transmettre en tant que parent. Accepter que l’on a du temps devant soi et qu’il est possible et sain de ne «&nbsp;rien faire&nbsp;» pendant une période plus ou moins longue. Ce qui est complexe, c’est cet apprentissage de l’alternance entre des périodes d’activités <em>intentionnelles</em> et celles qui sont induites par ce qui semble être —&nbsp;à première vue&nbsp;— de&nbsp;l’inactivité.</p>
  101. <p>Compenser de l’hyper-activité par de la sur-activité est une voie qui semble naturelle mais qui ne <em>me</em> parait pas être soutenable et/ou enviable sur du long&nbsp;terme.</p>
  102. <p>La difficulté vient peut-être du fait qu’il n’est pas facile de montrer l’ennui à partir du moment où la demande d’attention (externe) vient interrompre de fait cette&nbsp;période…</p>
  103. <hr />
  104. <p>Pensée du&nbsp;jour&nbsp;:</p>
  105. <blockquote>
  106. <p>Ce monde sera plus terne lorsqu’il n’y aura plus de&nbsp;neige.</p>
  107. </blockquote>
  108. <hr />
  109. <blockquote lang="en">
  110. <p>His wildly popular “Last Child in the Woods: Saving Our Children From Nature-Deficit Disorder” includes evidence that exposure to nature is essential not just to children’s mental and physical health, but to everyone’s. Adults are just as susceptible to a “Vitamin N” deficiency he explains in his more recent “The Nature Principle: Reconnecting with Life in a Virtual Age.” I asked him about my writing-outside&nbsp;theory.</p>
  111. <p>“It’s likely you find it easier to write outside not only because of nature’s direct impact, but because of the absence of so many distractions, most of them technological.” says Mr. Louv, who also finds his writing better when he does it by a lake or in the woods. “The info-blitzkrieg has spawned a new field called ‘interruption science’ and a newly minted condition: continuous partial attention.” Constant electronic intrusions, he says, leave anyone trying to work frustrated, stressed and certainly less&nbsp;creative.</p>
  112. <p><cite><em><a href="https://archive.nytimes.com/opinionator.blogs.nytimes.com/2013/09/16/time-to-write-go-outside/">Time to Write? Go Outside</a></em>&nbsp;(<a href="/david/cache/2023/300b9aa899d44f7606a8448991e2acfd/">cache</a>)</cite></p>
  113. </blockquote>
  114. <h2><a href="/david/2023/01/16/" title="Lien permanent vers cet article">Chasse</a> (2023-01-16)</h2>
  115. <p>Je me demande toujours quel est l’impact carbone de la chasse en terme de consommation de viande. Ou plutôt quels seraient les effets de bord d’une interdiction de la&nbsp;chasse.</p>
  116. <p>Si toute la viande chassée ne l’était pas, est-ce que ça se transformerait en achat de steaks de bœuf&#8239;? Est-ce que cela signifierait encore davantage de cultures sacrifiées pour élever des animaux et les manger&#8239;? Plus de pauvreté ou malnutrition dans les populations&nbsp;rurales&#8239;?</p>
  117. <p>Et que feraient ces personnes pendant ces moments là&#8239;? Est-ce que le temps libéré produirait encore davantage de dépenses d’énergies&#8239;? Encore plus de déplacements en voiture et de consommation&#8239;? Et que deviendraient toutes ces armes, au service de qui pourraient-elles être&nbsp;réutilisées&#8239;?</p>
  118. <p>Si ça se trouve, sans le savoir, ce sont vraiment les premiers écolos de France. (Non.)</p>
  119. <p><strong>Mise à jour le jour&nbsp;même&nbsp;:</strong></p>
  120. <p><a href="https://pouet.it/@im/109699383509639063">iGor lilith me propose</a> de regarder le reportage d’Arte «&nbsp;<a href="https://www.arte.tv/fr/videos/103447-012-A/pourquoi-deteste-t-on-la-chasse/">Pourquoi déteste-t-on la chasse&#8239;?</a>&nbsp;» qui me donne d’autres pistes de réflexion. Merci&#8239;!</p>
  121. <hr />
  122. <blockquote>
  123. <p>En théorie, un vol en avion à New York consomme autant d’énergie que l’utilisation de canons d’une grande station durant tout un&nbsp;hiver.</p>
  124. <p>Pour vérifier de manière pratique, <mark>le footballeur Killian MBappé a participé à une expérience scientifique.</mark> Après le match perdu contre Lens, le 1&nbsp;janvier, il a pris son jet privé pour aller voir un match de basket à New York le 2&nbsp;janvier, et retour à la case départ le lendemain pour l’entraînement du soir à&nbsp;Paris.</p>
  125. <p>L’expérience a montré, qu’effectivement un vol en avion à New York consomme plus d’énergie que des canons à neige pendant tout l’hiver. On remercie Killian pour aider la science et le&nbsp;foot.</p>
  126. <p><cite><em><a href="https://www.2000watts.org/index.php/home/reflexion/1317-les-droles-nouvelles-de-l-energie.html">Les Drôles Nouvelles de l’Energie</a></em>&nbsp;(<a href="/david/cache/2023/d6877059a2203cab6c811c5ee3148c17/">cache</a>)</cite></p>
  127. </blockquote>
  128. <h2><a href="/david/2023/01/15/" title="Lien permanent vers cet article">Snow&nbsp;Fall</a> (2023-01-15)</h2>
  129. <details>
  130. <summary>Déplier pour lire le contenu de la publication</summary>
  131. <blockquote lang="en">
  132. <p>Ten years ago this week, in December 2012, “<a href="https://www.nytimes.com/projects/2012/snow-fall/index.html">Snow Fall: The Avalanche at Tunnel Creek</a>,” an ambitious multimedia feature about a deadly avalanche in Washington State that year, took the journalism world by&nbsp;storm.</p>
  133. <p><cite><em><a href="https://www.nytimes.com/2022/12/23/insider/snow-fall-at-10-how-it-changed-journalism.html">‘Snow Fall’ at 10: How It Changed Journalism</a></em>&nbsp;(<a href="/david/cache/2023/cba96d83d96944c55675cb073fcfc60d/">cache</a>)</cite></p>
  134. </blockquote>
  135. <p>Il est rare que je me souvienne d’évènement historiques autour du Web. À part peut-être les sorties de <a href="/david/biologeek/archives/20041121-mozparty-des-geeks-irl--/">Firefox 1</a> et <a href="/david/biologeek/archives/20061028-soiree-firefox-2-paris/">2</a> car j’étais aux évènements&nbsp;dédiés.</p>
  136. <p>«&nbsp;<span lang=en>Snow Fall</span>&nbsp;» était d’un autre ordre de grandeur pour moi car ça ouvrait au Web une possibilité de raconter des histoires dynamiques. Je me rappelle avec une assez bonne précision de l’excitation que j’avais eu en parcourant la page à l’époque. Ce n’était pas tant le côté immersif que technique qui m’intéressait alors, et c’était une époque où l’on pouvait encore consulter une source de site web et la comprendre. J’ai tellement appris comme&nbsp;ça&#8239;!</p>
  137. <p>Allez consulter cette magnificence, une source commentée, non minifiée, avec du contenu qui est dans la page et des media liés de manière standardisée et compréhensible. Une autre&nbsp;époque.</p>
  138. <p>On en parlait récemment avec <a href="https://thom4.net/">Thomas</a>, comment est-ce qu’une génération qui est principalement autodidacte a-t-elle pu être à l’origine de la complexité actuelle des outils de publication sur le Web&#8239;? Je suis tellement triste de la marche que l’on a créé pour réduire l’accessibilité de sa source. Il y a une tendance humaine à faire —&nbsp;plus ou moins consciemment&nbsp;— tomber l’échelle qui nous a permis de monter pour être sûr de garder une certaine avance sur les&nbsp;suivant·es.</p>
  139. <p><em>Tout parallèle avec notre rapport à l’immigration serait bien évidement&nbsp;fortuit.</em></p>
  140. <blockquote lang="en">
  141. <p>Mr. Duenes also noted that “Snow Fall” helped budding designers and engineers see themselves as potential&nbsp;journalists.</p>
  142. <p>“It generated the idea among people with visual skills that journalism might be a place for them,” Mr. Duenes said. “Not people who were experts at the moment, but people in school who could see an overlap between an area where they had talent and the discipline of visual&nbsp;journalism.”</p>
  143. <p><cite><em>Ibid.</em></cite></p>
  144. </blockquote>
  145. <hr />
  146. <blockquote lang="en">
  147. <p>For a data format, yaml is extremely complicated. It aims to be a human-friendly format, but in striving for that it introduces <mark>so much complexity,</mark> that I would argue it achieves the opposite result. Yaml is full of footguns and its friendliness is deceptive. In this post I want to demonstrate this through an&nbsp;example.</p>
  148. <p><cite><em><a href="https://ruudvanasseldonk.com/2023/01/11/the-yaml-document-from-hell">The yaml document from hell</a></em>&nbsp;(<a href="/david/cache/2023/3b05eb0d7d0409bcfd53b4cdf6c20daa/">cache</a>)</cite></p>
  149. </blockquote>
  150. <blockquote lang="en">
  151. <p> It was among the strongest feelings of grief I have ever encountered. The contrast between the vicious coldness of space and the warm nurturing of Earth below filled me with overwhelming sadness. Every day, we are confronted with the knowledge of further destruction of Earth at our hands: the extinction of animal species, of flora and fauna . . . things that took five billion years to evolve, and suddenly we will never see them again because of the interference of mankind. It filled me with dread. <mark>My trip to space was supposed to be a celebration; instead, it felt like a&nbsp;funeral.</mark></p>
  152. <p><cite><em><a href="https://variety.com/2022/tv/news/william-shatner-space-boldly-go-excerpt-1235395113/">William Shatner: My Trip to Space Filled Me With Sadness - Variety</a></em>&nbsp;(<a href="/david/cache/2023/ca3e313992d7ac7e4aeaece85e7f4b6a/">cache</a>)</cite></p>
  153. </blockquote>
  154. </details>
  155. </main>
  156. <hr>
  157. <footer>
  158. <p>
  159. <nobr>
  160. <a href="/david/" title="Aller à l’accueil"
  161. ><svg class="icon icon-home">
  162. <use
  163. xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-home"
  164. ></use>
  165. </svg>
  166. Accueil</a
  167. >
  168. </nobr>
  169. <nobr>
  170. <a href="/david/log/" title="Accès au flux RSS"
  171. ><svg class="icon icon-rss2">
  172. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-rss2"></use>
  173. </svg>
  174. Suivre</a
  175. >
  176. </nobr>
  177. <nobr>
  178. <a href="http://larlet.com" title="Go to my English profile" data-instant
  179. ><svg class="icon icon-user-tie">
  180. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-user-tie"></use>
  181. </svg>
  182. Pro</a
  183. >
  184. </nobr>
  185. <nobr>
  186. <a href="mailto:david%40larlet.fr" title="Envoyer un courriel"
  187. ><svg class="icon icon-mail">
  188. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-mail"></use>
  189. </svg>
  190. Email</a
  191. >
  192. </nobr>
  193. <nobr>
  194. <abbr
  195. class="nowrap"
  196. title="Hébergeur : Alwaysdata, 62 rue Tiquetonne 75002 Paris, +33184162340"
  197. ><svg class="icon icon-hammer2">
  198. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-hammer2"></use>
  199. </svg>
  200. Légal</abbr
  201. >
  202. </nobr>
  203. </p>
  204. <template id="theme-selector">
  205. <form>
  206. <fieldset>
  207. <legend><svg class="icon icon-brightness-contrast">
  208. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-brightness-contrast"></use>
  209. </svg> Thème</legend>
  210. <label>
  211. <input type="radio" value="auto" name="chosen-color-scheme" checked> Auto
  212. </label>
  213. <label>
  214. <input type="radio" value="dark" name="chosen-color-scheme"> Foncé
  215. </label>
  216. <label>
  217. <input type="radio" value="light" name="chosen-color-scheme"> Clair
  218. </label>
  219. </fieldset>
  220. </form>
  221. </template>
  222. </footer>
  223. <script src="/static/david/js/instantpage-5.1.0.min.js" type="module"></script>
  224. <script>
  225. function loadThemeForm(templateName) {
  226. const themeSelectorTemplate = document.querySelector(templateName)
  227. const form = themeSelectorTemplate.content.firstElementChild
  228. themeSelectorTemplate.replaceWith(form)
  229. form.addEventListener('change', (e) => {
  230. const chosenColorScheme = e.target.value
  231. localStorage.setItem('theme', chosenColorScheme)
  232. toggleTheme(chosenColorScheme)
  233. })
  234. const selectedTheme = localStorage.getItem('theme')
  235. if (selectedTheme && selectedTheme !== 'undefined') {
  236. form.querySelector(`[value="${selectedTheme}"]`).checked = true
  237. }
  238. }
  239. const prefersColorSchemeDark = '(prefers-color-scheme: dark)'
  240. window.addEventListener('load', () => {
  241. let hasDarkRules = false
  242. for (const styleSheet of Array.from(document.styleSheets)) {
  243. let mediaRules = []
  244. for (const cssRule of styleSheet.cssRules) {
  245. if (cssRule.type !== CSSRule.MEDIA_RULE) {
  246. continue
  247. }
  248. // WARNING: Safari does not have/supports `conditionText`.
  249. if (cssRule.conditionText) {
  250. if (cssRule.conditionText !== prefersColorSchemeDark) {
  251. continue
  252. }
  253. } else {
  254. if (cssRule.cssText.startsWith(prefersColorSchemeDark)) {
  255. continue
  256. }
  257. }
  258. mediaRules = mediaRules.concat(Array.from(cssRule.cssRules))
  259. }
  260. // WARNING: do not try to insert a Rule to a styleSheet you are
  261. // currently iterating on, otherwise the browser will be stuck
  262. // in a infinite loop…
  263. for (const mediaRule of mediaRules) {
  264. styleSheet.insertRule(mediaRule.cssText)
  265. hasDarkRules = true
  266. }
  267. }
  268. if (hasDarkRules) {
  269. loadThemeForm('#theme-selector')
  270. }
  271. })
  272. </script>
  273. </body>
  274. </html>