Skip to content

Instantly share code, notes, and snippets.

View c0d3r111's full-sized avatar

Reheem Carmichael c0d3r111

  • USA
View GitHub Profile
@c0d3r111
c0d3r111 / counter.client.js
Last active July 11, 2020 07:41
For BLW espressox
window.addEventListener('load', function() {
fetch('/hit-counter')
.then(response => response.text())
.then(response => {
window.TOTAL_HITS = repsonse << 0;
})
.catch(() => {
window.TOTAL_HITS = 0;
});
});