Skip to content

Commit

Permalink
get totals from server
Browse files Browse the repository at this point in the history
  • Loading branch information
uberscientist committed Aug 6, 2013
1 parent 4da12b1 commit 80088cd
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
9 changes: 5 additions & 4 deletions public/index.html
Expand Up @@ -104,10 +104,10 @@ <h3>&#3647;<span id="total-btc">0.5</span></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. -->
Expand Down Expand Up @@ -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>
Expand Down
6 changes: 5 additions & 1 deletion public/js/donate.js
Expand Up @@ -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
Expand Down

0 comments on commit 80088cd

Please sign in to comment.