blob: 0bcaae08cad8fd749a1c68778e37aa799edd1244 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
document.addEventListener('DOMContentLoaded', () => {
let btn = document.querySelector('.modalButton');
btn.click();
});
const selectors = document.querySelectorAll('select');
for(el of selectors){
el.addEventListener('change', () => {
let selected = new Array();
for (el of selectors){
if (!selected.includes(el.value) && el.value != 'Vali')
selected.push(el.value);
}
if (selected.length == 6)
moveOnEnable();
});
}
// If All Else Done
function moveOnEnable(){
const btn = document.querySelector(".moveOn");
btn.disabled = false;
localStorage.setItem("roll", "Ärimehe");
btn.onclick = () => location.href = "../../../endPage";
}
|