-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
70 lines (62 loc) · 2.06 KB
/
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ"
crossorigin="anonymous">
<style>
.res-result {
display: block;
width: 100%;
border: solid 1px #000000;
margin: 2px 2px;
}
.res-result.error{
color: red;
}
.res-result.normal{
color: green;
}
h1.title{
text-align: center;
background:cadetblue;
}
</style>
</head>
<body>
<div class="container">
<!-- Content here -->
<h1 class="title">EFOS API TEST TOOL!</h1>
<br/>
<br/>
<div class="row">
<label for="basic-url"> base url </label>
<input type="text" class="form-control" id="baseUrl" aria-describedby="basic-addon3" value="http://webapi.eegrid.com">
</div>
<div class="row">
<label for="basic-url"> accesstoken </label>
<input type="text" class="form-control" id="accesstoken" aria-describedby="basic-addon3">
</div>
<br/>
<div class="row">
<button id="startTest" type="button" class="btn btn-primary btn-lg">开始测试</button>
</div>
<br/>
<div id="res" class="row">
测试结果
</div>
</div>
<!-- jQuery first, then Tether, then Bootstrap JS. -->
<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tether/1.4.0/js/tether.min.js"
integrity="sha384-DztdAPBWPRXSA/3eYEEUWrWCy7G5KFbe8fFjk5JAIxUYHKkDx6Qin1DkWx51bBrb"
crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/js/bootstrap.min.js"
integrity="sha384-vBWWzlZJ8ea9aCX4pEW3rVHjgjt7zpkNpZk+02D9phzyeVkE+jo0ieGizqPLForn"
crossorigin="anonymous"></script>
<script src="./index.js"></script>
</body>
</html>