-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathplayer.html
More file actions
67 lines (64 loc) · 2.13 KB
/
Copy pathplayer.html
File metadata and controls
67 lines (64 loc) · 2.13 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>AestheticBox Song Player</title>
<meta name="description" content="AestheticBox is an online tool for sketching and sharing instrumental melodies." />
<meta name="keywords" content="chiptune, instrumental, music, melody, composition, tool, square wave, NES, NSF, BeepBox" />
<meta name="theme-color" content="#444" />
<meta name="format-detection" content="telephone=no" />
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
<link href="https://fonts.googleapis.com/css?family=Quicksand" rel="stylesheet" rel="stylesheet" media="none" onload="if (this.media != 'all') this.media='all';" /> <!-- this is a trick to load CSS asynchronously. -->
<meta name="robots" content="noindex, nofollow" />
<style>
html {
width: 100vw;
font-family: 'Quicksand', sans-serif;
color: var(--primary-text, white);
align-items: center;
}
html, body {
height: 100%;
overflow: hidden;
display: flex;
margin: 0;
padding: 0;
background: var(--page-margin, black);
}
body {
width: 100vw;
flex-direction: column;
align-items: stretch;
}
</style>
</head>
<body>
<script type="text/javascript">
function browserHasRequiredFeatures() {
"use strict";
if (window.AudioContext == undefined && window.webkitAudioContext == undefined) {
return false;
}
try {
eval("class T {}");
eval("const a = () => 0");
eval("for (const a of []);");
} catch (error) {
return false;
}
return true;
}
if (browserHasRequiredFeatures()) {
// Go ahead and load js beepbox editor interface:
var fileref = document.createElement("script");
fileref.setAttribute("type", "text/javascript");
fileref.setAttribute("src", "beepbox_player.min.js");
document.head.appendChild(fileref);
} else {
document.body.innerHTML = "Sorry, BeepBox doesn't support your browser. Try a recent version of Chrome, Firefox, Edge, Safari, or Opera.";
}
</script>
</body>
</html>