Skip to content

Commit

Permalink
Add counter for Github Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
salif committed Jul 15, 2024
1 parent 3c42a92 commit a1a55be
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 4 deletions.
2 changes: 2 additions & 0 deletions Hangman/web.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@

</style>
<script src="Hangman.js"></script>
<script data-goatcounter="https://sgi.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>
</head>

<body>
<noscript><b>This page requires JavaScript to work properly.</b></noscript>
<textarea id="terminal"></textarea>
<script>
let inputFunction = () => { }
Expand Down
2 changes: 1 addition & 1 deletion MazeEscape/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function welcome() {

/*Salif's coloring function*/
function clr(text, color) {
var code = { red: 91, green: 92, blue: 34, cian: 96, yellow: 93 }[color];
const code = { red: 91, green: 92, blue: 34, cian: 96, yellow: 93 }[color];
if (code) return "\x1b[" + code + "m" + text + "\x1b[0m";
}

Expand Down
2 changes: 1 addition & 1 deletion Snake/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ function randInt(min, max) {
}

function clr(text, color) {
var code = { red: 91, green: 92, blue: 34, cian: 96, yellow: 93 }[color];
const code = { red: 91, green: 92, blue: 34, cian: 96, yellow: 93 }[color];
if (code) return "\x1b[" + code + "m" + text + "\x1b[0m";
}

Expand Down
2 changes: 1 addition & 1 deletion TextAdventures/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function getValues(n) {

/*Salif's coloring function*/
function clr(text, color) {
var code = { red: 91, green: 92, blue: 34, cian: 96, yellow: 93 }[color];
const code = { red: 91, green: 92, blue: 34, cian: 96, yellow: 93 }[color];
if (code) return "\x1b[" + code + "m" + text + "\x1b[0m";
}

Expand Down
2 changes: 1 addition & 1 deletion TicTacToe/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ function checkDiagonals(m) {

/*Coloring function by Salif*/
function clr(text, color) {
var code = { red: 91, green: 92, blue: 34, cian: 96, yellow: 93 }[color]
const code = { red: 91, green: 92, blue: 34, cian: 96, yellow: 93 }[color]
if (code) return "\x1b[" + code + "m" + text + "\x1b[0m"
}

Expand Down
1 change: 1 addition & 0 deletions _includes/head-custom.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<script data-goatcounter="https://sgi.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>

0 comments on commit a1a55be

Please sign in to comment.