mirror of
https://git.sr.ht/~cadence/cloudtube
synced 2026-03-02 02:31:35 +00:00
Implement video filters
This commit is contained in:
parent
aa953dc796
commit
db7ccabb3b
19 changed files with 790 additions and 9 deletions
16
html/static/js/filters.js
Normal file
16
html/static/js/filters.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
import {ElemJS, q} from "./elemjs/elemjs.js"
|
||||
|
||||
class FilterType extends ElemJS {
|
||||
constructor(element) {
|
||||
super(element)
|
||||
this.notice = q("#title-pattern-matching")
|
||||
this.on("input", this.updateNotice.bind(this))
|
||||
this.updateNotice()
|
||||
}
|
||||
|
||||
updateNotice() {
|
||||
this.notice.style.display = this.element.value !== "title" ? "none" : ""
|
||||
}
|
||||
}
|
||||
|
||||
new FilterType(q("#filter-type"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue