-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
214 lines (189 loc) · 6.65 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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
<!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.0" />
<title>Home | Cart</title>
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon">
<link rel="icon" href="./favicon.ico" type="image/x-icon">
<meta name="description" content="Simple Cart Project">
<meta name="author" content="TeamSok">
<link rel="stylesheet" href="./css/nav.css" />
<link rel="stylesheet" href="./css/card.css" />
<link rel="stylesheet" href="./css/styles.css" />
<link rel="stylesheet" href="./css/mobile/styleMobile.css" />
<link rel="stylesheet" href="./css/mobile/mobile_nav.css" />
<link rel="stylesheet" href="./css/mobile/mobile_card.css" />
<link rel="stylesheet" href="./css/mobile/mobile_modal.css" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"
/>
<script src="./scripts/script.js"></script>
</head>
<body>
<div class="container-fluid desktop">
<header class="nav">
<h1 style="font-size: 20px;">All Items</h1>
<div id="nav-notification">
<button class="nav-btn" id="nav-btn">Item Added</button>
</div>
</header>
<div class="body">
<section class="items" id="card-data"></section>
<section class="billing-items">
<div class="row billing-item-header">
<div class="inner-row" style="width: 69%">
<p>Items</p>
<p>Qty</p>
</div>
<div>Price($)</div>
</div>
<div class="billing-item-list" id="item_data"></div>
<div class="billing-item-footer">
<h4 class="p-2-6">Total</h4>
<div class="row p-2-6">
<div class="row w-50">
<div class="row">
<p>Items</p>
(<span id="order-total-quantity"> </span>)
</div>
<p>:</p>
</div>
<p class="f-right" id="order-total-amount"></p>
</div>
<div class="row p-2-6">
<div class="row w-50">
<p>Discount</p>
<p>:</p>
</div>
<p id="order-total-discount"></p>
</div>
<div class="row p-2-6">
<div class="row w-50">
<p>Type Discount</p>
<p>:</p>
</div>
<p id="order-type-discount">0</p>
</div>
<div class="row card-footer" style="margin-top: 7px">
<div class="row w-50">
<p>Order Total</p>
<p>:</p>
</div>
<b id="order-total"></b>
</div>
</div>
</section>
</div>
</div>
<!-- MOBILE CODE -->
<div class="container-fluid mobile">
<header class="nav__mobile">
<div class="brand-logo">
<img
src="./images/logo.png" alt="logo" width="auto" height="auto"
/>
</div>
<div class="nav-input-container__mobile">
<input class="input-field" type="text" placeholder="Search" onchange="search(event)" />
<i class="fa fa-search icon"></i>
</div>
<div class="nav-num-of-items__mobile">
<p id="num-of-items"></p>
</div>
<div class="nav-cart__mobile">
<a class="nav-btn" href="cart.html">
<i class="fa fa-shopping-cart"></i>
</a>
</div>
</header>
<section class="functions__mobile fnc-fixed">
<button class="func-btn-sort" id="sort-modal-button">
<i class="fa fa-sort"></i>
Sort
</button>
<button class="func-btn-filter" id="filter-modal-button">
<i class="fa fa-filter"></i>
Filter
</button>
<div
class="remove-applied-items"
id="remove-applied-filter"
onclick="removeFilter()"
>
<p id="num-of-items">x</p>
</div>
</section>
<section class="items__mobile" id="card-data__mobile"></section>
</div>
<!-- Sort Modal -->
<article class="modal-container" id="sort-modal-container">
<section class="modal-section" id="sort-modal-section">
<h3 class="modal-title">Sort Options</h3>
<form>
<input type="radio" id="highlow" name="sorting" value="highlow" />
<label for="highlow">Price -- High Low</label><br />
<input type="radio" id="lowhigh" name="sorting" value="lowhigh" />
<label for="lowhigh">Price -- Low High</label><br />
<input type="radio" id="discount" name="sorting" value="discount" />
<label for="discount">Discount</label>
</form>
<br />
<div class="functions__mobile">
<button class="func-btn-sort" onclick="sortOptions()">Apply</button>
<button class="func-btn-filter" id="sort-modal-close">Cancel</button>
</div>
</section>
</article>
<!-- Filter Modal -->
<article class="modal-container" id="filter-modal-container">
<section class="modal-section" id="filter-modal-section">
<h3 class="modal-title">Filter Options</h3>
<br />
<div slider id="slider-distance">
<div>
<div inverse-left style="width: 70%"></div>
<div inverse-right style="width: 70%"></div>
<div range style="left: 0%; right: 0%"></div>
<span thumb style="left: 0%"></span>
<span thumb style="left: 100%"></span>
<div sign style="left: 0%">
<span id="value">9999</span>
</div>
<div sign style="left: 100%">
<span id="value">200000</span>
</div>
</div>
<input
type="range"
value="9999"
max="200000"
min="9999"
step="1"
id="minRange"
oninput="getMinRange(event)"
/>
<input
type="range"
value="200000"
max="200000"
min="9999"
step="1"
id="maxRange"
oninput="getMaxRange(event)"
/>
</div>
<br />
<div class="functions__mobile">
<button class="func-btn-sort" onclick="filterApply()">Apply</button>
<button class="func-btn-filter" id="filter-modal-close">
Cancel
</button>
</div>
</section>
</article>
<script type="text/javascript" src="scripts/index.js"></script>
</body>
</html>