Improved explore filter UX

This commit is contained in:
Eduard Urbach 2018-03-14 03:50:39 +01:00
parent 1931d681f7
commit 9d697506d9
2 changed files with 8 additions and 4 deletions

View File

@ -7,7 +7,11 @@ export function filterAnime(arn: AnimeNotifier, input: HTMLInputElement) {
let status = arn.app.find("filter-status") 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.

View File

@ -72,9 +72,9 @@ export function lightTheme(arn: AnimeNotifier) {
export function darkTheme(arn: AnimeNotifier) {
let root = document.documentElement
if(arn.user.dataset.pro !== "true") {
alert("You need a PRO account!")
}
// if(arn.user.dataset.pro !== "true") {
// alert("You need a PRO account!")
// }
for(let property in dark) {
if(!dark.hasOwnProperty(property)) {