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.
It's probably better structure-wise to have it all consolidated in
bobatheme. Then bbaovanc.com is only concerned about content, not stuff
that I declared to be specific to my site. This came from when I had
multiple sites running bobatheme in the background, so now it's just an
arbitrary, legacy distinction.
Fixes#86
Moved this completely to bbaovanc.com repo. I think it was here as a
placeholder purely because of some issue with global resources not
working in the past. It seems like it maybe works fine now though.
- Use JS to get it directly from the code block instead of needing a
separate `pre.code-raw` to get it from. That makes it possible to:
- bashsession: Don't copy prompt or command output