-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathunicode.html
96 lines (87 loc) · 2.76 KB
/
unicode.html
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Unicode Fun</title>
<style>
html,
body {
font-family: monospace;
font-size: 12px;
}
table,
td {
border-collapse: collapse;
}
</style>
</head>
<body>
<button onclick="backx(256);">Back x256</button>
<button onclick="backx(8);">Back x8</button>
<button onclick="backx(4);">Back x4</button>
<button onclick="backx(2);">Back x2</button>
<button onclick="back();">Back</button>
<button onclick="next();">Next</button>
<button onclick="nextx(2);">Next x2</button>
<button onclick="nextx(4);">Next x4</button>
<button onclick="nextx(8);">Next x8</button>
<button onclick="nextx(256);">Next x256</button>
<br>
<button onclick="start = 0;dump();">Beginning</button>
<button onclick="start = 9728;dump();">Miscellaneous Symbols 2600</button>
<button onclick="start = 57344;dump();">Private Use Area e000</button>
<button onclick="start = 127744;dump();">Miscellaneous Symbols and Pictographs 1f300</button>
<table id="theTable">
</table>
<script>
start = 0;
var wide = 4;
var perPage = 64
addEventListener('wheel', (event) => {
console.log(event.deltaY)
if (event.deltaY > 9) start += perPage;
if (event.deltaY < -9) start -= perPage;
dump();
});
function back() {
start -= perPage;
dump();
}
function backx(x) {
start -= perPage * x;
dump();
}
function next() {
start += perPage;
dump();
}
function nextx(x) {
start += perPage * x;
dump();
}
function dump() {
if (start < 0) start = 0;
var innerHTML = ``;
for (var r = start; r < (perPage + start); r += wide) {
innerHTML += `<tr>`;
for (var c = 0; c < wide; c++) {
var i = r + c;
innerHTML += `<td>&${i.toString(16)};</td>`;
innerHTML += `<td>&#${i};</td>`;
innerHTML += `<td style="font-size:22px;">&#${i};</td>`;
innerHTML += `<td style="font-size:22px;">&#${i};︎</td>`;
innerHTML += `<td style="font-size:22px;">&#${i};️</td>`;
innerHTML += `<td style="font-size:22px;font-family: "Segoe UI Symbol";">&#${i};</td>`;
innerHTML += `<td > </td>`;
}
innerHTML += `</tr>`;
}
document.getElementById('theTable').innerHTML = innerHTML;
}
dump();
</script>
<br /><br /><br />
<a style="font-size: 200%;font-weight: bold;" href="index.html">MY OTHER STUFF</a>
</body>
</html>