-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.html
More file actions
33 lines (30 loc) · 808 Bytes
/
example.html
File metadata and controls
33 lines (30 loc) · 808 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!doctype html>
<html>
<head>
<title>ConwaySort</title>
<style>
body {
background: #111;
margin: 0;
color: white;
height: 100vh;
width: 100%;
font-family: Arial, Helvetica, sans-serif;
display: flex;
justify-content: center;
align-items: center;
}
</style>
</head>
<body>
<a href="#!" id="sort">So good, it doesn't even need your input. (click2sort)</a>
<script src="ConwaySort.js"></script>
<script>
var $ = (a) => document.getElementById(a);
$("sort").addEventListener("click", () => {
$("sort").innerText = ConwaySort($("sort").innerText);
console.log("I sorted it out!");
});
</script>
</body>
</html>