1
0
Fork 0
playafri.ca/index.html

39 lines
1,019 B
HTML
Raw Normal View History

2014-08-29 11:28:58 -04:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
2014-08-29 11:33:10 -04:00
<title>PLAY AFRICA</title>
2014-08-29 11:28:58 -04:00
<!--[if IE]>
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link rel="stylesheet" href="assets/css/style.css" type="text/css" />
<script src="assets/js/SeamlessLoop.js"></script>
</head>
2014-08-29 11:43:15 -04:00
<body onloadi> https://github.com/maroslaw/rainyday.js/blob/master/demo2.html
<img id="background" src="" />
2014-08-29 11:28:58 -04:00
<script>
var loop = new SeamlessLoop();
loop.addUri('assets/audio/africa.mp3', 5251, 'africa');
loop.callback(function() {
loop.start('africa');
});
</script>
2014-08-29 11:43:15 -04:00
<script>
function run() {
var image = document.getElementById('background');
image.onload = function() {
var engine = new RainyDay({
image: this
});
engine.rain([ [3, 2, 2] ], 100);
};
image.src = 'assets/img/africa.png';
}
</script>
2014-08-29 11:28:58 -04:00
</body>
</html>