Show benefits for supporters

This commit is contained in:
2018-11-17 00:07:12 +09:00
parent 806c7850cf
commit 6401a7e42e
3 changed files with 77 additions and 1 deletions

View File

@ -33,6 +33,18 @@ export function chargeUp(arn: AnimeNotifier, button: HTMLElement) {
.then(() => arn.loading(false))
}
// Toggle fade
export function toggleFade(arn: AnimeNotifier, button: HTMLElement) {
let elementId = button.dataset.elementId
let element = document.getElementById(elementId)
if(element.classList.contains("fade-out")) {
element.classList.remove("fade-out")
} else {
element.classList.add("fade-out")
}
}
// Buy item
export function buyItem(arn: AnimeNotifier, button: HTMLElement) {
let itemId = button.dataset.itemId