refactor/add headers to client side scripts

This commit is contained in:
SowinskiBraeden committed 2025-05-21 11:33:26 -07:00
1 parent ce9345fad9
commit e50047b26a
9 files changed
+183 -155

No files matched your search

+4 -4
View File
@@ -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";