making it look better

This commit is contained in:
りき萌 2023-08-18 17:04:12 +02:00
parent ad84a79335
commit 30255be018
22 changed files with 2567 additions and 72 deletions

10
static/js/usability.js Normal file
View file

@ -0,0 +1,10 @@
// Bits and pieces to make vanilla HTML just a bit more usable.
// We want to let the user have a selection on collapsible blocks without collapsing them when
// the user finishes marking their selection.
document.addEventListener("click", event => {
console.log(getSelection());
if (getSelection().type == "Range") {
event.preventDefault();
}
})