summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorFlorian <stayawake@lavabit.com>2014-02-14 19:24:13 +0100
committerFlorian <stayawake@lavabit.com>2014-02-14 19:24:13 +0100
commit4c64de261cf9e70e6bd32e6e6072f8e82c528336 (patch)
treebdfc8c46a07d8670a60983b010223c553381aba3 /js
parentaeb4bf1e41ffa382dfe707951b4cfcf0e299b3aa (diff)
cleanup.
Diffstat (limited to 'js')
-rw-r--r--js/load-local-storage.js41
1 files changed, 0 insertions, 41 deletions
diff --git a/js/load-local-storage.js b/js/load-local-storage.js
deleted file mode 100644
index 7306a58..0000000
--- a/js/load-local-storage.js
+++ /dev/null
@@ -1,41 +0,0 @@
-// CCTV Control
-//
-// Author: Florian Raemisch
-// Email: olf@subsignal.org
-//
-// cctv-control is a webinterface to control and view
-// mjpeg encoded videos by cctv cameras which are
-// proxied by mjpegplexer. camera control is possible
-// with arrow-keys, if mjpegplexer is configured
-// properly.
-//
-// This Software is licensed under the GPL Version 3, 29 June 2007
-
-
-window.onDomReady = initReady;
-
-
-window.onDomReady(loadImg);
-
-
-function initReady(fn) {
- if(document.addEventListener) {
- document.addEventListener("DOMContentLoaded", fn, false);
- }
-}
-
-
-function loadImg() {
-
- var display = document.getElementById("storImage"),
- body = document.getElementById("formBackground"),
- stor = localStorage.getItem("snapShot");
-
- if (stor) {
- display.setAttribute("src", stor);
- document.body.style.background="#f3f3f3 url('"+ stor + "') no-repeat";
- display.setAttribute("src", stor);
- }
-
-
-}