-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
119 lines (116 loc) · 2.6 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<style>
html, body, #map-canvas {
margin: 0;
padding: 0;
height: 100%;
}
#legend{
background:white;
margin:5px;
padding:5px;
padding-right:35px;
opacity:.8;
}
#legend-title {
text-align: left;
margin-bottom: 8px;
font-weight: bold;
font-size: 90%;
}
.legend-scale ul {
opacity:.7;
margin: 0;
padding: 0;
float: left;
list-style: none;
}
.legend-scale ul li {
display: block;
float: left;
width: 30px;
text-align: center;
font-size: 80%;
list-style: none;
}
ul.legend-labels li span {
display: block;
float: left;
height: 15px;
width: 50px;
}
.left {
float:left;
}
.right {
float:right;
}
select {
font-size:1.2em;
}
#status {
padding:5px;
margin:5px;
}
#status{
font-size:1.3em;
background: white;
opacity: .8;
}
#selection {
margin: 5px;
font-size: 1.2em;
background: white;
opacity: .8;
overflow: scroll;
height: 100%;
}
#professions {
list-style: none;
margin-left: -20px;
}
.selected {
font-weight: bold;
}
#f, #m {
font-size: 1.4em;
}
#f {
color: red;
}
#m {
color: blue;
}
</style>
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script src="//maps.googleapis.com/maps/api/js?sensor=false&libraries=visualization"></script>
<script src="colorutils.js"></script>
<script src="freebase.js"></script>
</head>
<body>
<div id="container">
<div id="selection">
<ul id="professions"></ul>
</div>
<div id="status"></div>
</div>
<div id="map-canvas"></div>
<div id="layer-toggle">
<select id="layer-toggle-select" onchange="pmap.toggleLayerDisplay(this.value)">
<option value=countries>Countries</option>
<option value=locations>Locations</option>
</select>
</div>
<div id='legend'>
<div id='legend-title'>Gender distrubution in Freebase</div>
<div class='legend-scale'>
<ul class='legend-labels'>
</ul>
</div>
<span class="left">Females</span>
<span class="right">Males</span>
</div>
</body>
</html>