From b8975672bc0db49ed4eccc2cb4fb26a76b5f9091 Mon Sep 17 00:00:00 2001 From: Boof <97455552+hexahigh@users.noreply.github.com> Date: Thu, 11 May 2023 09:29:07 +0200 Subject: [PATCH] a --- Games/Flash/index.html | 10 ++++++---- Games/Flash/index.js | 7 +++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 Games/Flash/index.js diff --git a/Games/Flash/index.html b/Games/Flash/index.html index 6d10f1d..1be3809 100644 --- a/Games/Flash/index.html +++ b/Games/Flash/index.html @@ -7,15 +7,17 @@ Flash Games + - +

Flash games.

On this page you can play flash games, all of these run on Ruffle

-

-

Interactive buddy

- Bloxorz +
+
  • Interactive buddy
  • +
  • Bloxorz
  • +
    \ No newline at end of file diff --git a/Games/Flash/index.js b/Games/Flash/index.js new file mode 100644 index 0000000..3fc622c --- /dev/null +++ b/Games/Flash/index.js @@ -0,0 +1,7 @@ +function sortList(ul) { + var ul = document.getElementById(ul); + + Array.from(ul.getElementsByTagName("LI")) + .sort((a, b) => a.textContent.localeCompare(b.textContent)) + .forEach(li => ul.appendChild(li)); + } \ No newline at end of file