-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
62 lines (50 loc) · 2.1 KB
/
index.html
File metadata and controls
62 lines (50 loc) · 2.1 KB
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
<!--
Author: Khaleeq Ahmad Date: November 2014
Index file for the project.
-Takes live data from JSON to be formatted hierchially (set-data.js)
-Creates a zoomable bubble map (zoom-map.js) with tooltips and . Bubbles are set from selection box Jquery function in this file.
-Creates a radial tree using the hierchial version of data. Nodes can be expanded and hovered for full tooltips for info on orgs/grants/investigators (radial-tree.js).
-->
<!DOCTYPE html>
<meta charset="utf-8">
<link rel="stylesheet" type="text/css" href="css/style.css" />
<script src="js/jquery-1.11.1.min.js"></script>
<script src="http://d3js.org/d3.v3.min.js"></script>
<script src="http://d3js.org/topojson.v1.min.js"></script>
<script>
// function getOrgBubbleValue(sel) {
// alert(sel.value);
// }
/////////////////////////// JQuery function called to set Bubble Map selector
$(document).ready(function() {
$("#orgBubbleSelect").on('change', function () {
// if (this.value == "grants")
// orgPinsByGrants();
//// alert("a");
// else if (this.value == "persons")
// orgPinsByPersons();
//// alert("b");
// else
// sortOrgPins(this.value);
// orgPinsBy(this.value);
setOrgBubble(this.value);
// console.log(this.value);
});
});
</script>
<body>
<!--Selector for Bubble Map options-->
<div id="map-col" class="col">
<select name="orgBubbleSelect" id="orgBubbleSelect" >
<!--onchange="getOrgBubbleValue()"-->
<option value="" disabled selected>--Bubble Map Options--</option>
<option value="reset">Reset to Pins</option>
<option value="grants">Number of Grants</option>
</select>
<button id="nobutton" type="button"></button>
<!-- Include Zoomable Map script-->
<script src="js/zoom-map.js"></script>
</div>
<!--Include Radial Tree script-->
<script src="js/radial-tree.js"></script>
<script src="js/set-data.js"></script>