-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
132 lines (128 loc) · 5.63 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
<!DOCTYPE html>
<html>
<head>
<title>Campaign Monitoring Tool</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- CSS -->
<link href="css/jquery.dynatable.css" rel="stylesheet" media="screen">
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
<link href="css/bootstrap-sortable.css" rel="stylesheet" media="screen">
<link href="css/dc.css" rel="stylesheet" media="screen">
<!-- JS libs -->
<script src="js/jquery-1.11.0.js"></script>
<script src="js/jquery.cookie.js"></script>
<script src="js/jquery.dynatable.js"></script>
<script src="js/bootstrap.min.js"></script>
<script src="js/bootstrap-sortable.js"></script>
<script src="js/d3.js"></script>
<script src="js/dc.js"></script>
<script src="js/crossfilter.js"></script>
<script src="js/underscore-min.js"></script>
<script src="js/ohmage.js"></script>
<!-- JS for this page -->
<script src="index.js"></script>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-md-6">
<h1>Campaign Monitoring Tool</h1>
</div>
<div class="col-md-4"><br>
<h5><span id="campaign_name">Not a Valid Campaign</span></h5>
</div>
<div class="col-md-2"><br>
<p id="info_text" style="display:none"><span id="info_textResponses">0 responses / 0 users </span> <a data-toggle="modal" data-target="#info_modal"><span class="glyphicon glyphicon-info-sign"></span></a>
<br><a id="manage-data-link" href="" target="_blank">Manage Data</a></p>
</div>
</div> <!-- end row 1 -->
<div class="alert alert-warning" style="display:none" id="alertBox">
This campaign has no content available to you, please select another campaign.
</div>
<div class="row" style="display:none" id="generated-content">
<div class="col-md-5 well">
<div class="row"><div class="col-md-12"><p class="text-right"><a href="javascript:dc.filterAll(); dc.renderAll();">Reset All</a><p></div></div>
<div class="row"> <!-- subrow -->
<div class="col-md-6" id="activity-pie">
<div class="row">
<div class="col-md-12"><span><h5>Active/Inactive Users<a class="reset" href="javascript:activity_pie.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
</div>
</div>
<div class="col-md-6" id="privacy-pie">
<div class="row">
<div class="col-md-12"><span><h5>Shared/Private Resp<a class="reset" href="javascript:privacy_pie.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
</div>
</div>
</div> <!-- end subrow -->
<div class="row"> <!-- subrow -->
<div class="col-md-12">
<div class="row">
<div class="col-md-12" id="date-chart"><span><h5>Total Responses by Day <a class="reset" href="javascript:date_chart.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
</div>
<div class="row">
<div class="col-md-12" id="dist-chart"><span><h5>Total Responses by User <a class="reset" href="javascript:dist_chart.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
</div>
</div>
</div> <!-- end subrow -->
<div class="row"> <!-- subrow -->
<div class="col-md-6" id="client-pie-user">
<div class="row">
<div class="col-md-12"><span><h5>App Type by User<a class="reset" href="javascript:client_pie_user.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
</div>
</div>
<div class="col-md-6" id="client-pie-resp">
<div class="row">
<div class="col-md-12"><span><h5>App Type by Resp<a class="reset" href="javascript:client_pie_resp.filterAll();dc.redrawAll();" style="display: none;">(reset)</a></h5></span></div>
</div>
</div>
</div> <!-- subrow -->
</div> <!-- end leftside well 1-->
<div class="col-md-6 col-md-offset-1 well">
<div class="row">
<div class="col-md-6"><span><h4>User List</h4></span></div>
<div class="col-md-6"><p class="text-right"><input type="checkbox" id="hidePersonal"> Show Personal Info</a></p></div>
</div>
<table id="user-table" class="table">
<thead>
<tr>
<th class="dynatable-head">User</th>
<th class="dynatable-head">First</th>
<th class="dynatable-head">Last</th>
<th class="dynatable-head">Private</th>
<th class="dynatable-head">Shared</th>
<th class="dynatable-head">Total</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
<!-- info modal -->
<div class="modal fade" id="info_modal">
<div class="modal-dialog">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
<h4 class="modal-title" id="info_title"></h4>
</div>
<div class="modal-body">
<table id="info_table" class="table table-bordered">
<tr><td>User Info</td><td><span id="info_userTotal">0</span></td></tr>
<tr><td>Response Info</td><td><span id="info_responseTotal">0</span></td></tr>
<tr><td>Avg responses per active user</td><td><span id="info_perUser">0</span></td></tr>
<tr><td>Responses with GPS data</td><td><span id="info_gps">0</span></td></tr>
<tr><td>First Response Date</td><td><span id="info_firstDate">0</span></td></tr>
<tr><td>Last Response Date</td><td><span id="info_lastDate">0</span></td></tr>
<tr><td>Total Collection Days</td><td><span id="info_totalDate">0</span></td></tr>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div><!-- /.modal-content -->
</div><!-- /.modal-dialog -->
</div><!-- /.modal -->
</body>
</html>