-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
66 lines (42 loc) · 2.45 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="description" content="Play an electronic piano keyboard"/>
<title>Online Piano/Keyboard</title>
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-140400287-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-140400287-1');
</script>
<style>
body { font-family: Georgia; text-align: center;}
.banner {width: 1200px; height: 340px; object-fit: cover; object-position: 0px -90px;}
.title { color: #F50890; font-size: 40px; text-shadow: 0px -1px 5px #F5F408;}
.content {background-color: #FAD7A0; margin: 20px; padding: 30px; border-style: double; border-width: 5px; font-size: 18px; text-align: left; width: 1200px; display: inline-block; }
.key { position: absolute; font-family: Helvetica; font-weight: 100; font-size: 12px;
border: 1px solid rgba(32,32,32,0.2);
border-radius: 0px 0px 5px 5px;
cursor:pointer;
box-shadow: 0px 5px 1px rgba(32,32,32,0.2);
-webkit-transition: margin 0.05s ease, background-color 0.05s ease, box-shadow 0.05s ease; }
.key:hover { background-color: #71DB90; }
.key .label { position: absolute; bottom: 15px; text-align: center; left: 0px; right: 0px; }
.keyLabel {font-weight: 900; text-shadow: 0px -1px 5px #EBF508; font-size: 15px;}
.black { background-color: rgb(32,32,32); color: #ffffff; z-index: 1; text-shadow: 0px -1px 1px #FF0000; }
.white { background-color: #F2F2DE; color: #3008F5; z-index: 0; text-shadow: 0px 1px 1px #08E8F5; }
.keyboard-holder { margin: 30px auto; height: 200px; position:relative; user-select:none; -webkit-user-select:none;-moz-user-select:none;-o-user-select:none; }
/*.playing {background-color: #1BC0EA;}*/
</style>
<script src="audiosynth.js"></script>
<script src="playKeyboard.js"></script>
</head>
<body>
<script type="text/javascript" src="//downloads.mailchimp.com/js/signup-forms/popup/unique-methods/embed.js" data-dojo-config="usePlainJson: true, isDebug: false"></script>
<script type="text/javascript">window.dojoRequire(["mojo/signup-forms/Loader"], function(L) { L.start({"baseUrl":"mc.us20.list-manage.com","uuid":"dbcd725d81fa004cc7aa6230a","lid":"673d85a600","uniqueMethods":true}) })</script>
<div ID="keyboard" class="keyboard-holder"></div> <!--calls js to create keyboard with id-->
<script type="text/javascript">playKeyboard()</script>
</body>
</html>