Last active
December 17, 2015 05:29
-
-
Save breck7/5558662 to your computer and use it in GitHub Desktop.
Piano demo in NudgePad.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iosViewport | |
content <meta name="viewport" content="initial-scale = 1.0,maximum-scale = 1.0" /> | |
title | |
tag title | |
content Coming Soon | |
stylesheet | |
tag link | |
rel stylesheet | |
href site.css | |
dancerCode | |
tag script | |
content | |
window.piano = { | |
a : new Audio('http://dance.nudgepad.com/a.mp3'), | |
b : new Audio('http://dance.nudgepad.com/b.mp3'), | |
c : new Audio('http://dance.nudgepad.com/c.mp3'), | |
d : new Audio('http://dance.nudgepad.com/d.mp3'), | |
e : new Audio('http://dance.nudgepad.com/e.mp3'), | |
f : new Audio('http://dance.nudgepad.com/f.mp3'), | |
g : new Audio('http://dance.nudgepad.com/g.mp3') | |
} | |
block1 | |
style | |
background-color #fff | |
height 354px | |
width 65px | |
position absolute | |
font-size 15px | |
font-family Open Sans | |
color #333 | |
top 0px | |
left 0px | |
border 1px solid rgb(51, 51, 51) | |
onmousedown piano.a.play() | |
block15 | |
style | |
background-color #fff | |
height 354px | |
width 65px | |
position absolute | |
font-size 15px | |
font-family Open Sans | |
color #333 | |
top 0px | |
left 66px | |
border 1px solid rgb(51, 51, 51) | |
onmousedown piano.b.play() | |
block156 | |
style | |
background-color #fff | |
height 354px | |
width 65px | |
position absolute | |
font-size 15px | |
font-family Open Sans | |
color #333 | |
top 0px | |
left 132px | |
border 1px solid rgb(51, 51, 51) | |
onmousedown piano.c.play() | |
block1567 | |
style | |
background-color #fff | |
height 354px | |
width 65px | |
position absolute | |
font-size 15px | |
font-family Open Sans | |
color #333 | |
top 0px | |
left 198px | |
border 1px solid rgb(51, 51, 51) | |
onmousedown piano.d.play() | |
block15678 | |
style | |
background-color #fff | |
height 354px | |
width 65px | |
position absolute | |
font-size 15px | |
font-family Open Sans | |
color #333 | |
top 0px | |
left 264px | |
border 1px solid rgb(51, 51, 51) | |
onmousedown piano.e.play() | |
block156789 | |
style | |
background-color #000 | |
height 189px | |
width 46px | |
position absolute | |
font-size 15px | |
font-family Open Sans | |
color #333 | |
top 0px | |
left 108px | |
border 1px solid rgb(51, 51, 51) | |
onmousedown piano.f.play() | |
block15678910 | |
style | |
background-color #000 | |
height 189px | |
width 50px | |
position absolute | |
font-size 15px | |
font-family Open Sans | |
color #333 | |
top 1px | |
left 172px | |
border 1px solid rgb(51, 51, 51) | |
onmousedown piano.g.play() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment