index.html 4.9 KB

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