Repository with sources and generator of https://larlet.fr/david/ https://larlet.fr/david/
Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

index.html 26KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517
  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. Personnel
  14. — David Larlet</title>
  15. <meta name="description" content="Mes lieux de lecture et d’écriture sont très associés. J’écris parce que je lis.">
  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. <!-- Is that even respected? Retrospectively? What a shAItshow…
  48. https://neil-clarke.com/block-the-bots-that-feed-ai-models-by-scraping-your-website/ -->
  49. <meta name="robots" content="noai, noimageai">
  50. <!-- Documented, feel free to shoot an email. -->
  51. <link rel="stylesheet" href="/static/david/css/style_2024-02-03.css">
  52. <!-- See https://www.zachleat.com/web/comprehensive-webfonts/ for the trade-off. -->
  53. <link rel="preload"
  54. href="/static/david/css/fonts/century_supra_ot_a_regular.woff2"
  55. as="font"
  56. type="font/woff2"
  57. media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  58. crossorigin>
  59. <link rel="preload"
  60. href="/static/david/css/fonts/century_supra_ot_a_bold.woff2"
  61. as="font"
  62. type="font/woff2"
  63. media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  64. crossorigin>
  65. <link rel="preload"
  66. href="/static/david/css/fonts/century_supra_ot_a_italic.woff2"
  67. as="font"
  68. type="font/woff2"
  69. media="(prefers-color-scheme: light), (prefers-color-scheme: no-preference)"
  70. crossorigin>
  71. <link rel="preload"
  72. href="/static/david/css/fonts/century_supra_ot_b_regular.woff2"
  73. as="font"
  74. type="font/woff2"
  75. media="(prefers-color-scheme: dark)"
  76. crossorigin>
  77. <link rel="preload"
  78. href="/static/david/css/fonts/century_supra_ot_b_bold.woff2"
  79. as="font"
  80. type="font/woff2"
  81. media="(prefers-color-scheme: dark)"
  82. crossorigin>
  83. <link rel="preload"
  84. href="/static/david/css/fonts/century_supra_ot_b_italic.woff2"
  85. as="font"
  86. type="font/woff2"
  87. media="(prefers-color-scheme: dark)"
  88. crossorigin>
  89. <script>
  90. function toggleTheme(themeName) {
  91. document.documentElement.classList.toggle(
  92. 'forced-dark',
  93. themeName === 'dark'
  94. )
  95. document.documentElement.classList.toggle(
  96. 'forced-light',
  97. themeName === 'light'
  98. )
  99. }
  100. const selectedTheme = localStorage.getItem('theme')
  101. if (selectedTheme !== 'undefined') {
  102. toggleTheme(selectedTheme)
  103. }
  104. </script>
  105. <style type="text/css">
  106. .tippy-content {
  107. min-width: 280px;
  108. padding: .5rem;
  109. font-size: calc(var(--fluid-0) * 0.8);
  110. font-family: var(--labor-font);
  111. letter-spacing: initial;
  112. text-align: left;
  113. }
  114. .tippy-content h3 {
  115. margin-top: 0;
  116. }
  117. .tippy-content h3 img {
  118. max-width: 2rem;
  119. max-height: 2rem;
  120. display: inline-block;
  121. }
  122. .tippy-content .tippy-links {
  123. display: flex;
  124. justify-content: space-around;
  125. }
  126. .tippy-content a {
  127. padding: .4rem;
  128. color: #F06048;
  129. }
  130. </style>
  131. <body data-instant-intensity="viewport-all">
  132. <article>
  133. <header>
  134. <hgroup>
  135. <h1>Personnel</h1>
  136. <p>Le <time datetime="2024-01-12">12 janvier 2024</time></p>
  137. </hgroup>
  138. </header>
  139. <nav>
  140. <p>
  141. <a rel="prev"
  142. href="/david/2024/01/11/"
  143. title="Publication précédente : Impact">← Précédent</a> •
  144. <a href="/david/" title="Aller à l’accueil" rel="up">Accueil</a>
  145. <a href="/david/recherche/"
  146. title="Aller à la page de recherche"
  147. rel="search" data-no-instant>Recherche</a>
  148. • <a rel="next"
  149. href="/david/2024/01/13/"
  150. title="Publication suivante : Wuwei">Suivant →</a>
  151. </p>
  152. </nav>
  153. <blockquote>
  154. <p>Mes lieux de lecture et d’écriture sont très associés. J’écris parce que je&nbsp;lis.</p>
  155. <p>J’écris de deux&nbsp;façons.</p>
  156. <p><cite><em><a data-link-domain="la-grange.net" href="https://www.la-grange.net/2024/01/11/pourquoi" hreflang="fr"
  157. title="Consultation de l’article">je ne sais pas pourquoi</a>
  158. <a href="/david/cache/2024/87c468a4eddabe5d2c28e902d7f17504/" hreflang="fr"
  159. data-tippy data-description=""
  160. data-source="https://www.la-grange.net/2024/01/11/pourquoi"
  161. data-date="2024-01-11"
  162. data-favicon="https://www.la-grange.net/favicon.ico"
  163. data-domain="la-grange.net"
  164. ><svg xmlns="http://www.w3.org/2000/svg"
  165. width="24" height="24" viewBox="0 0 24 24" fill="none"
  166. stroke="currentColor" stroke-width="2" stroke-linecap="square"
  167. stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle>
  168. <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
  169. <line x1="12" y1="17" x2="12.01" y2="17"></line>
  170. </svg>
  171. <span class="sr-only">[archive]</span></a></em></cite></p>
  172. </blockquote>
  173. <p>Karl nous parle de ses moments / lieux d’écriture et de lecture. Je me suis souvent posé cette question et je reconnais des <abbr title="Où Lire, Où Écrire.">oloés</abbr> communs (une <a data-link-domain="tw5.immateriel.fr" href="https://tw5.immateriel.fr/wiki/immateriel/b/YXGEDFB" hreflang="fr"
  174. title="Consultation de l’article">définition par ici</a>
  175. <a href="/david/cache/2024/89dbef9daef24f311b6401cef62f5855/" hreflang="fr"
  176. data-tippy data-description="Une chaise, un lit, un canapé, une baignoire, une place de métro, un banc dans un parc, un muret. Un fauteuil à roulettes, une file d’attente, une branche, une buche, un abri de tramway, une marche d’escalier. Une plage, un kiosque, un socle de statue, un recoin de cafétéria."
  177. data-source="https://tw5.immateriel.fr/wiki/immateriel/b/YXGEDFB"
  178. data-date="2024-01-11"
  179. data-favicon="https://tw5.immateriel.fr/wiki/immateriel/b/favicon.ico"
  180. data-domain="tw5.immateriel.fr"
  181. ><svg xmlns="http://www.w3.org/2000/svg"
  182. width="24" height="24" viewBox="0 0 24 24" fill="none"
  183. stroke="currentColor" stroke-width="2" stroke-linecap="square"
  184. stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle>
  185. <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
  186. <line x1="12" y1="17" x2="12.01" y2="17"></line>
  187. </svg>
  188. <span class="sr-only">[archive]</span></a>). Mes moments et lieux sont beaucoup plus traditionnels, c’est principalement le soir et dans mon bureau-chambre. Mais il n’y a pas de règle stricte pour autant. Parfois, l’envie d’écrire va être trop forte lors d’une lecture en cours de journée, d’autres fois je vais me réveiller tôt et commencer à écrire dans ma tête depuis mon lit ou sous la douche. Une idée peut arriver et/ou s’étirer en faisant du sport ou dans des contextes&nbsp;routiniers.</p>
  189. <p>Et puis il y a l’écriture qui appelle une autre écriture, ce moment de <a data-link-domain="blog.jim-nielsen.com" href="https://blog.jim-nielsen.com/2023/blogging-and-compositing/" hreflang="en"
  190. title="Consultation de l’article (anglais)">compost</a>
  191. <a href="/david/cache/2024/5030196507bcf3e06162e9eaed40abbe/" hreflang="en"
  192. data-tippy data-description="Writing about the big beautiful mess that is making things for the world wide web."
  193. data-source="https://blog.jim-nielsen.com/2023/blogging-and-compositing/"
  194. data-date="2024-01-11"
  195. data-favicon="https://blog.jim-nielsen.com/favicon.ico"
  196. data-domain="blog.jim-nielsen.com"
  197. ><svg xmlns="http://www.w3.org/2000/svg"
  198. width="24" height="24" viewBox="0 0 24 24" fill="none"
  199. stroke="currentColor" stroke-width="2" stroke-linecap="square"
  200. stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle>
  201. <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
  202. <line x1="12" y1="17" x2="12.01" y2="17"></line>
  203. </svg>
  204. <span class="sr-only">[archive]</span></a> où l’on sent qu’il y avait une deuxième vie possible à cette réflexion. Un autre <a href="/david/stream/2018/04/07/">tour de spirale</a>.</p>
  205. <blockquote lang="en">
  206. <p><strong>marketing feels like a layer of veneer, full of shiny promises in order to reel you in, where the goal is to collect you — as a part of an&nbsp;“audience.”</strong></p>
  207. <p>but I think, in this race to “build an audience,” somewhere in the process, something is missing, left behind — perhaps, a sense of humanity, or individual complexity, or truth, or&nbsp;intimacy.</p>
  208. <p>I don’t want to feel like I’m just an email address, an IP address, or a potential “lead.” I want to feel fully seen. human.</p>
  209. <p>[…] instead of “building an audience,” build a world. <mark>build a digital garden-ecosystem, that exists</mark> — first and primarily — <em>for itself</em>. a world that doesn’t need likes, traffic, subscribers, or clicks — in order to validate its&nbsp;existence.</p>
  210. <p><cite><em><a data-link-domain="keningzhu.com" href="https://keningzhu.com/journal/build-a-world-not-an-audience" hreflang="en"
  211. title="Consultation de l’article (anglais)">build a world, not an audience</a>
  212. <a href="/david/cache/2024/cd2fda3dae5d89990f73fbdaa1c3b491/" hreflang="en"
  213. data-tippy data-description="don’t chase your audience, let them find your world."
  214. data-source="https://keningzhu.com/journal/build-a-world-not-an-audience"
  215. data-date="2024-01-11"
  216. data-favicon="https://images.squarespace-cdn.com/content/v1/51e8148de4b01c1eb79c1977/1547586234044-PLNK9XVHXBYWZ5A1673H/favicon.ico?format=100w"
  217. data-domain="keningzhu.com"
  218. ><svg xmlns="http://www.w3.org/2000/svg"
  219. width="24" height="24" viewBox="0 0 24 24" fill="none"
  220. stroke="currentColor" stroke-width="2" stroke-linecap="square"
  221. stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle>
  222. <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
  223. <line x1="12" y1="17" x2="12.01" y2="17"></line>
  224. </svg>
  225. <span class="sr-only">[archive]</span></a></em></cite></p>
  226. </blockquote>
  227. <a href="#hr-26" title="Lien vers cette section de la page"><hr id="hr-26" /></a>
  228. <blockquote lang="en">
  229. <p>These are all very interesting questions but for me, the more pressing question is a slightly different one: which <em>you</em> is your personal site representing? We often don’t pay too much attention to this but <mark>we all have different ways of being&nbsp;ourselves.</mark></p>
  230. <p>So which one of these should my site represent? Should my site be the personal site of the Manu freelance web developer, with his interests in digital typography, minimal design, and simple websites? Or should represent the slightly competitive on the basketball court Manu, who doesn’t really care all that much about winning but is concerned about having fun? Or maybe it should represent Manu the romantic partner, with all his worry about the practical aspects of life but also full of affection for his partner? The list goes on and&nbsp;on.</p>
  231. <p><cite><em><a data-link-domain="manuelmoreale.com" href="https://manuelmoreale.com/the-personality-of-a-personal-website" hreflang="en"
  232. title="Consultation de l’article (anglais)">The personality of a personal website</a>
  233. <a href="/david/cache/2024/e5c1ca8e3beeb0d256a064832c3566aa/" hreflang="en"
  234. data-tippy data-description="With his “ I am a poem I am not software” post Robin touched on an interesting problem related to personal websites. I’m not going to summarise …"
  235. data-source="https://manuelmoreale.com/the-personality-of-a-personal-website"
  236. data-date="2024-01-11"
  237. data-favicon="https://manuelmoreale.com/favicon.ico"
  238. data-domain="manuelmoreale.com"
  239. ><svg xmlns="http://www.w3.org/2000/svg"
  240. width="24" height="24" viewBox="0 0 24 24" fill="none"
  241. stroke="currentColor" stroke-width="2" stroke-linecap="square"
  242. stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle>
  243. <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
  244. <line x1="12" y1="17" x2="12.01" y2="17"></line>
  245. </svg>
  246. <span class="sr-only">[archive]</span></a></em></cite></p>
  247. </blockquote>
  248. <p>Je m’interroge souvent sur ce que j’essaye de cacher ici. Ce que cela raconte de ma personnalité, si l’image retournée est <a data-link-domain="thom4.net" href="https://thom4.net/2023/02/01/carnets/" hreflang="fr"
  249. title="Consultation de l’article">vraiment fidèle</a>
  250. <a href="/david/cache/2024/09c0739036ea4a8b6c985e127fe7e3c8/" hreflang="fr"
  251. data-tippy data-description="J’aurais pu m’en rendre compte il y a vingt ans, mais il me manquait le recul de deux décennies."
  252. data-source="https://thom4.net/2023/02/01/carnets/"
  253. data-date="2024-01-11"
  254. data-favicon="https://thom4.net/assets/favicon-32x32.png"
  255. data-domain="thom4.net"
  256. ><svg xmlns="http://www.w3.org/2000/svg"
  257. width="24" height="24" viewBox="0 0 24 24" fill="none"
  258. stroke="currentColor" stroke-width="2" stroke-linecap="square"
  259. stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle>
  260. <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
  261. <line x1="12" y1="17" x2="12.01" y2="17"></line>
  262. </svg>
  263. <span class="sr-only">[archive]</span></a> après tout. L’écriture en ligne reste une forme d’expression qui s’attend au regard des autres. Si j’entretiens un journal <em>extime</em> depuis tant d’années c’est bien qu’il y a un enjeu à ce niveau&nbsp;là.</p>
  264. <a href="#hr-27" title="Lien vers cette section de la page"><hr id="hr-27" /></a>
  265. <blockquote lang="en">
  266. <p>We shape our structures and afterward our structures shape us, but the <em>we</em> of the first clause and the <em>us</em> of the second <mark>are not the&nbsp;same.</mark></p>
  267. <p><cite><a data-link-domain="erinkissane.com" href="https://erinkissane.com/tomorrow-and-tomorrow-and-tomorrow" hreflang="en"
  268. title="Consultation de l’article (anglais)">Tomorrow &amp; Tomorrow &amp; Tomorrow</a>
  269. <a href="/david/cache/2024/62bf3ce6ef66e39b7f250a6123d92e66/" hreflang="en"
  270. data-tippy data-description="We realize then that it is just the patterns of events in space which are repeating in the building or the town: and nothing else."
  271. data-source="https://erinkissane.com/tomorrow-and-tomorrow-and-tomorrow"
  272. data-date="2024-01-11"
  273. data-favicon=""
  274. data-domain="erinkissane.com"
  275. ><svg xmlns="http://www.w3.org/2000/svg"
  276. width="24" height="24" viewBox="0 0 24 24" fill="none"
  277. stroke="currentColor" stroke-width="2" stroke-linecap="square"
  278. stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle>
  279. <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
  280. <line x1="12" y1="17" x2="12.01" y2="17"></line>
  281. </svg>
  282. <span class="sr-only">[archive]</span></a></cite></p>
  283. </blockquote>
  284. <p>En rebond de la <a data-link-domain="quaternum.net" href="https://www.quaternum.net/2024/01/08/tools-shape-practices-shape-tools/" hreflang="fr"
  285. title="Consultation de l’article">découverte d’Antoine</a>
  286. <a href="/david/cache/2024/34fec23081019abd741e0578b050c40e/" hreflang="fr"
  287. data-tippy data-description="Je découvre (très) tardivement ce _mantra_, ou plutôt ce positionnement récursif et infini : les pratiques modèlent les outils qui modèlent les pratiques etc."
  288. data-source="https://www.quaternum.net/2024/01/08/tools-shape-practices-shape-tools/"
  289. data-date="2024-01-11"
  290. data-favicon=""
  291. data-domain="quaternum.net"
  292. ><svg xmlns="http://www.w3.org/2000/svg"
  293. width="24" height="24" viewBox="0 0 24 24" fill="none"
  294. stroke="currentColor" stroke-width="2" stroke-linecap="square"
  295. stroke-linejoin="round"><circle cx="12" cy="12" r="10"></circle>
  296. <path d="M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3"></path>
  297. <line x1="12" y1="17" x2="12.01" y2="17"></line>
  298. </svg>
  299. <span class="sr-only">[archive]</span></a>. Une autre façon d’être&nbsp;dé·formé.</p>
  300. <a href="#hr-28" title="Lien vers cette section de la page"><hr id="hr-28" /></a>
  301. <p>Deux outils autour de la transformation de&nbsp;vidéos&nbsp;:</p>
  302. <ul>
  303. <li><a data-link-domain="ybouane.com" href="https://ybouane.com/ffmpeg-ui">FFMPEG&nbsp;UI</a></li>
  304. <li><a data-link-domain="mifi.no" href="https://mifi.no/losslesscut/">LosslessCut</a></li>
  305. </ul>
  306. <nav>
  307. <p>
  308. <a href="/david/2024/ecriture/"
  309. title="Liste de tous les articles 2024 associés à cette étiquette"
  310. rel="tag">#écriture</a>
  311. <a href="/david/2024/processus/"
  312. title="Liste de tous les articles 2024 associés à cette étiquette"
  313. rel="tag">#processus</a>
  314. <a href="/david/2024/psychologie/"
  315. title="Liste de tous les articles 2024 associés à cette étiquette"
  316. rel="tag">#psychologie</a>
  317. <a href="/david/2024/#tags" title="Liste de toutes les étiquettes 2024">tous ?</a>
  318. </p>
  319. </nav>
  320. <nav>
  321. <p>
  322. <a rel="prev"
  323. href="/david/2024/01/11/"
  324. title="Publication précédente : Impact">← Précédent</a> •
  325. <a href="/david/2024/" title="Liste des publications récentes">↑ En 2024</a>
  326. • <a rel="next"
  327. href="/david/2024/01/13/"
  328. title="Publication suivante : Wuwei">Suivant →</a>
  329. </p>
  330. </nav>
  331. <form action="/david/recherche/" method="get">
  332. <fieldset>
  333. <legend>Recherche</legend>
  334. <label for="input-search">Termes de votre recherche :</label>
  335. <input id="input-search" type="search" name="s" aria-describedby="indexation-infos" required>
  336. <input type="submit" value="Chercher">
  337. <p id="indexation-infos">
  338. <small>
  339. Seuls les contenus de ces 8 dernières années sont indexés.
  340. </small>
  341. </p>
  342. </fieldset>
  343. </form>
  344. <aside>
  345. <theme-toggle></theme-toggle>
  346. </aside>
  347. </article>
  348. <hr>
  349. <footer>
  350. <p>
  351. <a href="/david/" title="Aller à l’accueil">Accueil</a>
  352. <a href="/david/log/" title="Accès au flux RSS">Suivre</a>
  353. <a href="http://larlet.com"
  354. title="Go to my English profile"
  355. data-instant>Pro</a>
  356. <a href="mailto:david%40larlet.fr" title="Envoyer un courriel">Email</a>
  357. <abbr title="Hébergeur : Alwaysdata, 62 rue Tiquetonne 75002 Paris, +33184162340">Légal</abbr>
  358. </p>
  359. <template id="theme-selector">
  360. <form>
  361. <style type="text/css">
  362. fieldset div {
  363. text-align: center;
  364. }
  365. </style>
  366. <fieldset>
  367. <legend>Thème</legend>
  368. <div>
  369. <label>
  370. <input type="radio" value="auto" name="chosen-color-scheme" checked>
  371. Auto
  372. </label>
  373. <label>
  374. <input type="radio" value="dark" name="chosen-color-scheme">
  375. Foncé
  376. </label>
  377. <label>
  378. <input type="radio" value="light" name="chosen-color-scheme">
  379. Clair
  380. </label>
  381. </div>
  382. </fieldset>
  383. </form>
  384. </template>
  385. </footer>
  386. <script src="/static/david/js/instantpage-5.1.0.min.js" type="module"></script>
  387. <script>
  388. class ThemeToggle extends HTMLElement {
  389. constructor() {
  390. super()
  391. const themeSelectorTemplate = document.querySelector('#theme-selector')
  392. const form = themeSelectorTemplate.content.firstElementChild
  393. this.attachShadow({ mode: 'open' })
  394. this.shadowRoot.appendChild(form.cloneNode(true))
  395. }
  396. connectedCallback() {
  397. const form = this.shadowRoot.querySelector('form')
  398. form.addEventListener('change', (e) => {
  399. const chosenColorScheme = e.target.value
  400. localStorage.setItem('theme', chosenColorScheme)
  401. toggleTheme(chosenColorScheme)
  402. })
  403. const selectedTheme = localStorage.getItem('theme')
  404. if (selectedTheme && selectedTheme !== 'undefined') {
  405. form.querySelector(`[value="${selectedTheme}"]`).checked = true
  406. }
  407. }
  408. }
  409. const prefersColorSchemeDark = '(prefers-color-scheme: dark)'
  410. window.addEventListener('load', () => {
  411. let colorsLayer = undefined
  412. let hasDarkRules = false
  413. for (const styleSheet of Array.from(document.styleSheets)) {
  414. let mediaRules = []
  415. for (const layerRule of styleSheet.cssRules) {
  416. if (!(layerRule instanceof CSSLayerBlockRule)) {
  417. continue
  418. }
  419. if (layerRule.name === 'colors') {
  420. colorsLayer = layerRule
  421. }
  422. for (const cssRule of layerRule.cssRules) {
  423. if (cssRule.type !== CSSRule.MEDIA_RULE) {
  424. continue
  425. }
  426. // WARNING: Safari does not have/supports `conditionText`.
  427. if (cssRule.conditionText) {
  428. if (cssRule.conditionText !== prefersColorSchemeDark) {
  429. continue
  430. }
  431. } else {
  432. if (cssRule.cssText.startsWith(prefersColorSchemeDark)) {
  433. continue
  434. }
  435. }
  436. mediaRules = mediaRules.concat(Array.from(cssRule.cssRules))
  437. }
  438. }
  439. // WARNING: do not try to insert a Rule to a styleSheet you are
  440. // currently iterating on, otherwise the browser will be stuck
  441. // in a infinite loop…
  442. for (const mediaRule of mediaRules) {
  443. // Safari requires the `0` second parameter (even if default).
  444. colorsLayer.insertRule(mediaRule.cssText, 0)
  445. hasDarkRules = true
  446. }
  447. }
  448. if (hasDarkRules) {
  449. if ('customElements' in window && !customElements.get('theme-toggle')) {
  450. customElements.define('theme-toggle', ThemeToggle)
  451. }
  452. }
  453. })
  454. </script>
  455. <script src="/static/david/js/popper-2.11.8.min.js"></script>
  456. <script src="/static/david/js/tippy-bundle-6.3.7.umd.min.js"></script>
  457. <script>
  458. tippy('[data-tippy]', {
  459. content(reference) {
  460. reference.addEventListener('click', (e) => e.preventDefault())
  461. return `
  462. <h3 lang="fr">
  463. <img src="${reference.dataset.favicon}" loading="lazy">
  464. <a href="${reference.dataset.source}"
  465. >Article sur ${reference.dataset.domain}</a></h3>
  466. <p lang="${reference.hreflang}"><em>${reference.dataset.description}</em></p>
  467. <div class="tippy-links" lang="fr">
  468. <a href="${reference.href}">Archive au ${reference.dataset.date}</a>
  469. </div>
  470. `
  471. },
  472. allowHTML: true,
  473. interactive: true,
  474. delay: [150, 700],
  475. hideOnClick: false
  476. })
  477. </script>
  478. </body>
  479. </html>