-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
52 lines (51 loc) · 1.35 KB
/
index.html
File metadata and controls
52 lines (51 loc) · 1.35 KB
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
<head>
<style>
.main{
width:500px;
background-color: antiquewhite;
}
.main:hover{
background-color: aqua;
}
th,td{
border-bottom: 1px solid black;
border-right: 1px solid black;
}
td:hover{
box-shadow: 0 0 5px rgba(0,0,0,0.5);
background-color : white
}
table{
background-color: rgb(215, 250, 231);
}
</style>
<script src="./node_modules/axios/dist/axios.min.js"></script>
<script src="./index.js"></script>
</head>
<body>
<center>
<h1>Axios API Demonstration</h1>
<div class="main">
<br>
<label>Id:</label><input type="number" id="id">
<br>
<br>
<label>Name:</label><input type="text" id="name">
<br>
<br>
<label>Dept:</label><input type="text" id="dept">
<br>
<br>
<button onclick="fetchData()"> Fetch </button>
<button onclick="postData()"> Post </button>
<button onclick="deleteData()"> Delete </button>
<button onclick="updateData()"> Update </button>
<br>
<br>
</div>
<br>
<br>
<div id="result"></div>
</center>
</body>
</html>