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.

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  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>Perles — David Larlet</title>
  13. <!-- That good ol' feed, subscribe :). -->
  14. <link rel="alternate" type="application/atom+xml" title="Feed" href="/david/log/">
  15. <!-- Generated from https://realfavicongenerator.net/ such a mess. -->
  16. <link rel="apple-touch-icon" sizes="180x180" href="/static/david/icons2/apple-touch-icon.png">
  17. <link rel="icon" type="image/png" sizes="32x32" href="/static/david/icons2/favicon-32x32.png">
  18. <link rel="icon" type="image/png" sizes="16x16" href="/static/david/icons2/favicon-16x16.png">
  19. <link rel="manifest" href="/static/david/icons2/site.webmanifest">
  20. <link rel="mask-icon" href="/static/david/icons2/safari-pinned-tab.svg" color="#07486c">
  21. <link rel="shortcut icon" href="/static/david/icons2/favicon.ico">
  22. <meta name="msapplication-TileColor" content="#f0f0ea">
  23. <meta name="msapplication-config" content="/static/david/icons2/browserconfig.xml">
  24. <meta name="theme-color" content="#f0f0ea">
  25. <!-- Documented, feel free to shoot an email. -->
  26. <link rel="stylesheet" href="/static/david/css/style_2020-04-25.css">
  27. <!-- See https://www.zachleat.com/web/comprehensive-webfonts/ for the trade-off. -->
  28. <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>
  29. <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>
  30. <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>
  31. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_regular.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  32. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_bold.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  33. <link rel="preload" href="/static/david/css/fonts/triplicate_t3_italic.woff2" as="font" type="font/woff2" media="(prefers-color-scheme: dark)" crossorigin>
  34. <body class="remarkdown h1-underline h2-underline h3-underline hr-center ul-star pre-tick">
  35. <article>
  36. <h1>Perles</h1>
  37. <nav>
  38. <p class="center">
  39. <a rel="prev" href="/david/2020/06/18/" title="Publication précédente : Mouvements">←</a> •
  40. <a href="/david/" title="Aller à l’accueil" tabindex="1">🏠</a>
  41. </p>
  42. </nav>
  43. <hr>
  44. <h2 id="ok-google">OK Google <a href="#ok-google" title="Ancre vers cette partie" aria-hidden="true">#</a></h2>
  45. <blockquote>
  46. <p><em>[Un matin après avoir traîné dans le lit]</em><br />
  47. — OK Google, lève-toi !<br />
  48. — Gni ?!</p>
  49. </blockquote>
  50. <p>Ce matin là, j’ai appris que les enfants de six ans canadiens ne jouent plus à « Jacques à dit ».</p>
  51. <p>Je ne m’en suis toujours pas remis…</p>
  52. <h2 id="empathie">Empathie <a href="#empathie" title="Ancre vers cette partie" aria-hidden="true">#</a></h2>
  53. <blockquote>
  54. <p>— Tu vois si tu m’expliques ça me permet d’avoir de l’empathie pour toi.<br />
  55. — C’est quoi l’empathie ?<br />
  56. — C’est essayer de ressentir ce que ressentent les autres.<br />
  57. <em>[Lâche un gros pet.]</em><br />
  58. — Mais c’est pour t’aider papa !</p>
  59. </blockquote>
  60. <p>:facepalm:</p>
  61. <h2 id="consentement">Consentement <a href="#consentement" title="Ancre vers cette partie" aria-hidden="true">#</a></h2>
  62. <blockquote>
  63. <p><em>[Discussion après avoir vu un clip d’Angèle chez des amis, en particulier <a href="https://www.youtube.com/watch?v=Hi7Rx3En7-k&amp;t=120">cette partie</a>]</em><br />
  64. — Mais alors dans La Belle au Bois Dormant, le Prince il devrait demander à la Princesse avant de l’embrasser ?</p>
  65. </blockquote>
  66. <p>#BalanceTonDisney</p>
  67. <p>(Il n’a jamais vu le dessin animé, on le lui a raconté.)</p>
  68. <h2 id="imagination">Imagination <a href="#imagination" title="Ancre vers cette partie" aria-hidden="true">#</a></h2>
  69. <blockquote>
  70. <p>— C’est quoi un figurant ?<br />
  71. <em>[Longue explication à base de films.]</em><br />
  72. — J’ai pas tout compris mais t’as l’air de bien t’éclater avec ton imagination Papa.</p>
  73. </blockquote>
  74. <p>Un bon rappel que <em>la</em> réalité est <em>notre</em> réalité. Que l’imagination est importante. Que le rire est communicatif.</p>
  75. <p>Et qu’un enfant m’est nécessaire.</p>
  76. <h2 id="haine">Haine <a href="#haine" title="Ancre vers cette partie" aria-hidden="true">#</a></h2>
  77. <blockquote>
  78. <p><em>[Discussion autour des commentaires suite à un <a href="https://twitter.com/Val_Plante/status/1261296992543813633">gazouillis de la mairesse</a>.]</em><br />
  79. — Il y a beaucoup de haine à Montréal en ce moment.<br />
  80. <em>[Part en courant dans le salon pour vérifier un truc et revient aussi vite.]</em><br />
  81. — Mais non Papa, il n’y a qu’un « n » à Mo<em>n</em>tréal !</p>
  82. </blockquote>
  83. <p>Il y a un « m » dans humour.</p>
  84. <h2 id="adieu">Adieu <a href="#adieu" title="Ancre vers cette partie" aria-hidden="true">#</a></h2>
  85. <blockquote>
  86. <p><em>[Juste avant de partir dans la forêt.]</em><br />
  87. — Adieu Papa.<br />
  88. — Ah ?!<br />
  89. — Bin oui, je t’aime bien mais vu que tu vas aller en prison quand la police va te trouver dans la forêt…</p>
  90. </blockquote>
  91. <p>La pression, quelle pression ?</p>
  92. <nav>
  93. <p class="center">
  94. <a rel="prev" href="/david/2020/06/18/" title="Publication précédente : Mouvements">←</a> •
  95. <a href="/david/2020/" title="Liste des publications récentes">↑</a>
  96. </p>
  97. </nav>
  98. </article>
  99. <hr>
  100. <footer>
  101. <p>
  102. <a href="/david/" title="Aller à l’accueil">🏠</a> •
  103. <a href="/david/log/" title="Accès au flux RSS">🤖</a> •
  104. <a href="http://larlet.com" title="Go to my English profile" data-instant>🇨🇦</a> •
  105. <a href="mailto:david%40larlet.fr" title="Envoyer un courriel">📮</a> •
  106. <abbr title="Hébergeur : Alwaysdata, 62 rue Tiquetonne 75002 Paris, +33184162340">🧚</abbr>
  107. </p>
  108. <template id="theme-selector">
  109. <form>
  110. <fieldset>
  111. <legend>Thème</legend>
  112. <label>
  113. <input type="radio" value="auto" name="chosen-color-scheme" checked> Auto
  114. </label>
  115. <label>
  116. <input type="radio" value="dark" name="chosen-color-scheme"> Foncé
  117. </label>
  118. <label>
  119. <input type="radio" value="light" name="chosen-color-scheme"> Clair
  120. </label>
  121. </fieldset>
  122. </form>
  123. </template>
  124. </footer>
  125. <script src="/static/david/js/instantpage-3.0.0.min.js" type="module" defer></script>
  126. <script type="text/javascript">
  127. /* This is a work in progress with Anthony https://ricaud.me */
  128. // TODISCUSS:
  129. // 1. give a way for the user to close that chooser?
  130. // 2. store preferences? Done using localStorage
  131. // 3. create the template from scratch in JS?
  132. // 4. how to make it generic? (no need for forced-dark/light existing rules)
  133. // Results from a Poll: https://mastodon.social/@dav/104093540923157521
  134. // Avoir un moyen de changer de thème d'un site à la main :
  135. // 49% => Utile
  136. // 23% => Pas utile
  137. // 9% => So 2000
  138. // 19% => Je veux le même
  139. // After 24 hours and 43 votes
  140. // A bit hard to interpret, I guess people wanting it found it useful too!
  141. function toggleTheme(themeName) {
  142. document.body.classList.toggle('forced-dark', themeName === 'dark')
  143. document.body.classList.toggle('forced-light', themeName === 'light')
  144. }
  145. function loadThemeForm(templateName) {
  146. const themeSelectorTemplate = document.querySelector(templateName)
  147. const form = themeSelectorTemplate.content.firstElementChild
  148. themeSelectorTemplate.replaceWith(form)
  149. form.addEventListener('change', (e) => {
  150. const chosenColorScheme = e.target.value
  151. localStorage.setItem('theme', chosenColorScheme)
  152. toggleTheme(chosenColorScheme)
  153. })
  154. const selectedTheme = localStorage.getItem('theme')
  155. if (selectedTheme !== 'undefined') {
  156. form.querySelector(`[value="${selectedTheme}"]`).checked = true
  157. toggleTheme(selectedTheme)
  158. }
  159. }
  160. const prefersColorSchemeDark = '(prefers-color-scheme: dark)'
  161. window.addEventListener('load', () => {
  162. let hasDarkRules = false
  163. for (const styleSheet of Array.from(document.styleSheets)) {
  164. let mediaRules = []
  165. for (const cssRule of styleSheet.cssRules) {
  166. if (cssRule.type !== CSSRule.MEDIA_RULE) {
  167. continue
  168. }
  169. // WARNING: Safari does not have/supports `conditionText`.
  170. if (cssRule.conditionText) {
  171. if (cssRule.conditionText !== prefersColorSchemeDark) {
  172. continue
  173. }
  174. } else {
  175. if (cssRule.cssText.startsWith(prefersColorSchemeDark)) {
  176. continue
  177. }
  178. }
  179. mediaRules = mediaRules.concat(Array.from(cssRule.cssRules))
  180. }
  181. // WARNING: do not try to insert a Rule to a styleSheet you are
  182. // currently iterating on, otherwise the browser will be stuck
  183. // in a infinite loop…
  184. for (const mediaRule of mediaRules) {
  185. styleSheet.insertRule(mediaRule.cssText)
  186. hasDarkRules = true
  187. }
  188. }
  189. if (hasDarkRules) {
  190. loadThemeForm('#theme-selector')
  191. }
  192. })
  193. </script>
  194. </body>
  195. </html>