From 81b30afabd1736e3dec4bb05c377b2d28317c2fe Mon Sep 17 00:00:00 2001 From: Adam Soltys Date: Sun, 11 Nov 2012 21:57:11 -0800 Subject: Save calculator params to database --- public/css/calculator.less | 3 ++- public/css/common.less | 2 +- public/img/bitcoin.png | Bin 0 -> 17755 bytes public/js/calculator.coffee | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) create mode 100644 public/img/bitcoin.png (limited to 'public') diff --git a/public/css/calculator.less b/public/css/calculator.less index 8103ed5e..bdacbd0c 100644 --- a/public/css/calculator.less +++ b/public/css/calculator.less @@ -6,5 +6,6 @@ input[type="text"] { height: 1.4em; } span.btn { font-size: 1.4em; width: 80%; } small, label { color: #999; font-size: 1.2em; } strong#total { font-size: 2em; } -#logo { padding: 10px 0; } +#title { display: none; } +#logo { display: none; padding: 10px 0; } #error { margin-top: 10px; } diff --git a/public/css/common.less b/public/css/common.less index fb105aec..05af2492 100644 --- a/public/css/common.less +++ b/public/css/common.less @@ -3,7 +3,7 @@ body { text-align: center; } body { font-size: 100%; line-height: 100%; } -h1 { width: 100%; text-align: center; } +h1 { width: 100%; } div.container-fluid { width: 600px; diff --git a/public/img/bitcoin.png b/public/img/bitcoin.png new file mode 100644 index 00000000..148d0c0b Binary files /dev/null and b/public/img/bitcoin.png differ diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee index ed199920..08757249 100644 --- a/public/js/calculator.coffee +++ b/public/js/calculator.coffee @@ -21,7 +21,7 @@ $(-> if client? and client $.getJSON('client/' + client, (data) -> user = data[0] - g.title = user.title + g.title = user.name g.address = user.address g.commission = user.commission g.logo = user.logo @@ -81,7 +81,7 @@ setupPage = -> if logo $('#logo').attr('src', logo).show() else - $('#title').html(title) + $('#title').html(title).show() $('#address').html(address) $('#received').hide() -- cgit v1.2.3