diff --git a/.gitignore b/.gitignore index 00e79b6..c1e4782 100644 --- a/.gitignore +++ b/.gitignore @@ -24,4 +24,7 @@ pnpm-debug.log* .idea/ # vscode setting folder -.vscode/ \ No newline at end of file +.vscode/ + +# angel's test journal file +src/pages/journal/test.mdx \ No newline at end of file diff --git a/src/components/footer.astro b/src/components/footer.astro index fb8eec1..dc55733 100644 --- a/src/components/footer.astro +++ b/src/components/footer.astro @@ -25,7 +25,4 @@ import "../styles/footer.scss";

Angel Wang © 2025 (Credits)

-

- loading carbon usage... -

\ No newline at end of file diff --git a/src/scripts/index.ts b/src/scripts/index.ts index 80ec82c..2cd21fd 100644 --- a/src/scripts/index.ts +++ b/src/scripts/index.ts @@ -6,11 +6,11 @@ async function fetchCarbon() : Promise { return await response.json().then(data => data.statistics.co2.grid.litres); } -window.onload = async function() { +/* window.onload = async function() { try { document.getElementById('carbon').innerHTML = "your visit to this website produced only " + Math.round(await fetchCarbon() * 100000) / 100 + " mL of carbon dioxide!"; } catch (error) { document.getElementById('carbon').innerHTML = "unable to load carbon usage!"; console.log(error); } -}; \ No newline at end of file +}; */ \ No newline at end of file