Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
49 lines (48 sloc) 938 Bytes
<!DOCTYPE html>
<html lang='en'>
<head>
<link rel="stylesheet" href="PictureCube.css" />
<script src="PictureCube.js"></script>
<script>
addEventListener('DOMContentLoaded', function() {
cube = new PictureCube('test',
[
{
src: 'img/izzie/1.jpg',
title: 'Izzie in the Snow!'
},
{
src: 'img/izzie/2.jpg',
title: 'Izzie in a Coat!'
},
{
src: 'img/izzie/3.jpg',
title: 'Izzie eats a Bone!'
},
{
src: 'img/izzie/4.jpg',
title: 'Izzie on the Porch!'
},
{
src: 'img/izzie/5.jpg',
title: 'Izzie on the Couch!'
},
{
src: 'img/izzie/6.jpg',
title: 'Izzie in a Helmet!'
}
],
{
onchange: function() {
console.log(arguments);
}
}
);
cube.cycle(2000);
});
</script>
</head>
<body>
<div id="test"></div>
</body>
</html>
Something went wrong with that request. Please try again.