-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
153 lines (153 loc) · 5.5 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
<title>Fragranž</title>
<link href="images/apple-touch-icon-120x120.png" sizes="120x120" rel="apple-touch-icon">
<link href="images/apple-touch-icon-114x114.png" sizes="114x114" rel="apple-touch-icon">
<link href="images/apple-touch-startup-image-640x1096.png" rel="apple-touch-startup-image" sizes="640x1096">
<link href="images/apple-touch-startup-image-640x920.png" media="(device-width: 320px) and (device-height: 480px) and (-webkit-device-pixel-ratio: 2)" rel="apple-touch-startup-image">
<link href="images/apple-touch-startup-image-1242x2148.png" media="(device-width: 414px)" rel="apple-touch-startup-image">
<link rel="stylesheet" href="chui/chui-ios-3.8.0.css">
<link rel="stylesheet" href="css/style.css">
<script type='text/javascript' src='chui/jquery-2.1.1.min.js'></script>
<script type='text/javascript' src='chui/chui-3.8.0.min.js'></script>
<script src="js/soma-template.js"></script>
<script type='text/javascript' src='js/app.js'></script>
<style>
.popup > .panel h1 {
margin-left: 0 !important;
}
</style>
</head>
<body>
<nav class='current'>
<h1 id='mainTitle'>Fragranž</h1>
</nav>
<article id='main' class='current'>
<section>
<h2 class='wrap normal-case'>Choose from one of the categories below to see which fragrances are available.</h2>
<ul class='list' id='fragranceGenres'></ul>
<div id='fragranz_small' class='horizontal centered'>
<img src='images/fragranz_small.png'>
</div>
</section>
</article>
<nav class='next'>
<button class='back'>Fragrances</button>
<h1 id='fragrancesGenreTitle'></h1>
</nav>
<article class='next' id='fragranceList'>
<section>
<ul class='list' id='availableFragrances'></ul>
</section>
</article>
<nav class='next' id='detailNavbar'>
<button class='back' id='backToGenre'></button>
<h1 id='detailTitle'></h1>
</nav>
<article class='next' id='detail'>
<section>
<ul class='list' id='fragranceDetail'></ul>
</section>
</article>
<div class='toolbar next'>
<button id='addToCart' class="add"></a>
<button id="shoppingCart" class="align-flush"></button>
</div>
<nav class="next">
<button class='back' id='backToFragrance'></button>
<h1>Cart</h1>
</nav>
<article id="cart" class="next">
<section>
<h2>Your Purchase:</h2>
<ul class="list" id="purchaseItems"></ul>
<h2>Total:</h2>
<ul class="list">
<li class='comp'>
<div><h3>Total Items:</h3></div>
<aside><h4 id="totalItems"></h4></aside>
</li>
<li class='comp'>
<div><h3>Total Cost:</h3></div>
<aside><h4 id="totalCost">$<span></span></h4></aside>
</li>
</ul>
<div id='orderButtons'>
<button id="placeOrder" href="#" class="action">Place Order</button>
<button id="cancelOrder" href="#" class="action">Cancel Order</button>
</div>
</section>
</article>
<nav class="next">
<button class='back' id='backToCart'>Cart</button>
<h1>Confirmation</h1>
</nav>
<article id="confirmation" class="next">
<section>
<ul class="list">
<li>
<h3>Your Order Was Successful!</h3>
<h4>Confirmation number: <span id="confirmationNum"></span></h4>
</li>
</ul>
<h2>Purchase Details:</h2>
<ul class="list" id='purchaseDetails'></ul>
<h2>Total Amount Charged:</h2>
<ul class="list">
<li>
<h3><span id="confirmTotalCost">$<span></span></h3>
</li>
</ul>
</section>
</article>
<script id='genreListTemplate' type="text/x-template">
<li class='nav' data-goto='fragranceList' data-genre='[[=data]]'>
<h3>[[=data]]</h3>
</li>
</script>
<script id='availableFragrancesTemplate' type="text/x-template">
<li data-sku='[[=fragrance.sku]]' data-singletap='getChosenFragrance()' class='comp' data-goto='detail'>
<aside>
<img width='60' src='[[=fragrance.img_prev]]'>
</aside>
<div>
<h3 class='productTitle'>[[=fragrance.product_title]]</h3>
<h4>[[=fragrance.sku]]</h4>
<h4>[[=fragrance.short_description]]</h4>
</div>
<aside>
<span class='counter'>$[[=fragrance.wholesale_price]]</span>
<span class='show-detail'></span>
</aside>
</li>
</script>
<script id='fragranceDetailTemplate' type="text/x-template">
<li>
<img src="[[=chosenFragrance.img_prev]]">
<h3 class="productTitle">[[=chosenFragrance.product_title]]</h3>
<h4><span class="sku">SKU: [[=chosenFragrance.sku]]</span></h4>
<h4 class="counter flush">$[[=chosenFragrance.wholesale_price]]</h4>
<p class="longDescription">[[=chosenFragrance.long_description]]</p>
</li>
</script>
<script id='cartItems' type="text/x-template">
<li class='comp' data-repeat="item in purchases">
<div>
<h3>[[=item.product_title]]</h3>
<h4>SKU: [[=item.sku]]</h4>
</div>
<aside><p>Price: $[[=item.wholesale_price]]</p></aside>
</li>
</script>
<script id='purchaseDetailsTemplate' type="text/x-template">
<li>
<h3><span>[[=item.genre]]</span>: [[=item.product_title]]</h3>
</li>
</script>
</body>
</html>