Improved tooltips

This commit is contained in:
2018-04-18 12:33:19 +02:00
parent 6e697dba98
commit 0913b18239
7 changed files with 12 additions and 11 deletions

View File

@ -18,6 +18,8 @@ export async function disableNotifications(arn: AnimeNotifier, button: HTMLEleme
// Test notification
export async function testNotification(arn: AnimeNotifier) {
arn.statusMessage.showInfo("Sending test notification...this might take a few seconds...")
await fetch("/api/test/notification", {
credentials: "same-origin"
})

View File

@ -92,7 +92,8 @@ export function displayAiringDate(element: HTMLElement, now: Date) {
airingVerb = "aired"
}
element.title = "Episode " + element.dataset.episodeNumber + " " + airingVerb + " " + dayNames[startDate.getDay()] + " from " + startTime + " - " + endTime
element.setAttribute("aria-label", "Episode " + element.dataset.episodeNumber + " " + airingVerb + " " + dayNames[startDate.getDay()] + " from " + startTime + " - " + endTime)
element.classList.add("tip")
}
export function displayDate(element: HTMLElement, now: Date) {