aboutsummaryrefslogtreecommitdiffstats
path: root/public/js
diff options
context:
space:
mode:
authorAdam Soltys <[email protected]>2014-07-20 11:37:37 -0700
committerAdam Soltys <[email protected]>2014-07-21 14:14:47 -0700
commitab1432886eb9e46c8a19acd67bb8c8e6fe4754c1 (patch)
tree6dab7caa3c3accc980b879b825a3840e4ccbe49e /public/js
parent51daca704f27e59462c6d8b1731867007c8fd273 (diff)
downloadcoinos-server-ab1432886eb9e46c8a19acd67bb8c8e6fe4754c1.tar.gz
coinos-server-ab1432886eb9e46c8a19acd67bb8c8e6fe4754c1.zip
Update styles
Diffstat (limited to 'public/js')
-rw-r--r--public/js/calculator.coffee2
-rw-r--r--public/js/calculator.js2
-rw-r--r--public/js/signin.coffee6
-rw-r--r--public/js/signin.js9
4 files changed, 17 insertions, 2 deletions
diff --git a/public/js/calculator.coffee b/public/js/calculator.coffee
index 039ffd73..0ccea5ce 100644
--- a/public/js/calculator.coffee
+++ b/public/js/calculator.coffee
@@ -80,7 +80,7 @@ setup = ->
$('#logo').click -> $(location).attr("href","/#{g.user}/edit")
address = g.address
if g.user? and g.user
- address = "<a href='http://blockchain.info/address/#{address}'>#{address}</a>"
+ address = "#{address} <a href='http://blockchain.info/address/#{address}' target='_blank'><img src='/img/blockchain.png' /></a>"
if check_address(g.address)
$('#address').html(address)
diff --git a/public/js/calculator.js b/public/js/calculator.js
index 88fcbd22..d552b895 100644
--- a/public/js/calculator.js
+++ b/public/js/calculator.js
@@ -78,7 +78,7 @@
});
address = g.address;
if ((g.user != null) && g.user) {
- address = "<a href='http://blockchain.info/address/" + address + "'>" + address + "</a>";
+ address = "" + address + " <a href='http://blockchain.info/address/" + address + "' target='_blank'><img src='/img/blockchain.png' /></a>";
}
if (check_address(g.address)) {
$('#address').html(address);
diff --git a/public/js/signin.coffee b/public/js/signin.coffee
new file mode 100644
index 00000000..df7dbb39
--- /dev/null
+++ b/public/js/signin.coffee
@@ -0,0 +1,6 @@
+$(->
+ $('#register').click(->
+ window.location.href = '/register'
+ $(this).preventDefault()
+ )
+)
diff --git a/public/js/signin.js b/public/js/signin.js
new file mode 100644
index 00000000..3383de15
--- /dev/null
+++ b/public/js/signin.js
@@ -0,0 +1,9 @@
+(function() {
+ $(function() {
+ return $('#register').click(function() {
+ window.location.href = '/register';
+ return $(this).preventDefault();
+ });
+ });
+
+}).call(this);