blob: 8803bbe7a3df2a90787b61c67438d47da7215c0f (
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
|
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;
btn.onclick = () => location.href = "";
}
|