Skip to content

Instantly share code, notes, and snippets.

@nimzco
Created November 18, 2011 08:47
Show Gist options
  • Save nimzco/1375936 to your computer and use it in GitHub Desktop.
Save nimzco/1375936 to your computer and use it in GitHub Desktop.
<body>
<div id='canvas'></div>
<script type='text/javascript'>
var paper = Raphael("canvas", 0, 0);
window.musiTouch = {};
window.musiTouch.menu = new Menu(['Libre', 'Facile', 'Moyen', 'Difficile', 'Instructions'], paper);
</script>
<div id="audio_wrapper">
</div>
</audio>
</body>
var Menu = new Class({
Implements: [Options, Events],
options: {
...
},
initialize: function(menuNames, paper, options){
this.setOptions(options);
...
},
draw: function() {
...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment