-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.html
executable file
·108 lines (79 loc) · 3.38 KB
/
main.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
<!DOCTYPE html>
<html>
<head>
<!-- Character Encoding-->
<meta charset="utf-8">
<!-- IE compatability-->
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- Mobile Responsiveness to Viewport-->
<meta name="viewport" content="width=device-width,height=device-height, initial-scale=1">
<!-- Favicon-->
<link rel="shortcut icon" href="./Data/Pictures/favicon.png">
<!-- Style sheet-->
<link rel="stylesheet" href="style/styleMain.css">
<!-- Page Title-->
<title>EU Trade Analysis</title>
<!-- p5.js Library -->
<script src="lib/p5.min.js"></script>
<!-- jQuery -->
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" crossorigin="anonymous"></script>
<!-- Font Awesome Icons Styling-->
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.0.9/css/all.css" integrity="sha384-5SOiIsAziJl6AWe0HWRKTXlfcSHKmYV4RBF18PPJ173Kzn7jzMyFuTtk8JA7QQG1" crossorigin="anonymous">
<!-- Main Sketch File -->
<script src="sketch/sketchMain.js"></script>
<!-- Constructor Functions -->
<script src="class/tableData.js"></script>
<script src="class/tableInfo.js"></script>
<!-- Google Map API-->
<script src="class/maps.js"></script>
<!-- Initial styling of page-->
<style>
body {
padding: 0;
margin: 0;
}
</style>
</head>
<body>
<!-- Back to home button-->
<div id="home-button" class="nicebox2">
<a href="index.html" class="button"><i id="home-icon" class="fas fa-home"></i></a>
</div>
<!-- Data title, units, color scale and year drop down-->
<div id="controls" class="nicebox">
<div>
<span id="file-name"></span>
<select id="date-select"></select>
</div>
<span id="file-name2"></span>
<!-- The Modal -->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<span class="close">×</span>
</div>
</div>
<!-- https://www.w3schools.com/css/css_tooltip.asp-->
<div class="help-hover"><i class="fas fa-question-circle"></i>
<span class="help-hover-text">Hover over a country to see it's value and where it lies in relation to all other countries on the scale. <br><br> Scroll to zoom in and out of the map. <br><br> Click on a country to compare this year's data with all years and other countries.</span>
</div>
<!-- Min and max values of data-->
<div id="legend">
<div id="legendMin">min</div>
<div class="color-key"><span id="data-caret">◆</span></div>
<div id="legendMax">max</div>
</div>
</div>
<!-- Mouse hover over country and corresponding value-->
<div id="data-box" class="nicebox">
<label id="data-label" for="data-value"></label>
<span id="data-value"></span>
</div>
<!-- Data info box-->
<div id="info-button" class="nicebox2">
<a id="myBtn" class="button"><i id="info-icon" class="fas fa-info-circle"></i></a>
</div>
<!-- Google Map-->
<div id="map"></div>
</body>
</html>