|
1 | | -<!DOCTYPE html> |
| 1 | +<!doctype html> |
2 | 2 | <html> |
3 | | -<head> |
4 | | - <meta charset="utf-8"> |
5 | | - <title>Graphite</title> |
6 | | - <link rel="stylesheet" href="https://fonts.googleapis.com/css2?display=block&family=Source+Sans+Pro:ital,wght@0,400;0,700;1,400;1,700&family=Inconsolata:wght@400;700"> |
7 | | - <link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png"> |
8 | | - <link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png"> |
9 | | - <link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png"> |
10 | | - <link rel="manifest" href="site.webmanifest"> |
11 | | - <link rel="mask-icon" href="safari-pinned-tab.svg" color="#473a3a"> |
12 | | - <meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=0.5, minimum-scale=0.5"> |
13 | | - <meta name="apple-mobile-web-app-title" content="Graphite"> |
14 | | - <meta name="application-name" content="Graphite"> |
15 | | - <meta name="msapplication-TileColor" content="#ffffff"> |
16 | | - <meta name="theme-color" content="#ffffff"> |
17 | | - <meta name="color-scheme" content="dark only"> |
18 | | - <meta name="darkreader-lock"> |
19 | | - <!-- INDEX_HTML_HEAD_REPLACEMENT --> |
20 | | -</head> |
21 | | -<body> |
22 | | - <noscript>JavaScript is required</noscript> |
23 | | - <style> |
24 | | - body { |
25 | | - background: #222; |
26 | | - height: 100%; |
27 | | - margin: 0; |
28 | | - } |
29 | | - |
30 | | - body::after { |
31 | | - content: ""; |
32 | | - display: block; |
33 | | - position: absolute; |
34 | | - left: 50%; |
35 | | - top: 50%; |
36 | | - width: 60px; |
37 | | - height: 60px; |
38 | | - border-radius: 50%; |
39 | | - border: 4px solid #eee; |
40 | | - border-color: #eee transparent #eee transparent; |
41 | | - animation: spinning-loading-indicator 1s linear infinite; |
42 | | - } |
43 | | - |
44 | | - @keyframes spinning-loading-indicator { |
45 | | - 0% { |
46 | | - transform: translate(-30px, -30px) rotate(0deg); |
47 | | - } |
48 | | - 100% { |
49 | | - transform: translate(-30px, -30px) rotate(360deg); |
| 3 | + <head> |
| 4 | + <meta charset="utf-8" /> |
| 5 | + <title>Graphite</title> |
| 6 | + <link rel="apple-touch-icon" sizes="180x180" href="apple-touch-icon.png" /> |
| 7 | + <link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png" /> |
| 8 | + <link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png" /> |
| 9 | + <link rel="manifest" href="site.webmanifest" /> |
| 10 | + <link rel="mask-icon" href="safari-pinned-tab.svg" color="#473a3a" /> |
| 11 | + <meta name="viewport" content="width=device-width, initial-scale=0.5, maximum-scale=0.5, minimum-scale=0.5" /> |
| 12 | + <meta name="apple-mobile-web-app-title" content="Graphite" /> |
| 13 | + <meta name="application-name" content="Graphite" /> |
| 14 | + <meta name="msapplication-TileColor" content="#ffffff" /> |
| 15 | + <meta name="theme-color" content="#ffffff" /> |
| 16 | + <meta name="color-scheme" content="dark only" /> |
| 17 | + <meta name="darkreader-lock" /> |
| 18 | + <!-- INDEX_HTML_HEAD_REPLACEMENT --> |
| 19 | + </head> |
| 20 | + <body> |
| 21 | + <noscript>JavaScript is required</noscript> |
| 22 | + <style> |
| 23 | + body { |
| 24 | + background: #222; |
| 25 | + height: 100%; |
| 26 | + margin: 0; |
50 | 27 | } |
51 | | - } |
52 | | - </style> |
53 | | - <script> |
54 | | - // Confirm the browser is compatible before initializing the application |
55 | 28 |
|
56 | | - // Display an error if the browser is incompatible with a required API |
57 | | - // This is run outside the JS code bundle in case unsupported features cause a syntax error when parsing the bundle, preventing the any bundle code from running |
58 | | - let incompatibility; |
59 | | - if (!("BigUint64Array" in window)) { |
60 | | - incompatibility = ` |
61 | | - <style> |
62 | | - body::after { content: none; } |
63 | | - h2, p, a { text-align: center; color: #eee; font-family: "Source Sans Pro", Arial, sans-serif; } |
64 | | - </style> |
65 | | - <h2>This browser is too old to run Graphite</h2> |
66 | | - <p>Please upgrade to a modern web browser such as the latest Firefox, Chrome, Edge, or Safari version 15 or newer.</p> |
67 | | - <p>(The <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt64Array#browser_compatibility" target="_blank"><code>BigInt64Array</code></a> |
68 | | - JavaScript API must be supported by the browser for Graphite to function.)</p> |
69 | | - `.trim(); |
70 | | - } |
| 29 | + body::after { |
| 30 | + content: ""; |
| 31 | + display: block; |
| 32 | + position: absolute; |
| 33 | + left: 50%; |
| 34 | + top: 50%; |
| 35 | + width: 60px; |
| 36 | + height: 60px; |
| 37 | + border-radius: 50%; |
| 38 | + border: 4px solid #eee; |
| 39 | + border-color: #eee transparent #eee transparent; |
| 40 | + animation: spinning-loading-indicator 1s linear infinite; |
| 41 | + } |
71 | 42 |
|
72 | | - // Load the editor application or display the incompatibility message |
73 | | - if (incompatibility) { |
74 | | - document.body.innerHTML += incompatibility; |
75 | | - } |
76 | | - </script> |
77 | | - <script type="module" src="src/main.ts"></script> |
78 | | -</body> |
| 43 | + @keyframes spinning-loading-indicator { |
| 44 | + 0% { |
| 45 | + transform: translate(-30px, -30px) rotate(0deg); |
| 46 | + } |
| 47 | + 100% { |
| 48 | + transform: translate(-30px, -30px) rotate(360deg); |
| 49 | + } |
| 50 | + } |
| 51 | + </style> |
| 52 | + <script type="module" src="src/main.ts"></script> |
| 53 | + </body> |
79 | 54 | </html> |
0 commit comments