diff options
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>'; |