hugo-owu-se : remove unused func argu

This commit is contained in:
minoplhy 2024-03-14 14:11:47 +07:00
parent f4fb60a813
commit af14d59277
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
2 changed files with 4 additions and 4 deletions

View File

@ -1,16 +1,16 @@
function randomImageBroker(ElemName, imgArray) {
const imgELM = document.getElementById(ElemName);
const randomIndex = mathRandom(imgELM, imgArray);
const randomIndex = mathRandom(imgArray);
imgELM.src = imgArray[randomIndex];
}
function randomTextBroker(ElemName, textArray) {
const textElm = document.getElementById(ElemName);
const randomIndex = mathRandom(textElm, textArray);
const randomIndex = mathRandom(textArray);
textElm.innerHTML = textArray[randomIndex]
}
function mathRandom(imgELM, srcArray) {
function mathRandom(srcArray) {
return Math.floor(Math.random()*srcArray.length);
}

@ -1 +1 @@
Subproject commit 0ee42d6223cbd9ca1badac8b713f3d463bd004c1
Subproject commit 324a1e12a3f4330684d06c1e870d8f0cc6b7be4e