-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
84 lines (74 loc) · 3.99 KB
/
index.html
File metadata and controls
84 lines (74 loc) · 3.99 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, shrink-to-fit=no">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<link rel="stylesheet" href="./static/styles.css">
<script src="https://cdn.plot.ly/plotly-latest.min.js"></script>
<title>World Happiness 2023</title>
<!-- Leaflet JavaScript code-->
<script src="https://unpkg.com/leaflet@1.3.3/dist/leaflet.js"
integrity="sha512-tAGcCfR4Sc5ZP5ZoVz0quoZDYX5aCtEm/eu1KhSLj2c9eFrylXZknQYmxUssFaVJKvvc0dJQixhGjG2yXWiV9Q=="
crossorigin=""></script>
<!-- D3 library -->
<script src="https://d3js.org/d3.v5.min.js"></script>
<!-- Leaflet CSS -->
<link rel="stylesheet" href="https://unpkg.com/leaflet@1.3.3/dist/leaflet.css"
integrity="sha512-Rksm5RenBEKSKFjgI3a41vrjkw4EVPlJ3+OiI65vTjIdo9brlAacEuKOiQ5OFh7cOI1bkDwLqdLw3Zg0cRJAAQ=="
crossorigin=""/>
<!-- leaflet-choropleth JavaScript -->
<script type="text/javascript" src="static/choropleth.js"></script>
</head>
<body>
<!--Giant header-->
<div class="jumbotron jumbotron-fluid text-center">
<div class="container">
<h1 class="display-4">World Happiness Index 2023</h1>
<p class="lead">A Visual Exploration of Happiness Around the World 🌎</p>
</div>
</div>
<!--So far unused dropdowns for selections-->
<div class="row">
<div class="col-md-2">
<div class="well">
<h5>World Analysis</h5>
<!-- <select id="selDataset" onchange="optionChanged(this.value)"></select> -->
<select onChange="window.location.href=this.value">
<option value="http://127.0.0.1:5500/project-happiness/index.html">Choose</option>
<option value="http://127.0.0.1:5500/project-happiness/sunburst.html">Sunburst Map</option>
<option value="http://127.0.0.1:5500/project-happiness/choropleth.html">Choropleth Map</option>
</select>
</div>
<!-- <div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Demographic Info</h3>
</div>
<div id="sample-metadata" class="panel-body"></div>
</div> -->
</div>
<!-- <a href="sunburst.html">Interactive sunburst plot</a> -->
<!--Plots for top 10 and bottom 10-->
<div class="container"></div>
<div class="plot" id="plot_good"></div>
<div class="plot" id="plot_bad"></div>
<div class="plot" id="plot_scatter_gdp"></div>
<div class="plot" id="plot_scatter_generosity"></div>
<div class="plot" id="plot_scatter_freedom"></div>
<div class="plot" id="plot_scatter_healthy"></div>
<div class="plot" id="plot_scatter_corruption"></div>
<div class="plot" id="plot_scatter_support"></div>
<div id="map"></div>
</div>
<!-- Jquery first, then popper.js, then Bootstrap JS, then D3, then Plotly-->
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.12.9/dist/umd/popper.min.js" integrity="sha384-ApNbgh9B+Y1QKtv3Rn7W3mgPxhU9K/ScQsAP7hUibX39j7fakFPskvXusvfa0b4Q" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.0.0/dist/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script src="./static/app_scatter.js"></script>
</body>
</html>