-
Notifications
You must be signed in to change notification settings - Fork 0
/
search.html
94 lines (90 loc) · 5.21 KB
/
search.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
<!doctype html>
<html lang="en">
<head>
<title>Pokedex Test</title>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<link rel="stylesheet" href="./assets/style/search.css">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<link href="https://use.fontawesome.com/releases/v5.6.3/css/all.css" rel="stylesheet" integrity="sha384-UHRtZLI+pbxtHCWp1t77Bi1L4ZtiqrqD80Kn4Z8NTSRyMA2Fd33n5dQ8lWUE00s/" crossorigin="anonymous">
</head>
<body>
<div class="container flex-center">
<!-- <div class="row">
<div class="col-md-12 m-1">
<button type="button" class="btn btn-rounded btn-secondary mx-2" onclick="window.location.href='index.html'"><i class="fas fa-home"></i> Home</button>
<button type="button" class="btn btn-rounded btn-primary mx-2" onclick="window.location.href='main.html'"><i class="fas fa-list-alt"></i> Display all Pokemon</button>
</div>
</div> -->
<a href="index.html"><img src="./assets/img/logo.png" class="logo" alt="Pokemon" style="width: 400px; margin: 0px auto;"></a>
<div class="search-container col-md-5 col-sm-5">
<input type="text" class="form-control" id="search_q" placeholder="Input Pokemon name here">
<button class="btn-search" id="search-btn">
<i class="fa fa-search" aria-hidden="true"></i>
</button>
<button type="button" class="btn btn-rounded btn-secondary ml-2" onclick="window.location.href='index.html'">
<i class="fas fa-home"></i>
</button>
<button type="button" class="btn btn-rounded btn-primary ml-2" onclick="window.location.href='main.html'">
<i class="fas fa-list-alt"></i>
</button>
</div>
<div id="show_error" class="hidden alert alert-danger alert-dismissible fade" role="alert">
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
<span aria-hidden="true">×</span>
<span class="sr-only">Close</span>
</button>
<strong>Error!</strong> Pokemon doesn't exist
</div>
<div class="col-md-5 col-sm-5 pokemon-card" id="pokemon_details">
<div class="img-container">
<img id="update_img" src="https://raw.githubusercontent.com/PokeAPI/sprites/master/sprites/pokemon/other/official-artwork/25.png" alt="" srcset="">
</div>
<div class="detail-container">
<div class="title-container">
<h3 class="name text-center" id="update_name">Pikachu</h3>
<hr class="seperator">
<div class="stats text-center">
<span class="first cp-text col-md-6" id="update_hp">HP 32/32</span>
<span class="cp-text col-md-6" id="update_cp">XP 149</span>
</div>
</div>
<button class="btn-transfer">TRANSFER</button>
<div class="attributes-container">
<div class="col attributes-content" style="min-width: 42%;">
<p class="cp-text" id="update_type">Electric / Speed</p>
<small class="text-muted">Type</small>
</div>
<div class="col attributes-content">
<p class="cp-text" id="update_weight">5.58kg</p>
<small class="text-muted">Weight</small>
</div>
<div class="col attributes-content">
<p class="cp-text no-border" id="update_height">0.82m</p>
<small class="text-muted">Height</small>
</div>
</div>
<div class="player-data">
<div class="col data-container">
<p class="stardust" id="update_stardust">500</p>
<p class="muted-text">Stardust</p>
</div>
<div class="col data-container">
<p class="stardust" id="update_candy">1</p>
<p class="muted-text" id="update_candy_title">Pikachu Candy</p>
</div>
</div>
</div>
</div>
</div>
<script src="./assets/js/search.js"></script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
</body>
</html>