Skip to content

Commit

Permalink
automatic number updates
Browse files Browse the repository at this point in the history
  • Loading branch information
nadiavanleur committed Mar 28, 2024
1 parent 7037890 commit aa2f60e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -276,6 +276,7 @@ <h2 class="c-title">
const setValues = async () => {
const values = await getValues();
[...Object.keys(FIELDS)].forEach((key) => {
console.log(values);
const value = [...values].find(total => total.includes(FIELDS[key]))[1];
const stringValue = value.toString();
const htmlValue = stringValue.split("").map((char) => `<span>${char}</span>`).join("");
Expand Down

0 comments on commit aa2f60e

Please sign in to comment.