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