Initial commit

This commit is contained in:
2022-08-07 15:11:40 +02:00
commit fc70e7a9f8
10 changed files with 2066 additions and 0 deletions

19
js/main.js Normal file
View File

@@ -0,0 +1,19 @@
(function () {
const wgrnhText = document.getElementById('wgrnh-text');
const possibleTexts = [
'Nu',
'Een half uur geleden',
'Zo snel mogelijk',
'Als het even kan nu',
];
function setRandomText() {
const idx = Math.round(Math.random() * (possibleTexts.length - 1));
wgrnhText.innerText = possibleTexts[idx];
}
setRandomText();
wgrnhText.addEventListener('click', setRandomText);
})();