forked from archanasris/dataviscourse-pr-languagesoftheworld
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
97 lines (81 loc) · 3.56 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Languages of the World</title>
<link rel="stylesheet" href="public/css/style.css"/>
<link href='http://fonts.googleapis.com/css?family=Cookie' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.3.1/css/all.css" integrity="sha384-mzrmE5qonljUremFsqc01SB46JvROS7bZs3IO2EmfFsd15uHvIt+Y8vEf7N7fWAU" crossorigin="anonymous">
<script src="https://d3js.org/d3.v5.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/topojson/1.6.19/topojson.js"></script>
<script src="https://d3js.org/d3-geo-projection.v2.js"></script>
<link href='http://fonts.googleapis.com/css?family=Cookie' rel='stylesheet' type='text/css'>
<!--<script src="d3-geomap/js/d3.geomap.min.js"></script>-->
<script src="public/js/script1.js" async></script>
<script src="public/js/bubbleChart.js" async></script>
<script src="public/js/map2.js" async></script>
<script src="public/js/barChart.js" async></script>
<script src="public/js/node_graph.js" async></script>
<script src="public/js/script.js" async></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3-tip/0.7.1/d3-tip.min.js"></script>
<script src="public/js/piechart.js" async></script>
</head>
<body>
<div>
<h2 id="title" style="text-align: center">Languages of the World</h2>
<h3 id="sub-title" style="text-align: center">Archanasri Subramanian & Krithika Iyer</h3>
<p id="sub-title" style="text-align: center">
<a href="Process Book.pdf">Process Book</a>
<a href="https://www.youtube.com/watch?v=lPqpLFI868s">Screencast</a>
<a href="about.html">About</a>
</p>
</div>
<div class="tab">
<button class="tablinks" onclick="openCity(event, 'Viz1')">Families of Languages</button>
<button class="tablinks" onclick="openCity(event, 'Viz2')">Number of Genders & Gender Based Systems</button>
</div>
<div id="map">
<svg width="1000" height="500" id="map-chart"></svg>
</div>
<hr>
<div id="Viz1" class="tabcontent">
<div class="bubble">
<h2>POPULAR FAMILES OF LANGUAGES</h2>
<p>These are the most popular families with more than 50 languages belongnig to them</p>
<svg width="600" height="500" id="bubble-chart" style="float:left"></svg>
</div>
<div class="bar">
<div id ="barText"></div>
<h2>NUMBER OF LANGUAGES SPOKEN IN COUNTRIES</h2>
<svg width="760" height="800" id="bar-chart"></svg>
</div>
</div>
<div id="Viz2" class="tabcontent">
<div id="tree">
<h2> GENDER BASED SYSTEM TREE </h2>
<p>Linguistic gender systems are frequently linked to biological sex. This is not the only possibility; alternatives occur, particularly in some of the larger gender systems. </p>
<svg width="600" height="800" style="float: left"></svg>
</div>
<div id ="piechart">
<h2> DISTRIBUTION OF NUMBER OF LANGUAGES </H2>
<svg width="500" height="500" style="float: left"></svg>
</div>
</div>
<script>
function openCity(evt, cityName) {
var i, tabcontent, tablinks;
tabcontent = document.getElementsByClassName("tabcontent");
for (i = 0; i < tabcontent.length; i++) {
tabcontent[i].style.display = "none";
}
tablinks = document.getElementsByClassName("tablinks");
for (i = 0; i < tablinks.length; i++) {
tablinks[i].className = tablinks[i].className.replace(" active", "");
}
document.getElementById(cityName).style.display = "block";
evt.currentTarget.className += " active";
}
</script>
</body>
</html>