-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
72 lines (69 loc) · 4.36 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
64
65
66
67
68
69
70
71
72
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>QuickPlan prototype</title>
<!--Import Google Icon Font-->
<link href="//fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
<!--Import materialize.css-->
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/materialize/0.97.3/css/materialize.min.css">
<link rel="stylesheet" href="css/style.css">
<!--Let browser know website is optimized for mobile-->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- favicons -->
<link rel="apple-touch-icon" sizes="57x57" href="favicons/apple-touch-icon-57x57.png">
<link rel="apple-touch-icon" sizes="60x60" href="favicons/apple-touch-icon-60x60.png">
<link rel="apple-touch-icon" sizes="72x72" href="favicons/apple-touch-icon-72x72.png">
<link rel="apple-touch-icon" sizes="76x76" href="favicons/apple-touch-icon-76x76.png">
<link rel="apple-touch-icon" sizes="114x114" href="favicons/apple-touch-icon-114x114.png">
<link rel="apple-touch-icon" sizes="120x120" href="favicons/apple-touch-icon-120x120.png">
<link rel="apple-touch-icon" sizes="144x144" href="favicons/apple-touch-icon-144x144.png">
<link rel="apple-touch-icon" sizes="152x152" href="favicons/apple-touch-icon-152x152.png">
<link rel="apple-touch-icon" sizes="180x180" href="favicons/apple-touch-icon-180x180.png">
<link rel="icon" type="image/png" href="favicons/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="favicons/android-chrome-192x192.png" sizes="192x192">
<link rel="icon" type="image/png" href="favicons/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="favicons/favicon-16x16.png" sizes="16x16">
<link rel="manifest" href="favicons/manifest.json">
<link rel="mask-icon" href="favicons/safari-pinned-tab.svg" color="#5bbad5">
<meta name="msapplication-TileColor" content="#da532c">
<meta name="msapplication-TileImage" content="/mstile-144x144.png">
<meta name="theme-color" content="#ffffff">
</head>
<body ng-app="QuickPlan" ng-controller="pollCtrl">
<div class="phone-container">
<header class="containter-fluid z-depth-1">
<div class="main-header blue-grey">
<i class="material-icons tappable" ng-click="back()">arrow_back</i>
<span class="title offset-left">Fancy dinner</span>
<i class="material-icons tappable float-right">expand_less</i>
</div>
<div class="sub-header blue-grey darken-2">
<i class="material-icons tappable">location_on</i>
<span class="title offset-left">Choose location</span>
<i class="material-icons tappable float-right" ng-class="{'md-inactive': !sorted}" ng-click="toggleSort()" ng-show="model.expanded == null">sort</i>
</div>
</header>
<section id="poll" ng-style="{height: getPollHeight()}">
<div class="item" id="{{item.id()}}" ng-repeat="item in model.items" ng-style="{top: getTop(item), height: getHeight(item)}">
<div class="bar indicator green lighten-4" ng-class="{voted: (item.vote==1 && item.temp_vote == null || item.temp_vote==1)}" ng-style="{width: getGreenWidth(item)}"></div>
<div class="bar indicator red lighten-4" ng-class="{voted: (item.vote==-1 && item.temp_vote == null || item.temp_vote==-1)}" ng-style="{width: getRedWidth(item)}"></div>
<div class="bar white"></div>
<div class="bar text noselect">{{item.name}}</div>
<div class="bar swippable" hm-drag="drag($event, item)" hm-dragend="dragend($event, item)" hm-tap="expand(item)"></div>
<div class="bar details" ng-style="{opacity: (model.expanded == item? 1 : 0)}">This screen will show information about the restaurant (map, directions, reviews), as well as the detail of who voted for and against it.</div>
</div>
<div class="bar main placeholder">
<div class="bar text" contenteditable>Add item</div>
</div>
</section>
</div>
<!-- Load scripts -->
<script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.4.8/angular.min.js"></script>
<script src="js/hammer.min.js"></script>
<script src="js/angular-gestures.min.js"></script>
<script src="js/app.js"></script>
<script src="js/controller.js"></script>
</body>
</html>