1
0
Fork 0
playafri.ca/index.html
2014-08-29 11:43:15 -04:00

38 lines
1,019 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>PLAY AFRICA</title>
<!--[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>
<body onloadi> https://github.com/maroslaw/rainyday.js/blob/master/demo2.html
<img id="background" src="" />
<script>
var loop = new SeamlessLoop();
loop.addUri('assets/audio/africa.mp3', 5251, 'africa');
loop.callback(function() {
loop.start('africa');
});
</script>
<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>
</body>
</html>