-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
76 lines (64 loc) · 2.64 KB
/
index.html
File metadata and controls
76 lines (64 loc) · 2.64 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
<!DOCTYPE html>
<html ng-app="store">
<head>
<title>Angular Gem Store</title>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.5/angular.min.js"></script>
<script src="app.js"></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous">
<link rel="stylesheet" href="css/style.css" />
</head>
<body>
<header>
<h1 class="text-center">Flatlander Crafted Gems</h1>
<h2 class="text-center">~ an AngularJS store ~</h2>
</header>
<div class="container" ng-controller="StoreController as store">
<ul class="list-group">
<li class="list-group-item" ng-repeat="product in store.products | orderBy:'-price' ">
<div class="row">
<div class="col-md-6">
<h1>{{product.name | uppercase}}</h1>
<h3>{{product.price | currency}} <button class="btn btn-default" ng-show="product.canPurchase"><span class="glyphicon glyphicon-shopping-cart"></span>
Add To Cart</button></h3>
<div ng-controller="PanelController as panel">
<ul class="nav nav-pills">
<li ng-class="{ active:panel.isSelected(1) }">
<a href ng-click="panel.selectTab(1)">Description</a>
</li>
<li ng-class="{ active:panel.isSelected(2) }">
<a href ng-click="panel.selectTab(2)">Specifications</a>
</li>
<li ng-class="{ active:panel.isSelected(3) }">
<a href ng-click="panel.selectTab(3)">Reviews</a>
</li>
</ul>
<div class="panel" ng-show="panel.isSelected(1)">
<h4>Description</h4>
<p>{{product.description}}</p>
</div>
<div class="panel" ng-show="panel.isSelected(2)">
<h4>Specifications</h4>
<p>None Yet</p>
</div>
<div class="panel" ng-show="panel.isSelected(3)">
<h4>Reviews</h4>
<p>{{product.review}}</p>
</div>
</div>
</div>
<div class="col-md-6" ng-show="product.images.length" ng-controller="GalleryController as gallery">
<div class="img-wrap">
<img ng-src="{{product.images[gallery.imageIndex]}}" class="img-thumbnail center-block" />
</div>
<ul class="img-thumbnails clearfix">
<li class="small-image pull-left thumbnail" ng-repeat="image in product.images" ng-click="gallery.currentImageChange($index)">
<img ng-src="{{image}}" />
</li>
</ul>
</div>
</div>
</li>
</ul>
</div>
</body>
</html>