forked from Code4Nation/KawalAPBD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
227 lines (210 loc) · 11.8 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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
<!DOCTYPE html>
<!-- saved from url=(0050)http://getbootstrap.com/examples/starter-template/ -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="">
<meta name="author" content="">
<!-- http://stackoverflow.com/questions/1341089/using-meta-tags-to-turn-off-caching-in-all-browsers -->
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<title>Pantau RAPBD</title>
<!-- Bootstrap core CSS -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<!-- Custom styles for this template -->
<link href="css/custom.css?v=1" rel="stylesheet">
<!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
<!--[if lt IE 9]><script src="../../assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
<script src="js/ie-emulation-modes-warning.js"></script>
<script src="js/angular.min.js"></script>
<script src="js/underscore.min.js"></script>
<script src="js/controllers/index-controller.js?v=4"></script>
<script src='https://cdn.firebase.com/js/client/2.0.4/firebase.js'></script>
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-53bbbc685826fb13" async="async"></script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-60405785-1', 'auto');
ga('send', 'pageview');
</script>
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body ng-app="myApp" ng-controller="IndexCtrl">
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Tampilkan/sembunyikan navigasi</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="/">Pantau RAPBD</a>
</div>
<div id="navbar" class="collapse navbar-collapse">
<ul class="nav navbar-nav">
<li><a href="/">Data RAPBD DKI</a></li>
<li><a href="/treemap.html">Visualisasi anggaran</a></li>
<li><a ng-click="unauthenticate()" href="" ng-if="authData">Sign out</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</nav>
<div class="container-fluid">
<div class="row">
<div class="col col-md-12">
<div class="pull-left">
<div class="addthis_sharing_toolbox"></div>
<br/>
<b>Sumber data primer: </b><a href="http://jakarta.go.id/v2/news/2015/03/rapbd-pemprov-dki-dan-dprd#.VPLDDCwxs7w">http://jakarta.go.id/v2/news/2015/03/rapbd-pemprov-dki-dan-dprd#.VPLDDCwxs7w</a><br/>
<a href="treemap.html">Lihat visualisasi usulan/tambahan oleh DPRD</a>
<br/>
<b>Source code: </b><a href="https://github.com/Pantau-RAPBD/pantau-rapbd.github.io">https://github.com/Pantau-RAPBD/pantau-rapbd.github.io</a>
<br/>
</div>
</div>
</div>
<div>
<nav ng-cloak>
<ul class="pager">
<li><a href="" ng-hide="currentPage == 0" ng-click="goToPrevPage()">< Sebelumnya</a></li>
Halaman {{currentPage + 1}}/{{pageCount}}
<li><a href="" ng-hide="currentPage == pageCount - 1" ng-click="goToNextPage()">Berikutnya ></a></li>
<input style="margin-left:10px; width:100px" type="text" placeholder="Ke Halaman" ng-model="goToPageNo"/>
<buton class="btn btn-primary btn-sm" ng-click="goToPage()">Buka</buton>
</ul>
</nav>
<div ng-cloak>
<button ng-if="!detailedColumnsShown" class="btn btn-success" ng-click="showDetailedColumns(true)">Tampilkan kolom yang lebih detail</button>
<button ng-if="detailedColumnsShown" class="btn btn-warning" ng-click="showDetailedColumns(false)">Sembunyikan kolom yang lebih detail</button>
<button ng-if="isFiltered()" class="btn btn-danger" ng-click="clearFilters()">Hapus penyaring</button>
<b style="margin-left:10px">Total anggaran yang dikomentari: {{totalReports}}</b>
</div>
<table class="table table-condensed table-striped" ng-style="{'width': detailedColumnsShown && '2800px' || !detailedColumnsShown && '1000px'}" ng-cloak>
<thead>
<tr style="visibility:">
<th style="width:100px"/>
<th ng-hide="!detailedColumnsShown && isDetailedColumns[$index]" ng-repeat="header in headers track by $index" ng-style="{'width': headers_width[$index]}">
</th>
</tr>
<tr style="background:#B8B8B8">
<th></th>
<th class="with-left-border" colspan="{{!detailedColumnsShown && 7 || detailedColumnsShown && 10}}">Versi DPRD</th>
<th class="with-left-border" colspan="3">Versi Pemda</th>
<th class="with-left-border" colspan="4">Versi Pemda yang nama kegiatannya mirip</th>
</tr>
<tr style="background:#E8E8E8">
<th style="width:100px">
Komentar
<a href="" ng-click="toggleSort(17)"><span ng-class="{'glyphicon': true, 'glyphicon glyphicon-sort': sortCriteria[0] != 17, 'glyphicon glyphicon-arrow-down': sortCriteria[1] == 'desc' && sortCriteria[0] == 17,'glyphicon glyphicon-arrow-up': sortCriteria[1] == 'asc' && sortCriteria[0] == 17}"/></a>
</th>
<th ng-hide="!detailedColumnsShown && isDetailedColumns[$index]" ng-repeat="header in headers track by $index" ng-class="{'with-left-border': $index==10||$index==13||$index==0}" ng-style="{'width': headers_width[$index]}">
{{headers[$index]}}
<a href="" ng-click="toggleSort($index)"><span ng-class="{'glyphicon': true, 'glyphicon glyphicon-sort': sortCriteria[0] != $index, 'glyphicon glyphicon-arrow-down': sortCriteria[1] == 'desc' && sortCriteria[0] == $index,'glyphicon glyphicon-arrow-up': sortCriteria[1] == 'asc' && sortCriteria[0] == $index}"/></a>
<div class="form-group" ng-class="{'has-success': filters[$index]}">
<input type="text" class="form-control" style="width:100%" ng-change="refreshDisplayedBudgets(false)" ng-model="filters[$index]"/>
</div>
</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="budget in displayedBudgets">
<td style="width:100px">
<button class="btn btn-danger btn-sm" data-toggle="modal" data-target="#reportModal" ng-click="updateToBeReportedBudget(budget)">Komentar</button>
<br/>
<small>
<a ng-click="showReports(budget)" href="" ng-if="budget[17] && selectedReportsBudgetId != budget[0]">{{budget[17]}} komentar</a>
<a ng-click="hideReports()" href="" ng-if="selectedReports && selectedReportsBudgetId == budget[0]">Sembunyikan komentar</a>
</small>
</td>
<td ng-hide="!detailedColumnsShown && isDetailedColumns[$index]" ng-if="selectedReportsBudgetId != budget[0]" ng-repeat="i in [0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16]" ng-class="{'with-left-border': $index==10||$index==13||$index==0}" ng-style="{'width': headers_width[$index]}">
{{budget[i]}}
<div ng-if="i == 1">
<button class="btn btn-xs btn-primary" ng-click="vote(budget, 1)">
Like
</button>
<span class="label" ng-class="{'label-danger': budget[18]<0, 'label-success': budget[18]>0, 'label-default': budget[18]==0}">{{budget[18]}}</span>
<button class="btn btn-xs btn-warning" ng-click="vote(budget, -1)">
Dislike
</button>
</div>
</td>
<td ng-if="selectedReports && selectedReportsBudgetId == budget[0]" colspan="7" class="with-left-border">
<p ng-repeat="report in selectedReports">
<b><a ng-href="http://www.facebook.com/{{report.user_id.substring(9)}}">{{report.name}}</a></b>
{{report.content}}
</p>
</td>
</tr>
</tbody>
</table>
<nav ng-cloak>
<ul class="pager">
<li><a href="" ng-hide="currentPage == 0" ng-click="goToPrevPage()">< Sebelumnya</a></li>
Halaman {{currentPage + 1}}/{{pageCount}}
<li><a href="" ng-hide="currentPage == pageCount - 1" ng-click="goToNextPage()">Berikutnya ></a></li>
<input style="margin-left:10px; width:100px" type="text" placeholder="Ke Halaman" ng-model="goToPageNo"/>
<buton class="btn btn-primary btn-sm" ng-click="goToPage()">Buka</buton>
</ul>
</nav>
</div>
</div><!-- /.container-fluid -->
<!-- Bootstrap core JavaScript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery.min.js"></script>
<script src="js/bootstrap.min.js"></script>
<!-- IE10 viewport hack for Surface/desktop Windows 8 bug -->
<script src="js/ie10-viewport-bug-workaround.js"></script>
<div class="modal fade bs-example-modal-lg" id="reportModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<b>Komentar baru</b>
</div>
<div class="modal-body">
<div class="form-group">
<label>Komentar Anda</label>
<textarea class="form-control" rows="12" required ng-model="reportDescription"></textarea>
</div>
<button class="btn btn-primary btn-sm" data-toggle="modal" data-target="#reportModal" ng-click="report(toBeReportedBudget)">Kirim</button></td>
</div>
</div>
</div>
</div>
<div class="modal fade bs-example-modal-lg" id="displayReportsModal" tabindex="-1" role="dialog" aria-labelledby="myLargeModalLabel" aria-hidden="true">
<div class="modal-dialog modal-lg">
<div class="modal-content">
<div class="modal-header">
<b>Semua komentar</b>
</div>
<div class="modal-body">
<table class="table table-striped table-condensed">
<thead>
<tr>
<th>Nama</th>
<th>Komentar</th>
</tr>
</thead>
<tbody>
<tr ng-repeat="report in selectedReports">
<td>{{report.name}}</td>
<td>{{report.content}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</div>
</body></html>