This commit is contained in:
Boof 2023-05-11 09:29:07 +02:00 committed by GitHub
parent 6c4ff4200c
commit b8975672bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 4 deletions

View File

@ -7,15 +7,17 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Flash Games</title>
<link rel="stylesheet" href="/style.css" Type="text/css" media="all">
<script src="index.js"></script>
</head>
<body>
<body onload="sortList('GameList')">
<h1 style="font-size:2vw">Flash games.</h1>
<p>On this page you can play flash games, all of these run on <a title="Ruffle" href="https://ruffle.rs">Ruffle</a>
</p>
</p>
<p><a href="Interactive buddy/">Interactive buddy</a></p>
<a href="bloxorz/">Bloxorz</a>
<div id="GameList">
<li><a href="Interactive buddy/">Interactive buddy</a></li>
<li><a href="bloxorz/">Bloxorz</a></li>
</div>
</body>
</html>

7
Games/Flash/index.js Normal file
View File

@ -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));
}