Files
bobatheme/layouts/_markup
bbaovanc b67e3f4671 js: Define function for copy to clipboard and provide it in onClick
Instead of looping through all the code blocks at onload, just put an
onClick tag in the HTML template, which calls a global function.

This also improves the semantics since we aren't abusing href to be
javascript.

Also improves the writeText function call, since that method actually
returns a Promise which we should be waiting on. It technically worked
before because Promise starts executing instantly in JS, without being
awaited.
2026-09-18 14:21:47 -05:00
..