the home site for me: also iteration 3 or 4 of my site

chore: update all view counts

Changed files
+5 -3
templates
+5 -3
templates/head.html
···
<script>
function cb(res) {
const fmt = new Intl.NumberFormat('en', { notation: 'compact' });
-
const el = document.getElementById("visits")
-
el.innerText = fmt.format(res.value);
-
el.title = res.value + " visits";
+
const elements = document.querySelectorAll("[id='visits']");
+
elements.forEach(el => {
+
el.innerText = fmt.format(res.value);
+
el.title = res.value + " visits";
+
});
}
</script>
<script async src="https://abacus.jasoncameron.dev/hit/dunkirk.sh/counter?callback=cb"></script>