forked from sfbrigade/look-at-sf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.html
48 lines (40 loc) · 1.37 KB
/
test.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
<!DOCTYPE html>
<html>
<head>
<title>Budget fusion tables test</title>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"></script>
<script type="text/javascript" src="http://www.google.com/jsapi"></script>
<script src="scripts/budget.fusiontables.js" type="text/javascript"></script>
<script type="text/javascript">
function updateTable() {
$('#ftdata').html(breakdownData);
}
$(document).ready(function() {
//getFundInfo('Corporate Fund', getDataAsTable);
getDepartmentsForFund('Corporate Fund', 2012, getDataAsBudgetTable);
//getFundTotalArray('Corporate Fund', 1);
//display the results on the page
//$('#ftdata').html(display);
//getFundTotalForYear('Corporate Fund', 1993, 1);
//var myQuery = "SELECT 'Fund', 'Department', 'Department Description' FROM " + fusionTableId + " WHERE 'Fund' = 'Corporate Fund'";
//displayData(myQuery);
});
</script>
</head>
<body>
<div id="ftdata"></div>
<table id="breakdown">
<thead>
<tr>
<th><span>Fund</span></th>
<th class="num"><span>Budgeted</span></th>
<th class="num"><span>Spent</span></th>
<th class="charts">Budgeted vs. spent</th>
</tr>
</thead>
<tbody>
</tbody>
</table>
</body>
</html>