-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
98 lines (88 loc) · 3.59 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
<!DOCTYPE html>
<html>
<head>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-HZ4NP1483P"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-HZ4NP1483P');
</script>
<title>Unforgotten Lives: Interactive Map</title>
<meta charset="utf-8" />
<meta http-equiv="refresh" content="300">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link type="text/css" rel="stylesheet" href="style.css">
<script src=
"https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js">
</script>
<script>
// When the user scrolls the page, execute myFunction
window.onscroll = function() {myFunction()};
// Get the header
var header = document.getElementById("myHeader");
// Get the offset position of the navbar
var sticky = header.offsetTop;
// Add the sticky class to the header when you reach its scroll position. Remove "sticky" when you leave the scroll position
function myFunction() {
if (window.pageYOffset > sticky) {
header.classList.add("sticky");
} else {
header.classList.remove("sticky");
}
}
// Prevents window from moving on touch on older browsers.
window.addEventListener('touchmove', function (event) {
event.preventDefault()
}, false)
// Allows content to move on touch.
document.querySelector('.body-container').addEventListener('touchmove', function (event) {
event.stopPropagation()
}, false)
</script>
</head>
<header>
<div class='header_container'>
<div class="header" id="myHeader">
<h1> Unforgotten Lives: Interactive Map </h1>
</header>
<body>
<!-- <div id="mySidepanel" class="sidepanel">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
<p>Choose the time range on the slide at the bottom of the map<p>
<p>You can zoom in and out with the help of the + and - icons in the top left coner of the map.<p>
<p> You can reset the map by clicking on the house icon in the top left corner of the map<p>
<p>You can discover information about individuals and points of interest by clicking on the orange dots.<p>
</div>
<button class="openbtn" onclick="openNav()">☰ How to use this map?</button>
<div id="mySidepanel2" class="sidepanel2">
<a href="javascript:void(0)" class="closebtn" onclick="closeNav2()">×</a>
<p>Information to be displayed<p>
</div>
<button class="openbtn" onclick="openNav2()">☰ What should I know about this map?</button>
<script>
function openNav() {
document.getElementById("mySidepanel").style.width = "250px";
}
function closeNav() {
document.getElementById("mySidepanel").style.width = "0";
}
function openNav2() {
document.getElementById("mySidepanel2").style.width = "250px";
}
function closeNav2() {
document.getElementById("mySidepanel2").style.width = "0";
}
</script> -->
<div id="map" align="center"><iframe src="https://nu.maps.arcgis.com/apps/instant/basic/index.html?appid=a0d9c583bb48449fa5e8eff03ff00d8f&locale=en" width="90%" height="700px" frameborder="0" style="border:0" allowfullscreen></iframe></div>
<div class="logos">
<img src="LMAlogo.png" alt="logo" />
<img src="MBLlogo.png" alt="logo" />
<img src="NUlogo.png" alt="logo" />
</div>
</body>
<footer>
<p>This website was designed and researched for the London Metropolitan Archives by the Mapping Black London project team at Northeastern University London (mappingblacklondon.org). The code is MIT license ©Dr Andrea Kocsis 2022. Content ©LMA.<p>
</footer>
</html>