-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
112 lines (82 loc) · 3.06 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
<!-- This is a first example of using a template -->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Animals</title>
<!-- include our libraries and css files -->
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/handlebars-v3.0.3.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="AnimalsData.js"></script>
<script src="assignment.js"></script>
<link href="css/bootstrap.css" rel="stylesheet">
<link href="assignment.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]-->
</head>
<body>
<!-- put your HTML here -->
<div class="container">
<div class="page-header">
<h1>My Animals </h1>
</div>
<ul class="nav nav-tabs">
<li role="" class="active"><a href="#" id="category-tab" >Category</a></li>
<li role=""><a href="#" id="animal-tab" >Animals</a></li>
</ul>
<br/><br/>
<div id="content" class="container-fluid" role="main">
</div>
</div>
<script id="category-template" type="text/x-handlebars-template">
<div class="row">
<!-- xs-12 : small display shows a single column (taking up 12 grid columns)-->
<!-- md-3 : medium and up displays use 3 grid columns per column -->
{{#each category}}
<div class="col-xs-12 col-md-3 ">
<div class="category-thumbnail" data-id="{{@index}}">
<div class="caption">
<h3>{{name}}(clike me)</h3>
<p>{{animals.length}} animals</p>
</div>
</div>
</div> <!-- / col -->
{{/each}}
</div> <!-- / row -->
</script>
<script id="animals-template" type="text/x-handlebars-template">
<div class="row">
<!-- xs-12 : small display shows a single column (taking up 12 grid columns)-->
<!-- md-3 : medium and up displays use 3 grid columns per column -->
{{#each animals}}
<div class="col-xs-12 col-md-3">
<div class="animal-thumbnail" data-id="{{@index}}">
<img class="crop-img" src="{{image1}}" alt=""/>
<img class="crop-img" src="{{image2}}" alt=""/>
<div class="caption">
<h3>{{name}}</h3>
<p>{{description}}</p>
</div>
</div>
</div> <!-- / col -->
{{/each}}
</div> <!-- / row -->
</script>
<script id="animal-template" type="text/x-handlebars-template">
<div class="row">
<div class="col-xs-12 col-md-12">
<img class="large-img" src="{{image1}}" alt=""/>
<img class="large-img" src="{{image2}}" alt=""/>
<div class="caption">
<h3>{{name}}</h3>
<p>{{description}}</p>
</div>
</div> <!-- / col -->
</div> <!-- / row -->
</script>
</body>