mirror of
https://github.com/hexahigh/games.git
synced 2025-12-11 20:15:38 +01:00
a
This commit is contained in:
parent
6c4ff4200c
commit
b8975672bc
@ -7,15 +7,17 @@
|
|||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<title>Flash Games</title>
|
<title>Flash Games</title>
|
||||||
<link rel="stylesheet" href="/style.css" Type="text/css" media="all">
|
<link rel="stylesheet" href="/style.css" Type="text/css" media="all">
|
||||||
|
<script src="index.js"></script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body onload="sortList('GameList')">
|
||||||
<h1 style="font-size:2vw">Flash games.</h1>
|
<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>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>
|
<div id="GameList">
|
||||||
<p><a href="Interactive buddy/">Interactive buddy</a></p>
|
<li><a href="Interactive buddy/">Interactive buddy</a></li>
|
||||||
<a href="bloxorz/">Bloxorz</a>
|
<li><a href="bloxorz/">Bloxorz</a></li>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
7
Games/Flash/index.js
Normal file
7
Games/Flash/index.js
Normal 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));
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user