Improved tooltips
This commit is contained in:
@ -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"
|
||||
})
|
||||
|
@ -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) {
|
||||
|
Reference in New Issue
Block a user