-
Notifications
You must be signed in to change notification settings - Fork 349
/
dailybread_white.html
141 lines (129 loc) · 5.03 KB
/
dailybread_white.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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js" lang="en">
<!--<![endif]-->
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
<title>The Daily Bread - Where Does My Money Go?</title>
<meta
name="description"
content="We show the story of where the UK taxpayer money is spent through beautiful visualizations."
/>
<meta name="viewport" content="width=device-width" />
<link rel="stylesheet" href="css/bootstrap.css" />
<link rel="stylesheet" href="css/style.css" />
<link rel="shortcut icon" href="img/favicon.ico" type="image/x-icon" />
<script src="js/libs/modernizr-2.5.3.min.js"></script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<style>
body,
html {
background-color: white;
}
</style>
</head>
<body>
<!--[if lt IE 7
]><p class="chromeframe">
Your browser is <em>ancient!</em>
<a href="http://browsehappy.com/">Upgrade to a different browser</a> or
<a href="http://www.google.com/chromeframe/?redirect=true"
>install Google Chrome Frame</a
>
to experience this site.
</p><!
[endif]-->
<div class="container">
<script>
var os_path = "http://assets.openspending.org/openspendingjs/master";
yepnope({
load: [
// 'http://wheredoesmymoneygo.org/wp-content/themes/wdmmg/wdmmg.css',
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8.6/themes/ui-lightness/jquery-ui.css",
"http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js",
"http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js",
os_path + "/lib/vendor/base64.js",
os_path + "/lib/vendor/underscore.js",
os_path + "/lib/vendor/raphael-min.js",
os_path + "/lib/aggregator.js",
os_path + "/app/dailybread/css/dailybread.css",
os_path + "/app/dailybread/js/cofog.js",
os_path + "/app/dailybread/js/dailybread.js",
],
complete: function () {
(function ($) {
$(function () {
$("#preloader .txt").html("loading data");
var db = new OpenSpending.DailyBread($("#dailybread"));
new OpenSpending.Aggregator({
apiUrl: "http://openspending.org/api",
localApiCache: "aggregate.json",
dataset: "ukgov-finances-cra",
drilldowns: ["cofog1", "cofog2", "cofog3"],
cuts: ["year:2008"],
rootNodeLabel: "Total",
breakdown: "region",
callback: function (data) {
$("#content-wrap").show();
$("#preloader").remove();
db.setDataFromAggregator(data, ["unknown"]);
db.setIconLookup(function (name) {
var style = OpenSpending.Styles.Cofog[name];
if (style != undefined) {
return style["icon"];
}
return "icons/unknown.svg";
});
db.draw();
},
});
});
})(jQuery);
},
});
</script>
<div id="dailybread">
<h2 class="page-header">
The Daily Bread <small> Costs for the British Taxpayer per Day</small>
</h2>
<div id="preloader" style="text-align: center; padding: 100px">
<img src="img/ajax-loader.gif" style="vertical-align: top" />
<span class="txt">loading javascript libraries</span>
</div>
<div id="content-wrap" style="display: none">
<div id="db-topbar" class="layout-row layout-3col-15-70-15">
<div id="db-salary" class="layout-col layout-col-1">
<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>£31.12</p>
</div>
</div>
<!-- /#db-topbar -->
</div>
</div>
<!-- /#dailybread -->
</div>
<script>
var _gaq = [["_setAccount", "UA-8271754-8"], ["_trackPageview"]];
(function (d, t) {
var g = d.createElement(t),
s = d.getElementsByTagName(t)[0];
g.src =
("https:" == location.protocol ? "//ssl" : "//www") +
".google-analytics.com/ga.js";
s.parentNode.insertBefore(g, s);
})(document, "script");
</script>
</body>
</html>