Permalink
Browse files

Update cuts to 2010, whitespace fixes

  • Loading branch information...
1 parent 754a7b4 commit 9aac165e0880734690ed2434e38e23bb1414e991 @nigelbabu nigelbabu committed Mar 27, 2013
Showing with 8 additions and 8 deletions.
  1. +8 −8 dailybread_white.html
View
@@ -16,12 +16,12 @@ <h2 class="page-header">The Daily Bread <small> Costs for the British Taxpayer p
<h2>Salary</h2>
<p>£22,000</p>
</div>
-
+
<div id="db-slider" class="layout-col layout-col-2">
<h2>Select your salary</h2>
<div class="wdmmg-slider"></div>
</div>
-
+
<div id="db-tax" class="layout-col layout-col-3">
<h2>Your tax</h2>
<p>£8,621</p>
@@ -40,7 +40,7 @@ <h2 class="page-header">The Daily Bread <small> Costs for the British Taxpayer p
var db_load_data = function load_data(db, data) {
$('#content-wrap').show();
$('#preloader').remove();
-
+
db.setDataFromAggregator(data, ['unknown']);
db.setIconLookup(function(name) {
var style = OpenSpending.Styles.Cofog[name];
@@ -50,19 +50,19 @@ <h2 class="page-header">The Daily Bread <small> Costs for the British Taxpayer p
return 'img/functions/unknown.svg';
});
db.draw();
- }
+ }
var db_init = function db_init() {
$('#preloader .txt').html('loading data');
-
- var db = new OpenSpending.DailyBread($('#dailybread'));
+
+ var db = new OpenSpending.DailyBread($('#dailybread'));
new OpenSpending.Aggregator({
apiUrl: 'http://openspending.org/api',
dataset: 'ukgov-finances-cra',
drilldowns: ['cofog1', 'cofog2', 'cofog3'],
- cuts: ['year:2008'],
- rootNodeLabel: 'Total',
+ cuts: ['year:2010'],
+ rootNodeLabel: 'Total',
breakdown: 'region',
callback: function (data) { db_load_data(db, data); }
});

0 comments on commit 9aac165

Please sign in to comment.