index.html 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176
  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. <script>
  50. // Redirect Excalidraw+ users which have auto-redirect enabled.
  51. //
  52. // Redirect only the bare root path, so link/room/library urls are not
  53. // redirected.
  54. //
  55. // Putting into index.html for best performance (can't redirect on server
  56. // due to location.hash checks).
  57. if (
  58. window.location.pathname === "/" &&
  59. !window.location.hash &&
  60. !window.location.search &&
  61. // if its present redirect
  62. document.cookie.includes("excplus-autoredirect=true")
  63. ) {
  64. window.location.href = "https://app.excalidraw.com";
  65. }
  66. </script>
  67. <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
  68. <!-- Excalidraw version -->
  69. <meta name="version" content="{version}" />
  70. <link
  71. rel="preload"
  72. href="Virgil.woff2"
  73. as="font"
  74. type="font/woff2"
  75. crossorigin="anonymous"
  76. />
  77. <link
  78. rel="preload"
  79. href="Cascadia.woff2"
  80. as="font"
  81. type="font/woff2"
  82. crossorigin="anonymous"
  83. />
  84. <link
  85. rel="manifest"
  86. href="manifest.json"
  87. style="--pwacompat-splash-font: 24px Virgil"
  88. />
  89. <link rel="stylesheet" href="fonts.css" type="text/css" />
  90. <script>
  91. window.EXCALIDRAW_ASSET_PATH = "/";
  92. // setting this so that libraries installation reuses this window tab.
  93. window.name = "_excalidraw";
  94. </script>
  95. <% if (process.env.REACT_APP_GOOGLE_ANALYTICS_ID) { %>
  96. <script
  97. async
  98. src="https://www.googletagmanager.com/gtag/js?id=%REACT_APP_GOOGLE_ANALYTICS_ID%"
  99. ></script>
  100. <script>
  101. window.dataLayer = window.dataLayer || [];
  102. function gtag() {
  103. dataLayer.push(arguments);
  104. }
  105. gtag("js", new Date());
  106. gtag("config", "%REACT_APP_GOOGLE_ANALYTICS_ID%");
  107. </script>
  108. <% } %>
  109. <!-- FIXME: remove this when we update CRA (fix SW caching) -->
  110. <style>
  111. body,
  112. html {
  113. margin: 0;
  114. --ui-font: system-ui, BlinkMacSystemFont, -apple-system, Segoe UI,
  115. Roboto, Helvetica, Arial, sans-serif;
  116. font-family: var(--ui-font);
  117. -webkit-text-size-adjust: 100%;
  118. width: 100%;
  119. height: 100%;
  120. overflow: hidden;
  121. }
  122. .visually-hidden {
  123. position: absolute !important;
  124. height: 1px;
  125. width: 1px;
  126. overflow: hidden;
  127. clip: rect(1px, 1px, 1px, 1px);
  128. white-space: nowrap; /* added line */
  129. user-select: none;
  130. }
  131. #root {
  132. height: 100%;
  133. -webkit-touch-callout: none;
  134. -webkit-user-select: none;
  135. -khtml-user-select: none;
  136. -moz-user-select: none;
  137. -ms-user-select: none;
  138. user-select: none;
  139. }
  140. @media screen and (min-width: 1200px) {
  141. #root {
  142. -webkit-touch-callout: default;
  143. -webkit-user-select: auto;
  144. -khtml-user-select: auto;
  145. -moz-user-select: auto;
  146. -ms-user-select: auto;
  147. user-select: auto;
  148. }
  149. }
  150. </style>
  151. </head>
  152. <body>
  153. <noscript> You need to enable JavaScript to run this app. </noscript>
  154. <header>
  155. <h1 class="visually-hidden">Excalidraw</h1>
  156. </header>
  157. <div id="root"></div>
  158. </body>
  159. </html>