sS hjs_playHum() { ret hjs(replaceDollarVars([[ var humSound = new Audio($url); var humSoundCanPlay = false, humSoundPlaying = false; humSound.loop = true; humSound.oncanplaythrough = function() { humSoundCanPlay = true; }; // start playing and/or change volume function hum(volume) { humSound.volume = volume; if (humSoundPlaying) return; humSoundPlaying = true; humSound.play(); } function stopHum() { if (!humSoundPlaying) return; humSoundPlaying = false; humSound.stop(); } ]], url := jsQuote(dataSnippetLink(#1400406)))); }