Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

get totals from server

  • Loading branch information...
commit 80088cded7ebe25ed8716c52db20a79513b1309d 1 parent 4da12b1
@uberscientist authored
Showing with 10 additions and 5 deletions.
  1. +5 −4 public/index.html
  2. +5 −1 public/js/donate.js
View
9 public/index.html
@@ -104,10 +104,10 @@ <h3 id="backers-count">1</h3>
<h3>&#0321;<span id="total-ltc">0.0</span></h3>
</div>
- <!-- Bootstrap progress bar -->
+ <!-- Bootstrap progress bar
<div class="progress">
<div class="progress-bar progress-bar-success" style="width: 10%"></div>
- </div>
+ </div> -->
<div class="order">
<!-- Standard Bootstrap button. -->
@@ -201,15 +201,16 @@ <h4 class="modal-title">Donate</h4>
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
+ <h4 class="modal-title">Backers</h4>
</div>
<div class="modal-body">
<div id="#btc-donators" class="col-lg-6">
- <h3>Bitcoin donations:</h3>
+ <h5>Bitcoin donations:</h5>
</div>
<div id="#ltc-donators"class="col-lg-6">
- <h3>Litecoin donations:</h3>
+ <h5>Litecoin donations:</h5>
</div>
<div class="clearfix"></div>
View
6 public/js/donate.js
@@ -31,7 +31,11 @@ $.ready = function() {
}
var getTotals = function() {
-
+ $.get('/donate-api/totals', function(totals) {
+ console.log(totals);
+ $('#total-btc').html(totals[0]);
+ $('#total-ltc').html(totals[1]);
+ }
}
// Donation request
Please sign in to comment.
Something went wrong with that request. Please try again.