-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
76 lines (70 loc) · 3.34 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Code Art</title>
<meta name="description" content="Abstract code artworks for your creations"/>
<meta property="og:title" content="Code Art">
<meta property="og:description" content="Abstract artworks for your creations">
<meta property="og:url" content="https://code-art.pictures">
<meta property="og:image" content="https://code-art.pictures/og-image.png"/>
<meta property="og:image:type" content="image/png" />
<link rel="icon" type="image/png" href="favicon.png">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Roboto&family=Ubuntu:wght@300&family=Anonymous+Pro&family=B612+Mono&family=Courier+Prime&family=Cutive+Mono&family=Inconsolata&family=JetBrains+Mono&family=Noto+Sans+Mono&family=Nova+Mono&family=Share+Tech+Mono&family=Syne+Mono&family=Ubuntu+Mono&family=Fira+Code&display=swap" rel="stylesheet">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-JCT4HY96VE"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-JCT4HY96VE');
</script></head>
<body>
<script>
(function() {
var msg = 'ES2020 syntax not fully supported';
try {
var p = eval(
'(async () => {\n' +
'let a = [];\n' +
'for await (const x of gen()) {\n' +
' a = [...a, x];\n' +
'}\n' +
'async function* gen() {\n' +
' yield 3;\n' +
' yield 5**2;\n' +
'}\n' +
'return a;})();'
);
if (!p || !('then' in p)) {
showStub(msg);
} else {
p.then(function (arr) {
if (!arr || arr.length !== 2 || arr[0] !== 3 || arr[1] !== 25) {
showStub(msg);
}
});
}
} catch(e) {
showStub(msg);
}
})();
function showStub(details) {
window.isStubShown = true;
var styles = document.getElementsByTagName('style');
if (styles) {
for (var i = 0; i < styles.length; i++) {
styles[i].parentElement.removeChild(styles[i]);
}
}
document.body.style.background = 'white';
document.body.innerHTML = '<p style="max-width: 460px; margin-top: 40px; margin-left: auto; margin-right: auto; padding: 12px; font-family: sans-serif; text-align: center; background: white">' +
'Sorry, this site cannot work in your browser because it\'s outdated. Would you like to <a href="https://www.whatismybrowser.com/guides/how-to-update-your-browser/">upgrade</a> it?' +
'<br><br><span style="color: darkgray">Details: ' + details + '</span></p>';
}
</script>
</body>
</html>