-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
96 lines (81 loc) · 4.86 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="description" content="Earthquake Music">
<meta name="keywords" content="Music, data sonification, climate change">
<title>Earthquake music</title>
<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png">
<link rel="manifest" href="/site.webmanifest">
<!-- font awesome -->
<script src="https://kit.fontawesome.com/99490b5402.js" crossorigin="anonymous"></script>
<!-- Leaflet CSS -->
<link rel="stylesheet" href="https://unpkg.com/[email protected]/dist/leaflet.css"
integrity="sha512-hoalWLoI8r4UszCkZ5kL8vayOGVae1oxXe/2A4AO6J9+580uKHDO3JdHb7NzwwzK5xr/Fs0W40kiNHxM9vyTtQ=="
crossorigin=""/>
<!-- external CSS link https://github.com/kevquirk/simple.css -->
<!-- Minified version -->
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.min.css">
<!-- Un-Minified version -->
<link rel="stylesheet" href="https://cdn.simplecss.org/simple.css">
<!-- my stylesheet -->
<link rel="stylesheet" href="css/style.css">
<!-- open graph tags -->
<meta property="og:site_name" content="Earthquake Music" />
<meta property=“og:title” content="Earthquake Music: one day of earthquakes as a one minute song" />
<meta property="og:description" content="One day of earthquakes as a one minute song: Earthquake Music pulls data from USGS for the last day of earthquakes and creates a song according to composer Devin Lane's instructions" />
<meta property="og:url" content="https://earthquakemusic.netlify.app/" />
<meta property="og:type" content="website" />
<meta property="article:publisher" content="https://www.devinlane.com" />
<meta property="article:section" content="Creative code" />
<meta property="article:tag" content="Creative code" />
<meta property="og:image" content="https://earthquakemusic.netlify.app/img/logo.png" />
<meta property="og:image:secure_url" content="https://earthquakemusic.netlify.app/img/logo.png" />
<meta property="og:image:width" content="512" />
<meta property="og:image:height" content="512" />
<meta property="twitter:card" content="summary_large_image" />
<meta property="twitter:image" content="https://earthquakemusic.netlify.app/img/logo.png" />
<meta property="twitter:site" content="@DevinCLane" />
<meta name="twitter:description" content="One day of earthquakes as a one minute song" />
<meta name="twitter:title" content="Earthquake Music" />
<!-- import tone.js -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/tone/14.8.39/Tone.js" integrity="sha512-Zu1QIDG6ZacL9zSX9Ynyvdp45DP/FDTX40ci1RakZ6qvonbA+foQleFvqwa2lnsCE01P5QyXkj662EAwDFhrTw==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
<main>
<h1>Earthquake music</h1>
<!-- Logo -->
<section class="top-area"><img class="logo" src="/android-chrome-192x192.png" alt="world">
<div class="transport">
<button id="start" type="button" name="button" onclick="start()">Make music 🌎</button>
<button id="stop" type="button" name="button" onclick="stop()">Stop</button>
</div>
</section>
<!-- leaflet map -->
<div id="map"></div>
<!-- what is this? -->
<section class="what">
<h2>What is this?</h2>
<p>One day of earthquakes in one minute.</p>
<p>Earthquake Music pulls the last day of earthquakes in the US from the <a href="https://earthquake.usgs.gov/earthquakes/map/" target="_blank">U.S. Geological Survey</a>, compresses them to one minute, and plays their magnitude as musical frequency.</p>
<p>For example, a 1.83 magnitude earthquake would have a pitch of 197hz.</p>
</section>
<!-- share -->
<section class="share">
<a href="https://twitter.com/share?ref_src=twsrc%5Etfw" class="twitter-share-button" data-text="Check out this song based on earthquake data!" data-url="https://earthquakemusic.netlify.app/" data-via="DevinCLane" data-show-count="false">Share on Twitter <i class="fa-brands fa-twitter"></i></a><script async src="https://platform.twitter.com/widgets.js" charset="utf-8"></script>
</section>
</main>
<footer>
Made with care and attention by <a href="https://www.devinlane.com/" target="_blank">Devin Lane</a>
<p><a href="https://github.com/DevinCLane/earthquake-music" target="_blank">View source code <i class="fa-brands fa-github"></i></a></p>
</footer>
<!-- leaflet JS -->
<script src="https://unpkg.com/[email protected]/dist/leaflet.js"
integrity="sha512-BB3hKbKWOc9Ez/TAwyWxNXeoV9c1v6FIeYiBieIWkpLjauysF18NzgR1MBNBXf8/KABdlkX68nAhlwcDFLGPCQ=="
crossorigin=""></script>
<script type="text/javascript" src="js/main.js"></script>
</body>
</html>