-
Notifications
You must be signed in to change notification settings - Fork 0
/
signal.js
33 lines (24 loc) · 893 Bytes
/
signal.js
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
function unchecked(){
const noSignal = document.getElementById('noSignal');
const signal = document.getElementById('signal');
const checked = document.getElementById('checked');
checked.addEventListener('click', () => {
signal.classList.add('hide');
setInterval(function () { noSignal.classList.remove('hide') }, 1000);
signal.classList.remove('no-signal');
});
};
function checked(){
checked.addEventListener('click', () => {
noSignal.classList.add('hide');
setInterval(function () { signal.classList.remove('hide') }, 1000);
});
};
unchecked();
checked();
// if (uncheck.checked == true){
// uncheck.addEventListener('click',()=>{
// signal.classList.add('hide');
// setInterval(function () { noSignal.classList.add('no-signal') }, 1000);
// })
// }