-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathajax_poketable.html
More file actions
61 lines (61 loc) · 1.16 KB
/
ajax_poketable.html
File metadata and controls
61 lines (61 loc) · 1.16 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
53
54
55
56
57
58
59
60
61
<!DOCTYPE html>
<html>
<head>
<title>PokeTable</title>
<script type="text/javascript" src="jquery-3.3.1.min.js"></script>
<script type="text/javascript" src="ajax_poketable.js"></script>
<style>
body{
display:inline-flex;
justify-content: center;
flex-direction: column;
}
th{
width:110px;
height:20px;
}
td{
width:110px;
height:90px;
text-align: center;
}
table,th,td{
border:1px solid black;
border-collapse: collapse;
}
div{
align-self: center;
margin-top: 10px;
}
#poke{
width:190px;
}
</style>
</head>
<body>
<table>
<tr>
<th>Code</th>
<th>Normal Sprite</th>
<th>Shiny Sprite</th>
<th>Name</th>
<th>Type</th>
<th>HM</th>
</tr>
<tr id="second">
<td id="code"></td>
<td><img id="normal"></img></td>
<td><img id="shiny"></img></td>
<td id="name"></td>
<td id="type"></td>
<td id="hm"></td>
</tr>
</table>
<div>
<button id="prev"><</button>
<input type="text" placeholder="Write a Pokemon code or name" id="poke"></input>
<button id="search">Search</button>
<button id="next">></button>
</div>
</body>
</html>