<%# Alert preview: the real overlay code on a 1920x1080 stage, with a button for every alert. Served at /actions/alerts/preview (logged in) and exported as a static page by tools/export-preview.js. Locals: base ('/alerts/' or 'alerts/'), themes { key: { label, theme } }, start (theme key), samples (src/alerts.js SAMPLES). %> Alert preview <% for (const f of ['card', 'polaroid', 'cassette', 'fx']) { %><% } %>
camera

Alert preview

The real overlay code. Click a button to play an alert; a click replaces the one showing. Click anywhere once first so the browser allows sound.

Look

<% for (const [k, t] of Object.entries(themes)) { %><% } %>

Background

Follows and subs

<% for (const [k, l] of [['follow', 'Follow'], ['sub-new', 'New sub'], ['sub-prime', 'Prime'], ['sub-resub', 'Resub 14 months'], ['sub-6', '6 months at once'], ['gift-1', 'Gift 1'], ['gift-10', 'Gift 10'], ['gift-anon', 'Anonymous gift']]) { %><% } %>

Bits, tips, raids

<% for (const [k, l] of [['bits-20', '20 bits'], ['bits-120', '120 bits'], ['bits-500', '500 bits'], ['tip-5', 'Tip 5'], ['tip-100', 'Tip 100'], ['raid', 'Raid'], ['streak', 'Watch streak']]) { %><% } %>

Hype Train

<% for (const [k, l] of [['hype-begin', 'Start'], ['hype-level', 'Level up'], ['hype-end', 'End'], ['hype-golden', 'Golden Kappa']]) { %><% } %>

Redeems

Queue

ready
<% for (const f of ['card', 'cassette', 'fx', 'polaroid']) { %><% } %>