kalvn's links
Tag cloud
Picture wall
Daily
RSS Feed
  • RSS Feed
  • Daily Feed
  • Weekly Feed
  • Monthly Feed
Filters

Links per page

  • 20 links
  • 50 links
  • 100 links

Filters

Untagged links
Detect whether a click happens inside or outside of an element https://twitter.com/MichaelThiessen/status/1595386729678372866?s=20&t=GUNU9c3mgDE96ERzNsQoDA
24/11/2022 00:08:44

Je ne connaissais pas la fonction contains sur un Node HTML, qui permet de savoir si un élément en contient un autre. Idéal pour se passer des libraires type vue-clickaway.

Plus d'infos : https://developer.mozilla.org/en-US/docs/Web/API/Node/contains

javascript astuce
3845 links, including 129 private
Shaarli - The personal, minimalist, super fast, database-free, bookmarking service by the Shaarli community - Theme by kalvn