feature: option to disallow text selecting
This commit is contained in:
parent
9bcd2650ae
commit
458b7c3904
4 changed files with 8 additions and 2 deletions
4
assets/js/selectable.js
Normal file
4
assets/js/selectable.js
Normal file
|
@ -0,0 +1,4 @@
|
|||
const selectable = '{{ .Site.Params.selectable }}'
|
||||
if (selectable === 'false') {
|
||||
document.documentElement.style = 'user-select:none'
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue