-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
60 lines (54 loc) · 2.13 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
<!DOCTYPE HTML>
<html>
<head>
<meta charset='utf-8'>
<meta http-equiv="content-language" content="ca">
<link rel="stylesheet" type="text/css" href="css/main.css" media="screen">
<title>Build a Shopping Cart with Marionette</title>
<script src="https://code.jquery.com/jquery-1.11.1.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.7.0/underscore-min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.js/1.1.2/backbone-min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/backbone.marionette/2.2.1/backbone.marionette.min.js"></script>
<script id="cart-empty-template" type="text/html">
<td class="empty">Your cart is empty.</td>
</script>
<script id="cart-template" type="text/html">
<h3 class="header-3">Your cart <span class="subtotal"></span></h3>
<table>
<tbody>
</tbody>
</table>
<a href="/go-checkout" class="button action">go checkout</a>
</script>
<script id="cart-product-template" type="text/html">
<td class="image">
<a href="<%= url %>">
<img src="<%= image %>" alt="<%= title %>">
</a>
</td>
<td class="description">
<a href="<%= url %>">
<p><%= title %></p>
<p class="price"><%= price %> €</p>
</a>
<a class="delete-button"> </a>
</td>
</script>
</head>
<body>
<section id="content" class="product">
<div class="wrapper">
<aside class="sidebar">
<div id="shopping-cart" class="cart"> </div>
</aside>
</div>
</section>
<script>
var App = new Backbone.Marionette.Application({});
</script>
<script type="text/javascript" src="./js/cart.js"></script>
<script>
App.start();
</script>
</body>
</html>