-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathscript.js
More file actions
23 lines (20 loc) · 766 Bytes
/
script.js
File metadata and controls
23 lines (20 loc) · 766 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
(
function(){
let p = document.getElementById("rkey");
let callTrack = setInterval(getKey, 100);
function getKey(){
p = document.getElementById("rkey");
console.log("key ---> " + p.innerHTML);
if(p.innerHTML >0){
confirm('Confrm someone is coming ...') ? clearLoop() : window.location.reload();
// window.location.reload();
// console.log("reload");
// clearLoop(callTrack);
}
function clearLoop(){
clearInterval(callTrack);
}
}
}
)()
// (function(){let script = document.createElement("script");script.src = "script.js";document.body.appendChild(script);})