-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
110 lines (99 loc) · 2.87 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
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<!--[if IE]>
<meta http-equiv="cleartype" content="on">
<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
<![endif]-->
<meta name="HandheldFriendly" content="True">
<meta name="MobileOptimized" content="320">
<meta name="viewport" content="user-scalable=no, initial-scale=1.0, maximum-scale=1.0, width=device-width">
<title></title>
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.js"></script>
<![endif]-->
<link rel="stylesheet" href="http://fonts.googleapis.com/css?family=PT+Mono">
<link rel="stylesheet" href="styles/styles.css">
</head>
<body>
<div id="container" tabindex="-1">
<header role="banner">
<h1 role="presentation">Robot Shopper</h1>
<button
id="shopping_cart"
aria-owns="cart_contents"
aria-label="Cart count">
</button>
</header>
<!-- dynamically loaded from our template -->
<main id="main">
</main>
<footer role="contentinfo">
<p>Robot Shopper © 2014</p>
</footer>
</div>
<div
role="dialog"
id="my_cart"
tabindex="0"
aria-hidden="true"
aria-labelledby="my_cart_title">
<div id="my_cart_contents"></div>
<button
title="Close dialog"
id="close_cart"
aria-label="Close">
x
</button>
</div>
<div id="page_mask"></div>
<div
id="cart_count"
class="aria_counter"
aria-live="polite">
</div>
<div
id="item_count"
class="aria_counter"
aria-live="polite">
</div>
<script id="all_products" type="text/x-handlebars-template">
<div role="application">
<div id="product_sections" role="menu">
{{#products}}
<section tabindex="-1" role="menuitem">
<div class="product_information">
<h2 class="product_title">{{title}}</h2>
<span class="product_price">${{price}}</span>
</div>
<div class="product_details">
<a aria-labelledby={{pid}}” href="#" title="{{title}} details page" tabindex="0">
<img
id="{{pid}}"
aria-hidden="true"
class="product_thumb"
src="{{img_uri}}"
alt="{{title}}">
</a>
<p class="product_description">{{description}}</p>
</div>
<button
class="button add_to_cart"
tabindex="0"
aria-label="Add {{title}} to the cart"
aria-controls="shopping_cart cart_count"
data-pid="{{pid}}">
Add to Cart
</button>
</section>
{{/products}}
</div>
</div>
</script>
<script src="http://code.jquery.com/jquery-2.0.3.min.js"></script>
<script src="js/handlebars.js"></script>
<script src="js/products.js"></script>
<script src="js/app.js"></script>
</body>
</html>