-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
34 lines (31 loc) · 1003 Bytes
/
index.html
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
34
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Hack WWEC</title>
</head>
<body>
<h2>The very beginning of hacking wec</h2>
<a href='javascript:(function(){let script = document.createElement("script");script.src = "https://rene-hack-wec.netlify.app/script.js";document.body.appendChild(script);})()'>wwec-me</a>
<p id="rkey">0</p>
<script></script>
<script>
let rkey = document.getElementById('rkey');
let qq = 0;
let timer = setInterval(myTimer, 1000);
function myTimer() {
console.log("timer add 1");
qq += 1;
rkey.innerHTML = qq;
setTimeout(refresh, 500);
}
function refresh() {
qq = 0;
console.log("refresh back to 0");
rkey.innerHTML = qq;
}
</script>
</body>
</html>