-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcatalog.html
More file actions
60 lines (49 loc) · 1.59 KB
/
Copy pathcatalog.html
File metadata and controls
60 lines (49 loc) · 1.59 KB
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>
<meta charset="utf-8"/>
<html>
<head>
<link rel = "stylesheet" type="text/css" href="cart.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/TweenMax.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
</head>
<body>
<style>
</style>
<link rel="stylesheet" href="catalog.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/gsap/1.18.0/TweenMax.min.js"></script>
<script src="catalog.js"></script>
<script src="Shopping_cart_widget.js"></script>
<table width="100%">
<tr>
<td id="allproducts"><div class="content_container">
</div>
</td>
<td width="150px"><div class="shoppingcart_container">для корзины и соответствующей информации о заказе...</div></td>
</tr>
</table>
<script>
//tc.clearProductList();
//tc.clearCategoryList(1);
//tc.outPutAllTree();
//tc.drawFirstLevel();//исправить косяк с addEventListener!!!
//tc.outputAllProducts();
var content={node:Node};
var tc = new TeaShopCatalogCreator(content);
tc.outPutAllTree();
tc.RegisterEvents();
</script>
<button onclick = 'cartinit()'> Init Cart</button>
<hr/>
<button onclick = 'additem()'> Add to Cart</button>
<div style = 'position:absolute;'>
<textarea id = 'name'> name </textarea>
<textarea id = 'quantity'> quantity </textarea>
<textarea id = 'priceforone'> price </textarea>
<select id = 'type'>
<option value="tea">tea</option>
<option value="pots">pots</option>
<option value="set">set</option>
</select>
</div>
</body>
</html>