-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
152 lines (135 loc) · 5.01 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>Pokemon :: Pokedex</title>
<!-- Bootstrap -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
body {
background-image: url('img/bg.jpg');
background-color: steelblue;
background-repeat: no-repeat;
background-attachment: fixed;
/*background-size: 100% 100%;*/
}
.pokedex {
width: 90%;
padding: 15px;
text-align: center;
}
.logo {
height: 150px;
}
.pokemon {
padding-bottom: 0px;
}
.pokemon label {
width: 100%;
margin-bottom: 0px;
}
.pokemon .panel {
overflow: hidden;
}
.search {
vertical-align: middle;
}
</style>
</head>
<body>
<div class="container pokedex">
<div class="row">
<div class="panel panel-info logo">
<img src="img/pokemon-logo.gif" alt="img/pokemon-logo.gif" class="img-responsive center-block">
</div>
</div>
<div class="row panel search">
<label for="" class="col-xs-2 col-sm-2 col-md-2 col-lg-2">Search:</label>
<input type="text" class="col-xs-9 col-sm-9 col-md-9 col-lg-9" data-bind="textInput: search" />
</div>
<div class="row">
<div class="row" data-bind="visible: loading">
<img src="img/loading.gif" />
</div>
<div class="row" data-bind="visible: !loading(), template: { name: 'pokemon', foreach: filterdPokemons }"></div>
</div>
</div>
<script type="text/html" id="pokemon">
<div class="pokemon text-center col-xs-6 col-sm-3 col-md-3">
<div class="panel">
<img class="img-responsive img-rounded center-block" data-bind="attr: {src: img }" alt="Image" />
<label class="text-capitalize label label-danger col-xs-12" data-bind="{text: name }"></label>
</div>
</div>
</script>
<div class="modal fade" id="pokemonInfo" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-body">
<button type="button" class="close visible-md visible-lg" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<div class="row">
<div class="pokemon text-center col-xs-12">
<div class="panel">
<img class="img-responsive img-rounded center-block" data-bind="attr: {src: img }" alt="Image" />
<label class="text-capitalize label label-danger col-xs-12" data-bind="{text: name }"></label>
</div>
</div>
</div>
<div class="row">
<div class="col-xs-12">
<div class="row">
<h4>
<span class="text text-danger col-xs-8">
Type:
<span class="text-capitalize" data-bind="{text: type}"></span>
</span>
<span class="text text-danger col-xs-4">
Health:
<span data-bind="{text: hp}"></span>
</span>
</h4>
</div>
<div class="row">
<h4>
<span class="text text-danger col-xs-6">
Attack:
<span data-bind="{text: attack}"></span>
</span>
<span class="text text-danger col-xs-6">
Defense:
<span data-bind="{text: defense}"></span>
</span>
<span class="text text-danger col-xs-6">
Height:
<span data-bind="{text: height}"></span>
</span>
<span class="text text-danger col-xs-6">
Weight:
<span data-bind="{text: weight}"></span>
</span>
</h4>
</div>
</div>
</div>
<div class="modal-footer visible-xs visible-sm">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
<script src="js/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="js/bootstrap.min.js"></script>
<script src="js/knockout-min.js"></script>
<script src="js/app.js"></script>
</body>
</html>