iya-sts
    Preparing search index...

    Polls a surface's announcements and draws each new one as a banner.

    Index
    • Builds the poller.

      Parameters

      • env: any

        the browser: document, window

      • options: AnnouncementOptions

        how to ask, and the words

      Returns export=

    CLOSE_AFTER_MS: 10000
    CONTAINER_ID: "sts-announcements" = 'sts-announcements'
    • Draws one banner, closed by its × or after closeAfterMs.

      Parameters

      • message: string

        the announcement, as text

      Returns any

      the banner element, or null with no document

    • Starts asking, once; a second call does nothing.

      Returns void

      nothing

    • Stops asking, and closes every banner (a sign-out).

      Returns void

      nothing

    • Takes one answer: fixes the start on the first, and draws what is new.

      Parameters

      • answer: any

        { now, everyMs, announcements }

      Returns any[]

      the announcements drawn