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

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455
  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>
  13. Tag #écriture
  14. — David Larlet</title>
  15. <meta name="description" content="Publications relatives au tag #écriture">
  16. <!-- That good ol' feed, subscribe :). -->
  17. <link rel="alternate"
  18. type="application/atom+xml"
  19. title="Feed"
  20. href="/david/log/">
  21. <!-- Generated from https://realfavicongenerator.net/ such a mess. -->
  22. <link rel="apple-touch-icon"
  23. sizes="180x180"
  24. href="/static/david/icons2/apple-touch-icon.png">
  25. <link rel="icon"
  26. type="image/png"
  27. sizes="32x32"
  28. href="/static/david/icons2/favicon-32x32.png">
  29. <link rel="icon"
  30. type="image/png"
  31. sizes="16x16"
  32. href="/static/david/icons2/favicon-16x16.png">
  33. <link rel="manifest" href="/static/david/icons2/site.webmanifest">
  34. <link rel="mask-icon"
  35. href="/static/david/icons2/safari-pinned-tab.svg"
  36. color="#07486c">
  37. <link rel="shortcut icon" href="/static/david/icons2/favicon.ico">
  38. <meta name="msapplication-TileColor" content="#f7f7f7">
  39. <meta name="msapplication-config"
  40. content="/static/david/icons2/browserconfig.xml">
  41. <meta name="theme-color"
  42. content="#f7f7f7"
  43. media="(prefers-color-scheme: light)">
  44. <meta name="theme-color"
  45. content="#272727"
  46. media="(prefers-color-scheme: dark)">
  47. <!-- Documented, feel free to shoot an email. -->
  48. <link rel="stylesheet" href="/static/david/css/style_2021-01-20.css">
  49. <!-- See https://www.zachleat.com/web/comprehensive-webfonts/ for the trade-off. -->
  50. <link rel="preload"
  51. href="/static/david/css/fonts/triplicate_t4_poly_regular.woff2"
  52. as="font"
  53. type="font/woff2"
  54. media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  55. crossorigin>
  56. <link rel="preload"
  57. href="/static/david/css/fonts/triplicate_t4_poly_bold.woff2"
  58. as="font"
  59. type="font/woff2"
  60. media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  61. crossorigin>
  62. <link rel="preload"
  63. href="/static/david/css/fonts/triplicate_t4_poly_italic.woff2"
  64. as="font"
  65. type="font/woff2"
  66. media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  67. crossorigin>
  68. <link rel="preload"
  69. href="/static/david/css/fonts/triplicate_t3_regular.woff2"
  70. as="font"
  71. type="font/woff2"
  72. media="(prefers-color-scheme: dark)"
  73. crossorigin>
  74. <link rel="preload"
  75. href="/static/david/css/fonts/triplicate_t3_bold.woff2"
  76. as="font"
  77. type="font/woff2"
  78. media="(prefers-color-scheme: dark)"
  79. crossorigin>
  80. <link rel="preload"
  81. href="/static/david/css/fonts/triplicate_t3_italic.woff2"
  82. as="font"
  83. type="font/woff2"
  84. media="(prefers-color-scheme: dark)"
  85. crossorigin>
  86. <script>
  87. function toggleTheme(themeName) {
  88. document.documentElement.classList.toggle(
  89. 'forced-dark',
  90. themeName === 'dark'
  91. )
  92. document.documentElement.classList.toggle(
  93. 'forced-light',
  94. themeName === 'light'
  95. )
  96. }
  97. const selectedTheme = localStorage.getItem('theme')
  98. if (selectedTheme !== 'undefined') {
  99. toggleTheme(selectedTheme)
  100. }
  101. </script>
  102. <style type="text/css">
  103. details[open] summary {
  104. display: none;
  105. }
  106. </style>
  107. <body class="remarkdown h1-underline h2-underline h3-underline em-underscore hr-center ul-star pre-tick"
  108. data-instant-intensity="viewport-all">
  109. <header>
  110. <h1>Publications relatives au tag #écriture</h1>
  111. </header>
  112. <nav>
  113. <p class="center">
  114. <a href="/david/" title="Aller à l’accueil">
  115. <svg class="icon icon-home">
  116. <use xlink:href="/static/david/icons2/symbol-defs-2021-12.svg#icon-home"></use>
  117. </svg>
  118. Accueil</a>
  119. • <a rel="tags"
  120. href="/david/#tags-2023"
  121. title="Liste de toutes les étiquettes">
  122. <svg class="icon icon-tags">
  123. <use xlink:href="/static/david/icons2/symbol-defs-2021-12.svg#icon-tags"></use>
  124. </svg>
  125. Étiquettes</a>
  126. </p>
  127. </nav>
  128. <hr>
  129. <main>
  130. <p>Les plus récentes en premier, les 3 premières sont dépliées et ensuite c’est à la demande, bonne exploration !</p>
  131. <h2>
  132. <a href="/david/2023/09/06/" title="Lien permanent vers cet article">Retour</a> (2023-09-06)
  133. </h2>
  134. <blockquote lang="en">
  135. <p>The app will eventually become obsolete. It’s the plain text files I create that are designed to last. Who knows if anyone will want to read them besides me, but <em>future me</em> is enough of an audience to make it&nbsp;worthwhile.</p>
  136. <p><cite><em><a href="https://stephango.com/file-over-app">File over app - Steph Ango</a></em>&nbsp;(<a href="/david/cache/2023/20d288eb47779c4f1b3f36fb86aa7108/">cache</a>)</cite></p>
  137. </blockquote>
  138. <p>Je vais revenir délicatement publier par ici. Ces derniers mois ont été… mmh, agités… mais je commence à retrouver un certain équilibre. Beaucoup de phases qui ne s’articulaient pas comme je l’espérais, d’attention trop superficielle mal compensée, au milieu d’une grosse <a href="/david/2023/01/23/" title="Déception">déception</a> qui a laissé des traces profondes. J’aurais au moins appris la différence entre l’inspiration et la manipulation. <em>The Hard Way™</em>. Je suis très reconnaissant envers toutes les personnes qui ont fait que je ne me suis pas senti trop isolé ou vulnérable pendant cette&nbsp;période.</p>
  139. <p>Grâce à un départ, <a href="http://scopyleft.fr/">Scopyleft</a> prend une <a href="/david/2021/03/17/">autre dimension</a> et redéfinit ses aspirations collectivement à travers des échanges plus sains et apaisés. Un arbre tombe et de nombreuses autres espèces arrivent enfin à capter la lumière pour proposer un autre paysage, envisager un nouvel écosystème&nbsp;🌻🐝.</p>
  140. <hr />
  141. <p>Et puis, j’ai des dizaines d’onglets à partager à mon <em>futur moi</em>.</p>
  142. <blockquote lang="en">
  143. <p>💭 If you’re more a guess-culture person, asking people for help without knowing their circumstances can feel rude or intrusive. Broadcasting publicly your need for help can feel awkward and&nbsp;vulnerable.</p>
  144. <p>If you’re more of an ask-culture person, the guess-culture example of juggling everyone’s specific scenarios and the historical context of favors <mark>probably seems exhausting.</mark> Dropping hints in the hopes that you won’t even have to make your request can feel extra passive and&nbsp;manipulative.</p>
  145. <p><cite><em><a href="https://jeanhsu.substack.com/p/ask-vs-guess-culture">Ask vs guess culture</a></em>&nbsp;(<a href="/david/cache/2023/ba42826808418339bdc0364586bea5bf/">cache</a>)</cite></p>
  146. </blockquote>
  147. <blockquote lang="en">
  148. <p>😔 But really the baseline of web design is so low because there’s a lack of tenderness, care, and empathy. <mark>It’s because we don’t see the making of a website as a worthy profession.</mark> It’s because we hope to squeeze the last bit of juice from the orange by mulching people in between modals and pop ups and cookie&nbsp;banners.</p>
  149. <p>So how do we do better? How do we take better care of our&nbsp;websites?</p>
  150. <p><cite><em><a href="https://robinrendle.com/notes/why-are-websites-embarrassing/">Why are websites embarrassing?</a></em>&nbsp;(<a href="/david/cache/2023/7458294e070577c610294f8ec927c30d/">cache</a>)</cite></p>
  151. </blockquote>
  152. <blockquote lang="en">
  153. <p>🍏 It would also inject the potential for a slippery slope of unintended consequences. Scanning for one type of content, for instance, <mark>opens the door for bulk surveillance</mark> and could create a desire to search other encrypted messaging systems across content types (such as images, videos, text, or audio) and content categories. How can users be assured that a tool for one type of surveillance has not been reconfigured to surveil for other content such as political activity or religious persecution? Tools of mass surveillance have widespread negative implications for freedom of speech and, by extension, democracy as a whole. Also, designing this technology for one government could require applications for other countries across new data&nbsp;types.</p>
  154. <p><cite><a href="/static/david/2023/apple-letter-to-heat-initiative.pdf">Apple letter to Heat initiative</a> (PDF, 121Ko)</cite></p>
  155. </blockquote>
  156. <h2>
  157. <a href="/david/2023/07/02/" title="Lien permanent vers cet article">Perles</a> (2023-07-02)
  158. </h2>
  159. <blockquote>
  160. <p>Mon travail de scientifique m’a appris comment les gens construisent des théories pour avoir le sentiment de contrôler leur&nbsp;environnement.</p>
  161. <p>Ils se comportent ensuite de manière à renforcer ces théories. Les personnes autistes partagent ce désir «&nbsp;normal&nbsp;» de contrôler leur environnement. Ce qui diffère pour elles, c’est l’intensité avec laquelle cet environnement les déborde. Des connexions neuronales atypiques dans le cerveau des personnes autistes peuvent conduire à une perception anormale, augmentant l’importance des événements individuels mais affaiblissant la capacité à relier ces morceaux de vie en des représentations plus intégrées et&nbsp;abstraites.</p>
  162. <p>Les comportements rigides et répétitifs des personnes autistes commencent à avoir un sens lorsque nous les considérons comme la réaction normale d’un être humain à un environnement sensoriel très anormal, plutôt que comme des symptômes d’une maladie. Les symptômes autistiques sont ce qu’une personne fait pour forcer un monde chaotique à suivre un scénario prévisible. Nous essayons tous d’imposer un ordre narratif à ce qui peut sembler un monde fondamentalement chaotique. La différence dans l’autisme est qu’il y a plus de chaos à&nbsp;contrôler.</p>
  163. <p><mark>À cet égard, l’étude de l’autisme peut nous en apprendre beaucoup sur l’humanité en général</mark> et sur la façon dont la détresse psychologique peut être expliquée comme une réaction rationnelle, bien qu’extrême, à un monde qui ne tourne pas&nbsp;rond.</p>
  164. <p><cite><em>L’imperméable jaune</em>, Matthew&nbsp;Belmonte</cite></p>
  165. </blockquote>
  166. <p>Une citation extraite de <em>Des gènes, des synapses, des autismes</em> de Thomas Bourgeron qui est assez technique et que je recommande. Cela me donne envie de séquencer mon génome pour jouer avec mais comment réduire les intermédiaires&nbsp;profiteurs&#8239;?</p>
  167. <blockquote>
  168. <p>La génétique n’est pas la science des gènes mais la science de la diversité génétique qui contribue à notre&nbsp;individualité.</p>
  169. <p><cite><em>Ibid.</em></cite></p>
  170. </blockquote>
  171. <hr />
  172. <p>Avec son&nbsp;consentement&nbsp;:</p>
  173. <figure>
  174. <a href="/static/david/2023/2023-07-02-explique-ton-hypothese.jpg"
  175. title="Cliquer pour une version haute résolution">
  176. <img
  177. src="/static/david/2023/2023-07-02-explique-ton-hypothese.jpg"
  178. width="3022" height="675"
  179. srcset="/static/david/2023/2023-07-02-explique-ton-hypothese.jpg 3022w, /static/david/2023/2023-07-02-explique-ton-hypothese_660x440.jpg 660w, /static/david/2023/2023-07-02-explique-ton-hypothese_990x660.jpg 990w, /static/david/2023/2023-07-02-explique-ton-hypothese_1320x880.jpg 1320w"
  180. sizes="min(100vw, calc(100vh * 3022 / 675))"
  181. loading="lazy"
  182. decoding="async"
  183. alt="Explique ton hypothèse&nbsp;: Ça. (← Ceci n’est pas une hypothèse.)">
  184. </a>
  185. <figcaption>Ni une&nbsp;pipe.</figcaption>
  186. </figure>
  187. <figure>
  188. <a href="/static/david/2023/2023-07-02-que-remarques-tu.jpg"
  189. title="Cliquer pour une version haute résolution">
  190. <img
  191. src="/static/david/2023/2023-07-02-que-remarques-tu.jpg"
  192. width="3022" height="675"
  193. srcset="/static/david/2023/2023-07-02-que-remarques-tu.jpg 3022w, /static/david/2023/2023-07-02-que-remarques-tu_660x440.jpg 660w, /static/david/2023/2023-07-02-que-remarques-tu_990x660.jpg 990w, /static/david/2023/2023-07-02-que-remarques-tu_1320x880.jpg 1320w"
  194. sizes="min(100vw, calc(100vh * 3022 / 675))"
  195. loading="lazy"
  196. decoding="async"
  197. alt="Que remarques-tu&#8239;? J’ai remarqué que j’ai raison.">
  198. </a>
  199. <figcaption>Devenu un&nbsp;mème.</figcaption>
  200. </figure>
  201. <figure>
  202. <a href="/static/david/2023/2023-07-02-pourquoi.jpg"
  203. title="Cliquer pour une version haute résolution">
  204. <img
  205. src="/static/david/2023/2023-07-02-pourquoi.jpg"
  206. width="3022" height="819"
  207. srcset="/static/david/2023/2023-07-02-pourquoi.jpg 3022w, /static/david/2023/2023-07-02-pourquoi_660x440.jpg 660w, /static/david/2023/2023-07-02-pourquoi_990x660.jpg 990w, /static/david/2023/2023-07-02-pourquoi_1320x880.jpg 1320w"
  208. sizes="min(100vw, calc(100vh * 3022 / 819))"
  209. loading="lazy"
  210. decoding="async"
  211. alt="Pourquoi&#8239;? On le dit tout le temps.">
  212. </a>
  213. <figcaption>La&nbsp;facilité.</figcaption>
  214. </figure>
  215. <figure>
  216. <a href="/static/david/2023/2023-07-02-enonce-une-hypothese.jpg"
  217. title="Cliquer pour une version haute résolution">
  218. <img
  219. src="/static/david/2023/2023-07-02-enonce-une-hypothese.jpg"
  220. width="3022" height="1185"
  221. srcset="/static/david/2023/2023-07-02-enonce-une-hypothese.jpg 3022w, /static/david/2023/2023-07-02-enonce-une-hypothese_660x440.jpg 660w, /static/david/2023/2023-07-02-enonce-une-hypothese_990x660.jpg 990w, /static/david/2023/2023-07-02-enonce-une-hypothese_1320x880.jpg 1320w"
  222. sizes="min(100vw, calc(100vh * 3022 / 1185))"
  223. loading="lazy"
  224. decoding="async"
  225. alt="Je le pense parce que&nbsp;: car dur + dur + dur = méga-dur">
  226. </a>
  227. <figcaption>La&nbsp;science.</figcaption>
  228. </figure>
  229. <figure>
  230. <a href="/static/david/2023/2023-07-02-vie-de-groupe.jpg"
  231. title="Cliquer pour une version haute résolution">
  232. <img
  233. src="/static/david/2023/2023-07-02-vie-de-groupe.jpg"
  234. width="2932" height="2190"
  235. srcset="/static/david/2023/2023-07-02-vie-de-groupe.jpg 2932w, /static/david/2023/2023-07-02-vie-de-groupe_660x440.jpg 660w, /static/david/2023/2023-07-02-vie-de-groupe_990x660.jpg 990w, /static/david/2023/2023-07-02-vie-de-groupe_1320x880.jpg 1320w"
  236. sizes="min(100vw, calc(100vh * 2932 / 2190))"
  237. loading="lazy"
  238. decoding="async"
  239. alt="Pourquoi doit-on apprendre à vivre en groupe&#8239;? Pour s’amuser. (Car nous vivons en société.) Est-il facile selon toi de vivre en groupe&#8239;? Explique pourquoi. NON. J’arrive pas à attendre qu’elle ai terminer&#8239;! (Ce n’est pas que du travail à deux)">
  240. </a>
  241. <figcaption>Une histoire de chats et de&nbsp;chiens.</figcaption>
  242. </figure>
  243. <h2>
  244. <a href="/david/2023/02/02/" title="Lien permanent vers cet article">Moment</a> (2023-02-02)
  245. </h2>
  246. <blockquote lang="en">
  247. <p>Three weeks pass and that lonely draft sits around gathering dust, and by the time I remember it, the moment has passed. The conversation has moved on, and so the post is abandoned and eventually&nbsp;deleted.</p>
  248. <p>The internet moves pretty fast and there’s always a “hot topic of the day”, but that doesn’t mean that nobody is interested in anything else. <mark>A beautiful thing about blogs is that they’re&nbsp;asynchronous.</mark></p>
  249. <p><cite><em><a href="https://mxb.dev/blog/seven-reasons-why-i-dont-write/">7&nbsp;Reasons why I don’t write</a></em>&nbsp;(<a href="/david/cache/2023/d7f9460e62402a298210736cdf64b88c/">cache</a>)</cite></p>
  250. </blockquote>
  251. <p>J’admire et j’envie un peu <a href="https://www.la-grange.net/">Karl</a> qui arrive à publier des notes qui ont plusieurs mois. Pour ma part, si je relis un peu trop ou avec trop de recul temporel, je finis par ne plus publier du tout car cela devient vain/suffisant/déjà&nbsp;dit/etc.</p>
  252. <p>J’écris cette entrée avec 2&nbsp;jours d’avance et déjà je sais que ça va être du réchauffé pour ma tête lors de la publication. La pensée s’est consumée avant même d’avoir pu être partagée, je publie des cendres froides. Lorsque l’idée est encore brûlante, il faut que ça sorte. Tout de&nbsp;suite.</p>
  253. <p>C’est la raison pour laquelle je n’aurai jamais la patience d’attendre la publication d’un&nbsp;livre.</p>
  254. <hr />
  255. <blockquote>
  256. <p>💚 Les personnes qui perdurent dans ma vie,<br />
  257. c’est en partie à travers/grâce à leurs écrits,<br />
  258. à leurs carnets,<br />
  259. à leur manière de (se) raconter,<br />
  260. de documenter (en public) leurs&nbsp;pensées.</p>
  261. <p>Quand je te lis,<br />
  262. je grandis.<br />
  263. Quand on se (re)voit,<br />
  264. c’était comme si c’était hier — quelque chose comme&nbsp;ça.</p>
  265. <p><cite><em><a href="https://thom4.net/2023/02/01/carnets/">☕️ Journal&nbsp;: Carnets</a></em>&nbsp;(<a href="/david/cache/2023/09c0739036ea4a8b6c985e127fe7e3c8/">cache</a>)</cite></p>
  266. </blockquote>
  267. <h2>
  268. <a href="/david/2023/01/20/" title="Lien permanent vers cet article">Lettres</a> (2023-01-20)
  269. </h2>
  270. <details>
  271. <summary>Déplier pour lire le contenu de la publication</summary>
  272. <blockquote lang="en">
  273. <p>This is how it all&nbsp;started:</p>
  274. <p>We asked our friends to write a letter to their great great great grandchildren because we found the way to preserve their letters for a thousand&nbsp;years.</p>
  275. <p><cite><em><a href="https://www.letters-to-the-future.com/">Letters to the&nbsp;future</a></em></cite></p>
  276. </blockquote>
  277. <p>Cette initiative m’émeut. L’idée, l’exécution, le résultat, toutes les étapes comportent leur lot d’espoir <em>et</em> de nostalgie. Une boule de <a href="/david/stream/2018/05/16/">solastalgie</a> qui fait mal à <a href="/david/stream/2019/07/02/">mon anxiété</a>.</p>
  278. <p>Comme une lettre à&nbsp;l’amer.</p>
  279. <blockquote lang="en">
  280. <p>This book brings together the polar opposites of negative and&nbsp;positive.</p>
  281. <p>On one hand, it shows optimism, hope and compassion for the future of the planet. On the other hand, it shows the ever lasting detriment of our actions when it comes to single-use&nbsp;plastic.</p>
  282. <p><cite><em>Ibid.</em></cite></p>
  283. </blockquote>
  284. <hr />
  285. <blockquote>
  286. <p>ETERNESIA est un projet humaniste dont l’objectif est d’inclure chaque existence au sein du patrimoine immatériel de l’humanité, en permettant à tous ceux qui le désirent de laisser un ensemble de traces numériques de leur vie qui seront conservées sans limite de&nbsp;durée.</p>
  287. <p>ETERNESIA est porteur d’<mark>un nouveau droit de l’homme, celui du droit à la mémoire et à la postérité numérique,</mark> dont le droit à l’oubli fait aussi partie intégrante. ETERNESIA est un projet à but non lucratif, indépendant de toute tradition religieuse et de toute idéologie politique. ETERNESIA est par nature philanthropique, éthique et universel, ouvert à tous, sans discrimination d’aucune&nbsp;sorte.</p>
  288. <p><cite><em><a href="http://eternesia.org/">ETERNESIA — Traces&nbsp;d’Eternité</a></em></cite></p>
  289. </blockquote>
  290. </details>
  291. </main>
  292. <hr>
  293. <footer>
  294. <p>
  295. <nobr>
  296. <a href="/david/" title="Aller à l’accueil">
  297. <svg class="icon icon-home">
  298. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-home"></use>
  299. </svg>
  300. Accueil</a>
  301. </nobr>
  302. <nobr>
  303. <a href="/david/log/" title="Accès au flux RSS">
  304. <svg class="icon icon-rss2">
  305. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-rss2"></use>
  306. </svg>
  307. Suivre</a>
  308. </nobr>
  309. <nobr>
  310. <a href="http://larlet.com"
  311. title="Go to my English profile"
  312. data-instant>
  313. <svg class="icon icon-user-tie">
  314. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-user-tie"></use>
  315. </svg>
  316. Pro</a>
  317. </nobr>
  318. <nobr>
  319. <a href="mailto:david%40larlet.fr" title="Envoyer un courriel">
  320. <svg class="icon icon-mail">
  321. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-mail"></use>
  322. </svg>
  323. Email</a>
  324. </nobr>
  325. <nobr>
  326. <abbr class="nowrap"
  327. title="Hébergeur : Alwaysdata, 62 rue Tiquetonne 75002 Paris, +33184162340">
  328. <svg class="icon icon-hammer2">
  329. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-hammer2"></use>
  330. </svg>
  331. Légal</abbr>
  332. </nobr>
  333. </p>
  334. <template id="theme-selector">
  335. <form>
  336. <fieldset>
  337. <legend>
  338. <svg class="icon icon-brightness-contrast">
  339. <use xlink:href="/static/david/icons2/symbol-defs-2022-03.svg#icon-brightness-contrast"></use>
  340. </svg>
  341. Thème
  342. </legend>
  343. <label>
  344. <input type="radio" value="auto" name="chosen-color-scheme" checked>
  345. Auto
  346. </label>
  347. <label>
  348. <input type="radio" value="dark" name="chosen-color-scheme">
  349. Foncé
  350. </label>
  351. <label>
  352. <input type="radio" value="light" name="chosen-color-scheme">
  353. Clair
  354. </label>
  355. </fieldset>
  356. </form>
  357. </template>
  358. </footer>
  359. <script src="/static/david/js/instantpage-5.1.0.min.js" type="module"></script>
  360. <script>
  361. function loadThemeForm(templateName) {
  362. const themeSelectorTemplate = document.querySelector(templateName)
  363. const form = themeSelectorTemplate.content.firstElementChild
  364. themeSelectorTemplate.replaceWith(form)
  365. form.addEventListener('change', (e) => {
  366. const chosenColorScheme = e.target.value
  367. localStorage.setItem('theme', chosenColorScheme)
  368. toggleTheme(chosenColorScheme)
  369. })
  370. const selectedTheme = localStorage.getItem('theme')
  371. if (selectedTheme && selectedTheme !== 'undefined') {
  372. form.querySelector(`[value="${selectedTheme}"]`).checked = true
  373. }
  374. }
  375. const prefersColorSchemeDark = '(prefers-color-scheme: dark)'
  376. window.addEventListener('load', () => {
  377. let hasDarkRules = false
  378. for (const styleSheet of Array.from(document.styleSheets)) {
  379. let mediaRules = []
  380. for (const cssRule of styleSheet.cssRules) {
  381. if (cssRule.type !== CSSRule.MEDIA_RULE) {
  382. continue
  383. }
  384. // WARNING: Safari does not have/supports `conditionText`.
  385. if (cssRule.conditionText) {
  386. if (cssRule.conditionText !== prefersColorSchemeDark) {
  387. continue
  388. }
  389. } else {
  390. if (cssRule.cssText.startsWith(prefersColorSchemeDark)) {
  391. continue
  392. }
  393. }
  394. mediaRules = mediaRules.concat(Array.from(cssRule.cssRules))
  395. }
  396. // WARNING: do not try to insert a Rule to a styleSheet you are
  397. // currently iterating on, otherwise the browser will be stuck
  398. // in a infinite loop…
  399. for (const mediaRule of mediaRules) {
  400. styleSheet.insertRule(mediaRule.cssText)
  401. hasDarkRules = true
  402. }
  403. }
  404. if (hasDarkRules) {
  405. loadThemeForm('#theme-selector')
  406. }
  407. })
  408. </script>
  409. </body>
  410. </html>