diff options
author | Florian <stayawake@lavabit.com> | 2014-02-16 03:32:55 +0100 |
---|---|---|
committer | Florian <stayawake@lavabit.com> | 2014-02-16 03:32:55 +0100 |
commit | 86949f270123c8fdebfa834aaa739fc18e0dcc47 (patch) | |
tree | 67b06550092b24b8f5d8f68d26f07c6a64023291 /js | |
parent | be506d00471b655c30429d133053d594c48d71e3 (diff) |
display camera number on output
Diffstat (limited to 'js')
-rw-r--r-- | js/print.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/js/print.js b/js/print.js index 0d8304c..1dfa576 100644 --- a/js/print.js +++ b/js/print.js @@ -34,13 +34,18 @@ function initViewer() { formAnalysis1 = localStorage.getItem("formAnalysis1"), formAnalysis2 = localStorage.getItem("formAnalysis2"), formAnalysis3 = localStorage.getItem("formAnalysis3"), + camera = localStorage.getItem("cam"); stor = localStorage.getItem("snapShot"); + //cameraname is cameraID + 1 + camera = parseInt(camera) + 1; + //display loaded data if (stor) { display.setAttribute("src", stor); page.innerHTML += '<p>' + formName + '</p>'; page.innerHTML += '<p>' + formDate + '</p>'; + page.innerHTML += '<p>Kamera ' + camera + '</p>'; page.innerHTML += '<p>' + formAnalysis1 + '</p>'; page.innerHTML += '<p>' + formAnalysis2 + '</p>'; page.innerHTML += '<p>' + formAnalysis3 + '</p>'; |