-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
116 lines (89 loc) · 3.64 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<link href="http://fonts.googleapis.com/css?family=Open+Sans:400" rel="stylesheet">
<link href="css/styles.css" rel="stylesheet">
<title>Single Page App Without A Framework</title>
</head>
<body>
<header class="compact">
<h1><a href="#">Single Page App Without A Framework</a></h1>
</header>
<div class="main-content">
<div class="all-products page">
<h3>Our products</h3>
<div class="filters">
<form>
<div class="filter-criteria">
<span>Manufacturer</span>
<label><input type="checkbox" name="manufacturer" value="apple">Apple</label>
<label><input type="checkbox" name="manufacturer" value="samsung">Samsung</label>
<label><input type="checkbox" name="manufacturer" value="htc">HTC</label>
<label><input type="checkbox" name="manufacturer" value="nokia">Nokia</label>
<label><input type="checkbox" name="manufacturer" value="zte">ZTE</label>
<label><input type="checkbox" name="manufacturer" value="sony">Sony</label>
</div>
<div class="filter-criteria">
<span>Screen Size</span>
<label><input type="checkbox" value="16" name="storage">16 GB</label>
<label><input type="checkbox" value="32" name="storage">32 GB</label>
</div>
<div class="filter-criteria">
<span>OS</span>
<label><input type="checkbox" value="android" name="os">Android</label>
<label><input type="checkbox" value="ios" name="os">iOS</label>
<label><input type="checkbox" value="windows" name="os">Windows</label>
</div>
<div class="filter-criteria">
<span>Camera</span>
<label><input type="checkbox" value="5" name="camera">5 Mpx</label>
<label><input type="checkbox" value="8" name="camera">8 Mpx</label>
<label><input type="checkbox" value="12" name="camera">12 Mpx</label>
<label><input type="checkbox" value="15" name="camera">15 Mpx</label>
</div>
<button>Clear filters</button>
</form>
</div>
<ul class="products-list">
<script id="products-template" type="x-handlebars-template">
{{#each this}}
<li data-index="{{id}}">
<a href="#" class="product-photo"><img src="{{image.small}}" height="130" alt="{{name}}"/></a>
<h2><a href="#"> {{name}} </a></h2>
<ul class="product-description">
<li><span>Manufacturer: </span>{{specs.manufacturer}}</li>
<li><span>Storage: </span>{{specs.storage}} GB</li>
<li><span>OS: </span>{{specs.os}}</li>
<li><span>Camera: </span>{{specs.camera}} Mpx</li>
</ul>
<button>Buy Now!</button>
<p class="product-price">{{price}}$</p>
<div class="highlight"></div>
</li>
{{/each}}
</script>
</ul>
</div>
<div class="single-product page">
<div class="overlay"></div>
<div class="preview-large">
<h3>Single product view</h3>
<img src=""/>
<p></p>
<span class="close">×</span>
</div>
</div>
<div class="error page">
<h3>Sorry, something went wrong :(</h3>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.1.0.min.js"
integrity="sha256-cCueBR6CsyA4/9szpPfrX3s49M9vUU5BgtiJj06wt/s="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js"></script>
<script src="js/script.js"></script>
</body>
</html>