-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathonline.html
52 lines (50 loc) · 1.71 KB
/
online.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta content="width=device-width, initial-scale=1.0" name="viewport"/>
<title>Base85 Console Test Playground</title>
<meta name="description"
content="The browser's console playground for Base85 library (@AlttiRi/base85).">
<style>
html, body {
min-height: 100vh;
margin: 0;
}
body {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
}
pre {
display: inline;
user-select: all;
}
a {
text-decoration: none;
}
</style>
<script type="module">
import * as util from "./tests/util.js";
Object.assign(globalThis, util);
import {decode, encode} from "./base85.js";
globalThis.decode = decode;
globalThis.encode = encode;
globalThis.base85 = globalThis.b85 = {decode, encode};
globalThis.util = util;
const consoleCss = "color: #0D6EFD; font-weight: bold;";
console.log("%c Use the global `base85` object:", consoleCss, globalThis.base85);
console.log("%c Or just the global `encode` and `decode` functions from it.", consoleCss);
console.log("%c Also, util functions from the `util` object:", consoleCss, Object.keys(util));
</script>
</head>
<body>
<h2>Base85</h2>
<span>You can use <pre>encode</pre> and <pre>decode</pre> in the browser's console.</span>
<br>
<i>As well as <pre>b85</pre> and <pre>util</pre>.</i>
<br>
<a href="https://github.com/AlttiRi/base85#base85" target="_blank" rel="noopener">Readme.md</a>
</body>
</html>