diff --git a/Games/index.html b/Games/index.html index bffa28e..d4a261e 100644 --- a/Games/index.html +++ b/Games/index.html @@ -7,11 +7,11 @@ - +

Here you can find a list of games. All games are hosted on this website.

Flash games

Bad website -
+
Terraria Super mario 64 Tic Tac Toe
diff --git a/Games/index.js b/Games/index.js new file mode 100644 index 0000000..d5b8423 --- /dev/null +++ b/Games/index.js @@ -0,0 +1,7 @@ +function sortList(ul) { + var ul = document.getElementById(ul); + + Array.from(ul.getElementsByTagName("A")) + .sort((a, b) => a.textContent.localeCompare(b.textContent)) + .forEach(li => ul.appendChild(li)); + } \ No newline at end of file