export class AccessibilityController { constructor ( ) { } speak ( text , priority ? , delayMS ? ) { let el = document . createElement ( "div" ) ; let id = "speak-" + Date . now ( ) ; el . id = id ; el . setAttribute ( "aria-live" , priority || "polite" ) ; el . classList . add ( "sr-only" , "displayNone" ) ; document . body . appendChild ( el ) ; setTimeout ( ( ) => { document . getElementById ( id ) . innerHTML = text ; } , delayMS || 100 ) ; setTimeout ( ( ) => { document . body . removeChild ( document . getElementById ( id ) ) ; } , 1000 ) ; } }