mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-05-26 12:32:25 +00:00
First working video page
This commit is contained in:
parent
23a7da45d3
commit
cbc3a2bf67
21 changed files with 3935 additions and 78 deletions
9
html/static/js/focus.js
Normal file
9
html/static/js/focus.js
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
document.addEventListener("mousedown", () => {
|
||||
document.body.classList.remove("show-focus")
|
||||
})
|
||||
|
||||
document.addEventListener("keydown", event => {
|
||||
if (event.key === "Tab") {
|
||||
document.body.classList.add("show-focus")
|
||||
}
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue