generalisation + extra random h2s

master
ugrnm 6 years ago
parent 2b67715474
commit 82083dcd78

@ -76,14 +76,19 @@
return new Promise(resolve => setTimeout(resolve, ms)); return new Promise(resolve => setTimeout(resolve, ms));
} }
async function iris(){ async function newMessage(id) {
var ms = 0;
while (true) { while (true) {
ms = getRandomInt(100,3000); ms = getRandomInt(500,1500);
Message = Messages[Math.floor(Math.random()*Messages.length)]; Message = Messages[Math.floor(Math.random()*Messages.length)];
document.getElementById('oneliner-1').innerHTML = Message; document.getElementById(id).innerHTML = Message;
await sleep(ms); await sleep(ms);
} }
} }
function iris(){
newMessage('oneliner-1');
newMessage('oneliner-2');
newMessage('oneliner-3');
}
})(); })();

Loading…
Cancel
Save