33 lines
745 B
HTML
33 lines
745 B
HTML
|
|
<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>
|