Improved explore filter UX
This commit is contained in:
parent
1931d681f7
commit
9d697506d9
@ -7,7 +7,11 @@ export function filterAnime(arn: AnimeNotifier, input: HTMLInputElement) {
|
|||||||
let status = arn.app.find("filter-status") as HTMLSelectElement
|
let status = arn.app.find("filter-status") as HTMLSelectElement
|
||||||
let type = arn.app.find("filter-type") as HTMLSelectElement
|
let type = arn.app.find("filter-type") as HTMLSelectElement
|
||||||
|
|
||||||
arn.app.load(`/explore/anime/${year.value}/${status.value}/${type.value}`)
|
for(let cell of findAll("anime-grid-cell")) {
|
||||||
|
cell.style.opacity = "0.1"
|
||||||
|
}
|
||||||
|
|
||||||
|
arn.diff(`/explore/anime/${year.value}/${status.value}/${type.value}`)
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hides anime that are already in your list.
|
// Hides anime that are already in your list.
|
||||||
|
@ -72,9 +72,9 @@ export function lightTheme(arn: AnimeNotifier) {
|
|||||||
export function darkTheme(arn: AnimeNotifier) {
|
export function darkTheme(arn: AnimeNotifier) {
|
||||||
let root = document.documentElement
|
let root = document.documentElement
|
||||||
|
|
||||||
if(arn.user.dataset.pro !== "true") {
|
// if(arn.user.dataset.pro !== "true") {
|
||||||
alert("You need a PRO account!")
|
// alert("You need a PRO account!")
|
||||||
}
|
// }
|
||||||
|
|
||||||
for(let property in dark) {
|
for(let property in dark) {
|
||||||
if(!dark.hasOwnProperty(property)) {
|
if(!dark.hasOwnProperty(property)) {
|
||||||
|
Loading…
Reference in New Issue
Block a user