safaribook-knockout-essentials/ko-cart/index.html

34 lines
1.4 KiB
HTML
Raw Normal View History

2021-05-27 11:29:14 +10:00
<!DOCTYPE html>
<html>
2021-05-27 11:49:42 +10:00
<head>
<title>KO Shopping Cart</title>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" type="text/css" href="css/bootstrap.min.css" />
</head>
<body>
<div class="container-fluid">
<div class="row" data-bind="if: visibleCatalog">
<div class="col-xs-12" data-bind="template:{name:'header'}"></div>
<div class="col-xs-6" data-bind="template:{name:'catalog'}"></div>
<div class="col-xs-6 well hidden" data-bind="if: visibleCart">
<div class="well" data-bind="template:{name:'cart'}"></div>
</div>
</div>
<div class="row" data-bind="if: visibleCart">
<div data-bind="template:{name:'order'}"></div>
2021-05-27 14:24:43 +10:00
</div>
<div data-bind="template: {name:'add-to-catalog-modal'}"></div>
<div data-bind="template: {name:'finish-order-modal'}"></div>
</div>
2021-05-27 12:03:06 +10:00
<!-- vendor library -->
2021-05-27 11:49:42 +10:00
<script type="text/javascript" src="js/jquery-2.1.1.min.js"></script>
<script type="text/javascript" src="js/bootstrap.js"></script>
<script type="text/javascript" src="js/knockout-3.2.0.js"></script>
2021-05-27 12:03:06 +10:00
<!-- app -->
<script type="text/javascript" src="js/models/Product.js"></script>
<script type="text/javascript" src="js/models/CartProduct.js"></script>
2021-05-27 12:03:06 +10:00
<script type="text/javascript" src="js/viewmodel.js"></script>
2021-05-27 11:49:42 +10:00
</body>
</html>