-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
63 lines (55 loc) · 1.76 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
<!DOCTYPE html>
<html ng-app="wishlistApp">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="./assets/main.css">
<link href='https://fonts.googleapis.com/css?family=Ubuntu:300&subset=latin,cyrillic-ext,cyrillic' rel='stylesheet' type='text/css'>
<link href='https://fonts.googleapis.com/css?family=Ubuntu+Condensed&subset=latin,cyrillic-ext,cyrillic' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.9/angular.min.js"></script>
<script src="./src/js/app.js"></script>
<script src="./src/js/services.js"></script>
<script src="./src/js/controllers.js"></script>
</head>
<body ng-controller="wishlistController">
<header>
</header>
<aside>
<div class="title">
Список желаемого
</div>
<div class="items">
<div class="item" ng-repeat="(id, wish) in wishes">
<div class="label">
{{ wish.name }}
</div>
<div class="btn action" ng-click="remove(id)">
<i class="material-icons">clear</i>
</div>
</div>
</div>
<div class="total">
Сумма: <span id="sum">{{ sum }}</span> руб.
</div>
<div class="action">
<a href="#" ng-click="clear()">Очистить список</a>
</div>
</aside>
<main>
<div class="card" ng-repeat="(id, game) in games">
<div class="image">
<img src="{{ game.cover }}">
</div>
<div class="action" ng-click="put(id)" ng-class="{'wishlisted' : game.checked}">
{{ game.checked ? 'В списке' : 'Добавить'}}
</div>
<div class="title">
{{ game.name }}
</div>
<div class="price">
{{ game.price }}
</div>
</div>
</main>
</body>
</html>