hugo-owu-se : remove unused func argu
This commit is contained in:
parent
f4fb60a813
commit
af14d59277
@ -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
|
Loading…
Reference in New Issue
Block a user