index.html 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197
  1. <!DOCTYPE html>
  2. <html lang="en">
  3. <head>
  4. <meta charset="utf-8" />
  5. <title>Excalidraw | Hand-drawn look & feel • Collaborative • Secure</title>
  6. <meta
  7. name="viewport"
  8. content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover, shrink-to-fit=no"
  9. />
  10. <meta name="referrer" content="origin" />
  11. <meta name="mobile-web-app-capable" content="yes" />
  12. <meta name="theme-color" content="#000" />
  13. <!-- General tags -->
  14. <meta
  15. name="description"
  16. content="Excalidraw is a virtual collaborative whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them."
  17. />
  18. <meta name="image" content="og-image.png" />
  19. <!-- OpenGraph tags -->
  20. <meta property="og:url" content="https://excalidraw.com" />
  21. <meta property="og:site_name" content="Excalidraw" />
  22. <meta property="og:type" content="website" />
  23. <meta property="og:title" content="Excalidraw" />
  24. <meta
  25. property="og:description"
  26. content="Excalidraw is a whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them."
  27. />
  28. <!-- OG tags require an absolute url for images -->
  29. <meta
  30. property="og:image"
  31. name="twitter:image"
  32. content="https://excalidraw.com/og-image.png"
  33. />
  34. <meta
  35. property="og:image:secure_url"
  36. name="twitter:image"
  37. content="https://excalidraw.com/og-image.png"
  38. />
  39. <meta property="og:image:width" content="1280" />
  40. <meta property="og:image:height" content="669" />
  41. <meta property="og:image:alt" content="Excalidraw logo with byline." />
  42. <!-- Twitter Card tags -->
  43. <meta name="twitter:card" content="summary_large_image" />
  44. <meta name="twitter:title" content="Excalidraw" />
  45. <meta
  46. name="twitter:description"
  47. content="Excalidraw is a whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them."
  48. />
  49. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  50. <!-- Excalidraw version -->
  51. <meta name="version" content="{version}" />
  52. <link
  53. rel="preload"
  54. href="Virgil.woff2"
  55. as="font"
  56. type="font/woff2"
  57. crossorigin="anonymous"
  58. />
  59. <link
  60. rel="preload"
  61. href="Cascadia.woff2"
  62. as="font"
  63. type="font/woff2"
  64. crossorigin="anonymous"
  65. />
  66. <link
  67. href="%REACT_APP_SOCKET_SERVER_URL%/socket.io"
  68. rel="preconnect"
  69. crossorigin="anonymous"
  70. />
  71. <link
  72. rel="manifest"
  73. href="manifest.json"
  74. style="--pwacompat-splash-font: 24px Virgil"
  75. />
  76. <link rel="stylesheet" href="fonts.css" type="text/css" />
  77. <script>
  78. document.domain = document.domain.split(".").slice(-2).join(".");
  79. </script>
  80. <script>
  81. document.onkeydown = function (evt) {
  82. evt = evt || window.event;
  83. var keyCode = evt.keyCode;
  84. if (keyCode >= 37 && keyCode <= 40) {
  85. return false;
  86. }
  87. };
  88. window.EXCALIDRAW_ASSET_PATH = "/";
  89. // setting this so that libraries installation reuses this window tab.
  90. window.name = "_excalidraw";
  91. </script>
  92. <% if (process.env.REACT_APP_GOOGLE_ANALYTICS_ID) { %>
  93. <script
  94. async
  95. src="https://www.googletagmanager.com/gtag/js?id=%REACT_APP_GOOGLE_ANALYTICS_ID%"
  96. ></script>
  97. <script>
  98. window.dataLayer = window.dataLayer || [];
  99. function gtag() {
  100. dataLayer.push(arguments);
  101. }
  102. gtag("js", new Date());
  103. gtag("config", "%REACT_APP_GOOGLE_ANALYTICS_ID%");
  104. </script>
  105. <% } %>
  106. <!-- FIXME: remove this when we update CRA (fix SW caching) -->
  107. <style>
  108. body,
  109. html {
  110. margin: 0;
  111. --ui-font: system-ui, BlinkMacSystemFont, -apple-system, Segoe UI,
  112. Roboto, Helvetica, Arial, sans-serif;
  113. font-family: var(--ui-font);
  114. -webkit-text-size-adjust: 100%;
  115. width: 100%;
  116. height: 100%;
  117. overflow: hidden;
  118. }
  119. .visually-hidden {
  120. position: absolute !important;
  121. height: 1px;
  122. width: 1px;
  123. overflow: hidden;
  124. clip: rect(1px, 1px, 1px, 1px);
  125. white-space: nowrap;
  126. /* added line */
  127. user-select: none;
  128. }
  129. .LoadingMessage {
  130. position: absolute;
  131. top: 0;
  132. right: 0;
  133. bottom: 0;
  134. left: 0;
  135. z-index: 999;
  136. display: flex;
  137. align-items: center;
  138. justify-content: center;
  139. pointer-events: none;
  140. }
  141. .LoadingMessage span {
  142. background-color: var(--button-gray-1);
  143. border-radius: 5px;
  144. padding: 0.8em 1.2em;
  145. color: var(--popup-text-color);
  146. font-size: 1.3em;
  147. }
  148. #root {
  149. height: 100%;
  150. -webkit-touch-callout: none;
  151. -webkit-user-select: none;
  152. -khtml-user-select: none;
  153. -moz-user-select: none;
  154. -ms-user-select: none;
  155. user-select: none;
  156. @media screen and (min-width: 1200px) {
  157. -webkit-touch-callout: default;
  158. -webkit-user-select: auto;
  159. -khtml-user-select: auto;
  160. -moz-user-select: auto;
  161. -ms-user-select: auto;
  162. user-select: auto;
  163. }
  164. }
  165. </style>
  166. </head>
  167. <body>
  168. <noscript> You need to enable JavaScript to run this app. </noscript>
  169. <header>
  170. <h1 class="visually-hidden">Excalidraw</h1>
  171. </header>
  172. <div id="root">
  173. <div class="LoadingMessage">
  174. <span>Loading scene...</span>
  175. </div>
  176. </div>
  177. </body>
  178. </html>