Skip to content

Commit

Permalink
Add dollar signs to revenue
Browse files Browse the repository at this point in the history
  • Loading branch information
theodoretnguyen committed Mar 1, 2023
1 parent 9e2b175 commit 202faf2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,15 @@ document.getElementById('button_io').addEventListener('click',
);

// show revenues button
let rev_bg6 = 0;
let rev_io = 0;
document.getElementById('button_rev').addEventListener('click',
function() {
let rev_bg6 = tix_bg6 * 3 * red_token_price + tix_bg6 * 2 * blue_token_price;
document.getElementById('rev_bg6').innerHTML = `${rev_bg6}`;
rev_bg6 = tix_bg6 * 3 * red_token_price + tix_bg6 * 2 * blue_token_price;
document.getElementById('rev_bg6').innerHTML = `$${rev_bg6}`;

let rev_io = tix_io * 2 * red_token_price + tix_io * 3 * blue_token_price;
document.getElementById('rev_io').innerHTML = `${rev_io}`;
rev_io = tix_io * 2 * red_token_price + tix_io * 3 * blue_token_price;
document.getElementById('rev_io').innerHTML = `$${rev_io}`;
}
);

Expand Down

0 comments on commit 202faf2

Please sign in to comment.