index.html 5.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185
  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. window.EXCALIDRAW_ASSET_PATH = "/";
  79. // setting this so that libraries installation reuses this window tab.
  80. window.name = "_excalidraw";
  81. </script>
  82. <% if (process.env.REACT_APP_GOOGLE_ANALYTICS_ID) { %>
  83. <script
  84. async
  85. src="https://www.googletagmanager.com/gtag/js?id=%REACT_APP_GOOGLE_ANALYTICS_ID%"
  86. ></script>
  87. <script>
  88. window.dataLayer = window.dataLayer || [];
  89. function gtag() {
  90. dataLayer.push(arguments);
  91. }
  92. gtag("js", new Date());
  93. gtag("config", "%REACT_APP_GOOGLE_ANALYTICS_ID%");
  94. </script>
  95. <% } %>
  96. <!-- FIXME: remove this when we update CRA (fix SW caching) -->
  97. <style>
  98. body,
  99. html {
  100. margin: 0;
  101. --ui-font: system-ui, BlinkMacSystemFont, -apple-system, Segoe UI,
  102. Roboto, Helvetica, Arial, sans-serif;
  103. font-family: var(--ui-font);
  104. -webkit-text-size-adjust: 100%;
  105. width: 100%;
  106. height: 100%;
  107. overflow: hidden;
  108. }
  109. .visually-hidden {
  110. position: absolute !important;
  111. height: 1px;
  112. width: 1px;
  113. overflow: hidden;
  114. clip: rect(1px, 1px, 1px, 1px);
  115. white-space: nowrap; /* added line */
  116. user-select: none;
  117. }
  118. .LoadingMessage {
  119. position: absolute;
  120. top: 0;
  121. right: 0;
  122. bottom: 0;
  123. left: 0;
  124. z-index: 999;
  125. display: flex;
  126. align-items: center;
  127. justify-content: center;
  128. pointer-events: none;
  129. }
  130. .LoadingMessage span {
  131. background-color: var(--button-gray-1);
  132. border-radius: 5px;
  133. padding: 0.8em 1.2em;
  134. color: var(--popup-text-color);
  135. font-size: 1.3em;
  136. }
  137. #root {
  138. height: 100%;
  139. -webkit-touch-callout: none;
  140. -webkit-user-select: none;
  141. -khtml-user-select: none;
  142. -moz-user-select: none;
  143. -ms-user-select: none;
  144. user-select: none;
  145. @media screen and (min-width: 1200px) {
  146. -webkit-touch-callout: default;
  147. -webkit-user-select: auto;
  148. -khtml-user-select: auto;
  149. -moz-user-select: auto;
  150. -ms-user-select: auto;
  151. user-select: auto;
  152. }
  153. }
  154. </style>
  155. </head>
  156. <body>
  157. <noscript> You need to enable JavaScript to run this app. </noscript>
  158. <header>
  159. <h1 class="visually-hidden">Excalidraw</h1>
  160. </header>
  161. <div id="root">
  162. <div class="LoadingMessage">
  163. <span>Loading scene...</span>
  164. </div>
  165. </div>
  166. </body>
  167. </html>