Improved tooltips
This commit is contained in:
@ -123,8 +123,14 @@ export function displayDate(element: HTMLElement, now: Date) {
|
||||
}
|
||||
|
||||
element.innerText = remainingString
|
||||
let tooltip = dayNames[startDate.getDay()] + " " + startTime
|
||||
|
||||
element.title = dayNames[startDate.getDay()] + " " + startTime
|
||||
if(element.classList.contains("no-tip")) {
|
||||
element.title = tooltip
|
||||
} else {
|
||||
element.setAttribute("aria-label", tooltip)
|
||||
element.classList.add("tip")
|
||||
}
|
||||
}
|
||||
|
||||
export function displayTime(element: HTMLElement, now: Date) {
|
||||
|
Reference in New Issue
Block a user