35 lines
972 B
HTML
35 lines
972 B
HTML
|
<!DOCTYPE html>
|
||
|
<html lang="en">
|
||
|
<head>
|
||
|
<meta charset="UTF-8">
|
||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||
|
<title>Ireland 2024</title>
|
||
|
<style>
|
||
|
html, body {
|
||
|
margin: 0;
|
||
|
padding: 0;
|
||
|
}
|
||
|
|
||
|
#mapdiv {
|
||
|
width: 100vw;
|
||
|
height: 100vh;
|
||
|
}
|
||
|
</style>
|
||
|
<!-- TODO -->
|
||
|
<link rel="stylesheet" href="https://cdn.knightlab.com/libs/storymapjs/latest/css/storymap.css">
|
||
|
<script type="text/javascript" src="https://cdn.knightlab.com/libs/storymapjs/latest/js/storymap-min.js"></script>
|
||
|
|
||
|
</head>
|
||
|
<body>
|
||
|
<div id="mapdiv"></div>
|
||
|
<!-- <script type="text/javascript" src="storymap-min.js"></script> -->
|
||
|
<script>
|
||
|
const storymap_options = {};
|
||
|
const storymap = new KLStoryMap.StoryMap('mapdiv', 'data.json', storymap_options);
|
||
|
window.onresize = function(event) {
|
||
|
storymap.updateDisplay(); // this isn't automatic
|
||
|
}
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|