Skip to content

Commit a1a55be

Browse files
committed
Add counter for Github Pages
1 parent 3c42a92 commit a1a55be

File tree

6 files changed

+7
-4
lines changed

6 files changed

+7
-4
lines changed

Hangman/web.html

+2
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,11 @@
2020

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

2526
<body>
27+
<noscript><b>This page requires JavaScript to work properly.</b></noscript>
2628
<textarea id="terminal"></textarea>
2729
<script>
2830
let inputFunction = () => { }

MazeEscape/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function welcome() {
9595

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

Snake/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ function randInt(min, max) {
208208
}
209209

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

TextAdventures/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function getValues(n) {
1616

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

TicTacToe/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ function checkDiagonals(m) {
8080

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

_includes/head-custom.html

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
<script data-goatcounter="https://sgi.goatcounter.com/count" async src="//gc.zgo.at/count.js"></script>

0 commit comments

Comments
 (0)