Advertisement
Mourgy

Untitled

May 27th, 2022
701
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function updateBar(amount) {
  2.     let percentage = amount / goal * 100;
  3.     $("#bar").css('width', Math.min(100, percentage) + "%");
  4.     $("#percent").html(amount);
  5. }
Advertisement
RAW Paste Data Copied
Advertisement