aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2012-10-20 07:36:39 +0000
committerAdam Soltys <[email protected]>2012-10-20 07:36:39 +0000
commitb1e7d176518d8e0c842e80b10ac227c0ae72cc8b (patch)
treedbe697c02ceb8bae0531b30ca34c4a2d4f3144ec
parentc05abbd72522d67084f6055bfe417a40c9ea1f6e (diff)
downloadcoinos-server-b1e7d176518d8e0c842e80b10ac227c0ae72cc8b.tar.gz
coinos-server-b1e7d176518d8e0c842e80b10ac227c0ae72cc8b.zip
UI tweaks for mobile
-rw-r--r--css/bitcoin_pos.css5
-rw-r--r--index.html4
-rw-r--r--js/bitcoin_pos.js2
-rw-r--r--js/qr.js4
4 files changed, 9 insertions, 6 deletions
diff --git a/css/bitcoin_pos.css b/css/bitcoin_pos.css
index 2702b9aa..2346ea18 100644
--- a/css/bitcoin_pos.css
+++ b/css/bitcoin_pos.css
@@ -1,8 +1,9 @@
body { text-align: center; }
-input[type="number"] { height: 30px; }
-body, input[type="number"] { font-size: 24px; line-height: 24px; }
+body, input[type="text"], input[type="number"] { font-size: 24px; height: 30px; line-height: 24px; }
small, label { font-size: 24px; color: #999; line-height: 24px; }
strong#total { font-size: 30px; }
+input[type="submit"] { display: none; }
+canvas { margin-left: 90px; }
div.container-fluid {
width: 600px;
diff --git a/index.html b/index.html
index 04a77827..1eb2423e 100644
--- a/index.html
+++ b/index.html
@@ -21,9 +21,11 @@
<small>CAD / BTC</small>
<label for="owing">Amount:</label>
- <input type="number" id="owing" value="0" />
+ <input type="text" id="owing" value="0" />
<small>CAD</small>
+ <input type="submit" />
+
<br /><br />
<p>Please send <strong id="total">0.0</strong> bitcoins to:</p><br />
diff --git a/js/bitcoin_pos.js b/js/bitcoin_pos.js
index f9685924..0ecc9264 100644
--- a/js/bitcoin_pos.js
+++ b/js/bitcoin_pos.js
@@ -68,7 +68,7 @@ $(function() {
doqr('bitcoin:' + address + '?amount=' + total.toString());
}
- $('input').focus(function() { $(this).val(''); });
+ $('input').click(function() { $(this).val(''); });
});
function getParameterByName(name) {
diff --git a/js/qr.js b/js/qr.js
index c978215e..6933e8ae 100644
--- a/js/qr.js
+++ b/js/qr.js
@@ -703,8 +703,8 @@ function genframe(instring)
var wd, ht, qrc;
function setupqr(){
- wd = 350;
- ht = 350;
+ wd = 300;
+ ht = 300;
mp = document.getElementById("mapcanv");
var elem = document.getElementById('qrcanv');