mirror of
https://github.com/wassname/cardsforscience.git
synced 2026-06-27 17:15:11 +08:00
Statistics are now updated dynamically.
This commit is contained in:
+3
-3
@@ -242,9 +242,9 @@
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<ul class="list-group">
|
||||
<li class="list-group-item"><i class="fa fa-location-arrow"></i> : <strong>{{ stats.clicks | niceNumber }}</strong></li>
|
||||
<li class="list-group-item"><i class="fa fa-database"></i> : <strong>{{ stats.dataSpent | niceNumber }}</strong> used / <strong>{{ stats.dataCollected | niceNumber }}</strong> collected</li>
|
||||
<li class="list-group-item"><i class="fa fa-money"></i> : <strong>{{ stats.moneySpent | niceNumber }}</strong> spent / <strong>{{ stats.moneyCollected | niceNumber }}</strong> gathered</li>
|
||||
<li class="list-group-item"><i class="fa fa-location-arrow"></i> : <strong>{{ lab.state.clicks | niceNumber }}</strong></li>
|
||||
<li class="list-group-item"><i class="fa fa-database"></i> : <strong>{{ lab.state.dataSpent | niceNumber }}</strong> used / <strong>{{ lab.state.dataCollected | niceNumber }}</strong> collected</li>
|
||||
<li class="list-group-item"><i class="fa fa-money"></i> : <strong>{{ lab.state.moneySpent | niceNumber }}</strong> spent / <strong>{{ lab.state.moneyCollected | niceNumber }}</strong> gathered</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -156,13 +156,7 @@
|
||||
}]);
|
||||
|
||||
app.controller('StatsController', function($scope) {
|
||||
$scope.stats = {
|
||||
clicks: lab.state.clicks,
|
||||
moneyCollected: lab.state.moneyCollected,
|
||||
moneySpent: lab.state.moneySpent,
|
||||
dataCollected: lab.state.dataCollected,
|
||||
dataSpent: lab.state.dataSpent
|
||||
};
|
||||
$scope.lab = lab;
|
||||
});
|
||||
|
||||
analytics.init();
|
||||
|
||||
Reference in New Issue
Block a user