-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
35 lines (32 loc) · 1.01 KB
/
test.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
35
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<script type="application/javascript" src="scheduler.js"></script>
<script type="application/javascript">
var scheduler = new Scheduler()
scheduler.add( "https://api.stackexchange.com/2.2/info?site=stackoverflow",
function (text){
alert(
JSON.parse(text).items[0].new_active_users
)
},
"GET"
)
scheduler.add(
"https://api.github.com/zen",
function (text){
console.log(text)
},
"GET"
)
console.log(scheduler.status())
window.setTimeout(
function(){
console.log(scheduler.status())
}, 500
)
</script>
</head>
<body></body>
</html>