Displays the current time and date on the display, updating every minute.
Show current times for cities around the world, one per row.
Choose cities...
Click a saved message to load it into the text input.
BroadcastChannel API
Send messages from any script running on the same origin using BroadcastChannel.
// From any page on the same origin:
const ch = new BroadcastChannel('splitflap');
ch.postMessage({ text: 'HELLO WORLD' });
// Set specific rows (array of strings):
ch.postMessage({ rows: ['LINE ONE', 'LINE TWO'] });
// Clear the board:
ch.postMessage({ clear: true });
// Colour tiles — use {R} {O} {Y} {G} {B} {V} {W}:
ch.postMessage({ text: '{R}{R}{R} ALERT {R}{R}{R}' });
Window PostMessage
If embedding this page in an iframe, use postMessage.
// From parent page:
const iframe = document.getElementById('splitflap');
iframe.contentWindow.postMessage(
{ text: 'HELLO FROM PARENT' },
'*'
);
Bookmarklet
Drag this to your bookmarks bar, then click it on any page to send text to the board:
javascript:void(new BroadcastChannel('splitflap').postMessage({text:prompt('Message:')}))