We got in touch with Randall! If you have some simple questions that we can't answer without his help, please post them here!
There are still 60 explanations we need to complete. Please help up finish them!
Also, help us explain Randall's What If? articles! We need to add the missing explanations and improve the existing ones.
Also, help us explain Randall's What If? articles! We need to add the missing explanations and improve the existing ones.
Talk:2445: Checkbox
Revision as of 10:23, 2 April 2021 by 162.158.187.137 (talk)
It doesn't work as described, fo be. Does it depend on the browser? I'm using Chrome.
[I don't see 'Loading...' or any other text, or a mute button; I do see dots and dashes, but get no sound(s).]
[[Special:Contributions] 06:57, 2 April 2021 (UTC)
To activate the sound, you must click the unmute button on the bottom right corner.
If your clicking abilities have dwindled since the invention of the vocal telephone, you may use this roughly written script in the webconsole as an aid
(()=>{
const checkbox = document.querySelector('#comic>label')
const asleep = async (dur) => {
let r
const p = new Promise(res=>r=res)
setTimeout(r,dur)
return p
}
const press = async (dur) => {
checkbox.dispatchEvent(new Event('mousedown'))
await asleep(dur)
checkbox.dispatchEvent(new Event('mouseup', { bubbles: true }))
}
// timings
const long = async () => press(600)
const short = async () => press(100)
const space = async () => asleep(600) // End character delay
const endWord = async () => asleep(600) // End word delay. (same as character)
const end = async () => await asleep(2100) // End message delay
const type = async (c) => {
if (c == '.') await short()
else if (c == '-') await long()
else if (c == ' ') await space()
else if (c == '/') await endWord()
//else if (c == '/') await end()
}
const send = async (msg) => {
const code = morse.encode(msg)
// Give checkbox focus and wait a moment so focusin hooks or something may run.
checkbox.dispatchEvent(new Event('focusin'))
await asleep(100)
// Type each character
for await (const char of code)
await type(char)
}
// Say something
send('hi')
})()
Feel free to fix/clean/shorten/move the script. Probably best to keep it at the bottom of discussion 108.162.237.46 10:17, 2 April 2021 (UTC)