From 846058a2ab37b22d94f01746cf03fdf85a4c1495 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 25 Feb 2015 12:45:01 -0500 Subject: Touch up the photo input --- www/css/index.scss | 11 +++++++---- www/js/report.js | 5 ++--- www/report.html | 1 + 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/www/css/index.scss b/www/css/index.scss index ccacc30..93e321a 100644 --- a/www/css/index.scss +++ b/www/css/index.scss @@ -130,10 +130,13 @@ body#report { #camera-ui { border: solid 1px $yellow; text-align: center; - button { - display: block; - margin-left: auto; - margin-right: auto; + padding: 0.5em; + min-height: 5em; + a { + border: solid 1px $yellow; + border-radius: 3px; + padding: 0.5em; + display: inline-block; } img { display: block; diff --git a/www/js/report.js b/www/js/report.js index 661d63f..a825c21 100644 --- a/www/js/report.js +++ b/www/js/report.js @@ -2,7 +2,7 @@ document.addEventListener("deviceready", onDeviceReady, false); function onDeviceReady() { var ui = document.getElementById("camera-ui"); if (navigator.camera) { - ui.innerHTML = "" + ui.innerHTML = "Add Photo" } else { ui.innerHTML = "Camera not supported on your device"; } @@ -26,7 +26,7 @@ function takePhoto(firstrun) { function(imgData) { if (firstrun) { var ui = document.getElementById("camera-ui"); - ui.innerHTML = "" + ui.innerHTML = "Change Photo" } var input = document.getElementById("photo"); var img = document.getElementById("thumbnail"); @@ -37,5 +37,4 @@ function takePhoto(firstrun) { alert("Error taking picture", "Error"); }, options); - return false; } diff --git a/www/report.html b/www/report.html index 7a853f6..a5612cd 100644 --- a/www/report.html +++ b/www/report.html @@ -30,6 +30,7 @@ +
Loading Camera...
-- cgit v1.2.3-54-g00ecf