Initial commit.

This commit is contained in:
Ian Gulliver
2014-04-22 14:30:20 -07:00
parent a1e6b0273c
commit 5a3f25ccfe
2 changed files with 444 additions and 0 deletions

32
cameragrid.html Normal file
View File

@@ -0,0 +1,32 @@
<html>
<head>
<meta charset="utf-8"/>
<style>
#container {
background-color: black;
color: white;
position: fixed;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
</style>
<script src="cameragrid.js"></script>
</head>
<body>
<div id="container"></div>
<script>
window.onhashchange = function() {
window.location.reload();
}
var container = document.getElementById('container');
var urls = window.location.hash.slice(1).split(',');
if (urls.length == 1 && urls[0] == '') {
container.innerHTML = 'Please pass a comma-separated list of URLs, like: ' + window.location + '#http://url1/,http://url2/';
} else {
var gridMeHarder = new cameraGrid.CameraGrid(container, urls);
}
</script>
</body>
</html>