-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
116 lines (104 loc) · 4.86 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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html>
<head>
<title>Sails</title>
<!-- Viewport mobile tag for sensible mobile support -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<!--STYLES-->
<link rel="stylesheet" href="linker/styles/bootstrap.min.css">
<link rel="stylesheet" href="linker/styles/bootstrap-theme.min.css">
<link rel="stylesheet" href="linker/styles/style.css">
<!--STYLES END-->
<!--SCRIPTS-->
<script src="linker/js/socket.io.js"></script>
<script src="linker/js/sails.io.js"></script>
<script src="linker/js/lib/jquery.min.js"></script>
<script src="linker/js/lib/bootstrap.min.js"></script>
<script src="bower_components/angular/angular.js"></script>
<script src="linker/js/lib/less-1.3.3.min.js"></script>
<script src="bower_components/angular-route/angular-route.min.js"></script>
<script src="linker/js/lib/highcharts.js"></script>
<script src="bower_components/highcharts-ng/src/highcharts-ng.js"></script>
<script src="linker/js/lib/html5shiv.js"></script>
<script src="linker/js/app/app.js"></script>
<script src="linker/js/app/activity/index.js"></script>
<script src="linker/js/app/driectives/activityEscape.js"></script>
<script src="linker/js/app/driectives/activityFocus.js"></script>
<script src="linker/js/app/driectives/highChart.js"></script>
<script src="linker/js/app/graph/index.js"></script>
<script src="linker/js/app/utilities/localStorage.js"></script>
<!--SCRIPTS END-->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="js/html5shiv.js"></script>
<![endif]-->
<!-- Fav and touch icons -->
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="img/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="img/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="img/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="img/apple-touch-icon-57-precomposed.png">
<link rel="shortcut icon" href="img/favicon.png">
</head>
<body ng-app="AppPrioritizer" ng-controller="AppController">
<div class="container">
<!-- Header -->
<div class="row clearfix" ng-include="'header.html'" >
</div>
<!-- Header -->
<div class="row clearfix">
<div class="col-md-7 column clearfix">
<div ng-include="'graph.html'"></div>
</div>
<div class="col-md-4 col-md-offset-1 column clearfix">
<div ng-include="'activity.html'" ></div>
</div>
</div>
</div>
</body>
</html>
<script type="text/ng-template" id="header.html">
<div class="row clearfix page-header">
<h1>Prioritizer</h1>
</div>
</script>
<script type="text/ng-template" id="graph.html" >
<div ng-controller="GraphController" >
<highchart id="chart1" config="chartConfig" class="span9" ></highchart>
</div>
</script>
<script type="text/ng-template" id="activity.html" >
<div ng-controller="ActivityController" onload="" >
<div class="panel panel-default" >
<div class="panel-heading">
<h3 class="panel-title">
{{title}}
</h3>
</div>
<div class="panel-body">
<form id="activity-form" ng-submit="addActivity()">
<div class="form-group">
<input type="text" required placeholder="What needs to be done?" ng-model="newActivity" id="new-activity" autofocus class="form-control" id="exampleInputEmail1">
</div>
</form>
</div>
</div>
<div class="panel panel-default" id="activity-list" ng-show="activities.length">
<div ng-repeat="activity in activities | filter:statusFilter track by $index" class="panel-body" repeat-complete="doneRepeating()">
<div class="circle" ng-class="{editing: activity == editedImpActivity}">
<div class="view" ng-click="editImportance(activity)">{{activity.activityImportance}}</div>
<form ng-submit="doneEditingImportance(activity)">
<input type="text" class="editing-metrics" activity-escape="revertActivity(activity)" activity-focus="activity == editedImpActivity" ng-model="activity.activityImportance" ng-blur="doneEditingImportance(activity)" >
</form>
</div>
<span ng-dblclick="editActivity(activity)" >{{activity.title}}</span>
<div class="circle right" ng-class="{editing: activity == editedPrioActivity}">
<div class="view" ng-click="editPriority(activity)">{{activity.activityPriority}}</div>
<form ng-submit="doneEditingPriority(activity)">
<input type="text" class="editing-metrics" activity-focus="activity == editedPrioActivity" activity-escape="revertActivity(activity)" ng-model="activity.activityPriority" ng-blur="doneEditingPriority(activity)" >
</form>
</div>
<button class="destroy" ng-click="removeActivity(activity)"></button>
</div>
</div>
</div>
</script>