-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathPromiseExample.html
More file actions
33 lines (27 loc) · 631 Bytes
/
PromiseExample.html
File metadata and controls
33 lines (27 loc) · 631 Bytes
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
<!DOCTYPE html>
<html>
<head>
<style>
.container {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
}
.input {
padding: 10px;
width: 250px;
}
</style>
</head>
<body>
<div class="container">
<h2>Search User Below</h2>
<input type="text" class="input" oninput="userInput(event)" />
<div id='loading' style="display: none;">Loading....</div>
<div id="userResult">
</div>
</div>
<script src="PromiseExample.js" />
</body>
</html>