1
0
Fork 0
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:
Cadence Ember 2021-05-12 00:29:44 +12:00
parent aa953dc796
commit db7ccabb3b
No known key found for this signature in database
GPG key ID: BC1C2C61CF521B17
19 changed files with 790 additions and 9 deletions

16
html/static/js/filters.js Normal file
View 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"))