Added "hello" text

This commit is contained in:
2026-02-07 20:11:01 +00:00
parent 3047d577c2
commit 78fa0a4fc9
2 changed files with 4 additions and 0 deletions

View File

@ -1,8 +1,11 @@
const Maths = Math; // Yes, I'm that patriotic.
const hellos = ['Hewwo!', 'Hello!', 'Awoo!'];
function pickRandom(array) {
return array[Maths.floor(Maths.random() * array.length)];
}
window.addEventListener('load', (e) => {
const helloText = document.getElementById('helloText');
helloText.innerText = pickRandom(hellos);
});