diff options
| author | Adam Soltys <[email protected]> | 2012-11-26 23:22:53 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2012-11-26 23:22:53 -0800 |
| commit | 39a01809fc02cc7002b313b6b1658aae1e2d0a42 (patch) | |
| tree | 2f56999207d36473d26f19671f0499a38a33c476 /public/js/index.coffee | |
| parent | 13b836968691392102577df0ba89882ed1fab2d0 (diff) | |
| download | coinos-server-39a01809fc02cc7002b313b6b1658aae1e2d0a42.tar.gz coinos-server-39a01809fc02cc7002b313b6b1658aae1e2d0a42.zip | |
Static pages
Diffstat (limited to 'public/js/index.coffee')
| -rw-r--r-- | public/js/index.coffee | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/public/js/index.coffee b/public/js/index.coffee deleted file mode 100644 index d53a4e48..00000000 --- a/public/js/index.coffee +++ /dev/null @@ -1,29 +0,0 @@ -#= require jquery-1.8.2.min.js -#= require 2.5.3-crypto-sha256.js -#= require jsbn.js -#= require jsbn2.js -#= require check_address.js - -$(-> - symbols = ['mtgoxUSD', 'btceUSD', 'bitstampUSD', 'virwoxSLL', 'btcdeEUR', 'mtgoxEUR', 'btc24EUR', 'mtgoxAUD', 'cryptoxAUD', 'mtgoxGBP', 'btcnCNY', 'intrsngEUR', 'virtexCAD', 'mtgoxPLN', 'cbxUSD', 'bitcurexPLN', 'bitmarketEUR', 'bitfloorUSD', 'mrcdBRL', 'bcEUR'] - - $.each(symbols, (i, v) -> - $('#symbol').append("<option value='#{v}'>#{v}</option>") - ) - - $('#address').change(-> - if check_address($(this).val()) - $(this).css('color', 'black') - else - $(this).css('color', 'red') - ) - - if $('#login').val() != "" - $.getJSON('/' + $('#login').val() + '.json', (data) -> - $('#name').val(data.name) - $('#image').val(data.image) - $('#address').val(data.address) - $('#symbol option[value=' + data.symbol + ']').attr('selected', 'selected') - $('#commission').val(data.commission) - ) -) |
