Initial commit.
This commit is contained in:
32
cameragrid.html
Normal file
32
cameragrid.html
Normal 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>
|
||||
Reference in New Issue
Block a user