refactor/add headers to client side scripts
This commit is contained in:
9 files changed
+183
-155
No files matched your search
@@ -1,12 +1,12 @@
|
||||
|
||||
/**
|
||||
* Function takes in a number and formats it to currency
|
||||
* @param {integer}
|
||||
* @returns nuber formatted in currency
|
||||
* @param {number} value
|
||||
* @returns {string} number formatted in currency
|
||||
*/
|
||||
|
||||
document.addEventListener("DOMContentLoaded", () => {
|
||||
const number = document.querySelectorAll(".planGoal");
|
||||
number.forEach(value => {
|
||||
number.forEach((value) => {
|
||||
num = parseFloat(value.textContent);
|
||||
if (num >= 999999) {
|
||||
value.textContent = "$" + (num /= 1000000) + "M";
|
||||
|
||||
Reference in new issue
Block a user