-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathwho.html
57 lines (52 loc) · 2.33 KB
/
who.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
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB"
crossorigin="anonymous">
<script src="bower_components/jquery/dist/jquery.min.js"></script>
<script src="bower_components/jqcloud2/dist/jqcloud.min.js"></script>
<link rel="stylesheet" href="bower_components/jqcloud2/dist/jqcloud.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm"
crossorigin="anonymous">
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js"></script>
<link rel="stylesheet" href="./cssWho.css">
<nav class="navbar navbar-expand-lg navbar-light bg-light">
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNavAltMarkup" aria-controls="navbarNavAltMarkup"
aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarNavAltMarkup">
<div class="navbar-nav">
<a class="nav-item nav-link active" href="./home.html">Home
<span class="sr-only">(current)</span>
</a>
<a class="nav-item nav-link" href="./wordmap.html">Locations</a>
<a class="nav-item nav-link" href="./timelinev2.html">Timeline</a>
<a class="nav-item nav-link" href="./who.html">Names</a>
</div>
</div>
</nav>
<div class="container">
<div id="demo" style="width: 700px; height: 550px; position: relative;"></div>
</div>
<script>
var words = [
{text: "Atmos", weight: 85},
{text: "J.Geophys", weight: 77},
{text: "OECD", weight: 70},
{text: "Grossman", weight: 56},
{text: "EPA", weight: 54},
{text: "PBL", weight: 49},
{text: "Krueger", weight: 45},
{text: "Stern", weight: 43},
{text: "Selden", weight: 42},
{text: "Taylor", weight: 41},
/* ... */
];
$("#demo").jQCloud(words);
setTimeout(function () {
var obj = $("#demo").data("jqcloud");
var data = obj.word_array;
for (var i in data) {
$("#" + data[i]["attr"]["id"]).css("color", data[i]["color"]);
}
}, 100);
</script>