making it look better
This commit is contained in:
parent
ad84a79335
commit
30255be018
22 changed files with 2567 additions and 72 deletions
10
static/js/usability.js
Normal file
10
static/js/usability.js
Normal 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();
|
||||
}
|
||||
})
|
Loading…
Add table
Add a link
Reference in a new issue