Jim Cheung

Wednesday, July 26, 2023

haven't update for couple months, mainly still working on my notebook project, adding more and more components, it is fun and addicted


this project is interesting: PRQL/prql

got no time for another language, but it is interesting


a good article on Threads and Goroutines

I really like the font used in this site: A 17th-century font in a 21st-century thesis

a good read: Notes on Puzzles


clojure stuffs:

Thursday, July 27, 2023

a trick to make web component focusable is:

if (!this.hasAttribute('tabindex')) {
  this.setAttribute('tabindex', 0);
}

even some elements (like button, input ...) able to set the flag but it's not useful, I need to focus the shadowroot in order to bind keyborard shortcuts

then use document.activeElement to determine whether the component is focused.

Blog Archive