2020-01-02 02:04:47 +01:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2020-01-04 00:47:15 +01:00
|
|
|
<head>
|
|
|
|
<meta charset="utf-8" />
|
2020-04-07 16:02:29 +02:00
|
|
|
<title>Excalidraw | Hand-drawn look & feel • Collaborative • Secure</title>
|
2020-01-04 00:47:15 +01:00
|
|
|
<meta
|
|
|
|
name="viewport"
|
2020-02-21 00:44:38 +01:00
|
|
|
content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover, shrink-to-fit=no"
|
2020-01-04 00:47:15 +01:00
|
|
|
/>
|
2020-04-04 01:36:12 +02:00
|
|
|
<meta name="referrer" content="origin" />
|
2020-04-13 16:08:39 +02:00
|
|
|
<meta name="mobile-web-app-capable" content="yes" />
|
2022-11-01 17:29:58 +01:00
|
|
|
<meta name="theme-color" content="#121212" />
|
2020-02-21 14:17:20 +01:00
|
|
|
|
2022-11-01 17:29:58 +01:00
|
|
|
<!-- Primary Meta Tags -->
|
|
|
|
<meta
|
|
|
|
name="title"
|
|
|
|
content="Excalidraw — Collaborative whiteboarding made easy"
|
|
|
|
/>
|
2020-01-16 21:32:40 +01:00
|
|
|
<meta
|
|
|
|
name="description"
|
2020-04-06 17:58:20 +02:00
|
|
|
content="Excalidraw is a virtual collaborative whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them."
|
2020-01-16 21:32:40 +01:00
|
|
|
/>
|
2024-05-23 11:52:37 +02:00
|
|
|
<meta name="image" content="https://excalidraw.com/og-image-3.png" />
|
2020-01-16 21:32:40 +01:00
|
|
|
|
2022-11-01 17:29:58 +01:00
|
|
|
<!-- Open Graph / Facebook -->
|
2020-01-16 21:32:40 +01:00
|
|
|
<meta property="og:site_name" content="Excalidraw" />
|
|
|
|
<meta property="og:type" content="website" />
|
2022-11-01 17:29:58 +01:00
|
|
|
<meta property="og:url" content="https://excalidraw.com" />
|
|
|
|
<meta
|
|
|
|
property="og:title"
|
|
|
|
content="Excalidraw — Collaborative whiteboarding made easy"
|
|
|
|
/>
|
|
|
|
<meta property="og:image:alt" content="Excalidraw logo" />
|
2020-01-16 21:32:40 +01:00
|
|
|
<meta
|
|
|
|
property="og:description"
|
2022-11-01 17:29:58 +01:00
|
|
|
content="Excalidraw is a virtual collaborative whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them."
|
|
|
|
/>
|
2024-05-23 11:52:37 +02:00
|
|
|
<meta property="og:image" content="https://excalidraw.com/og-image-3.png" />
|
2022-11-01 17:29:58 +01:00
|
|
|
|
|
|
|
<!-- Twitter -->
|
|
|
|
<meta property="twitter:card" content="summary_large_image" />
|
|
|
|
<meta property="twitter:site" content="@excalidraw" />
|
|
|
|
<meta property="twitter:url" content="https://excalidraw.com" />
|
|
|
|
<meta
|
|
|
|
property="twitter:title"
|
|
|
|
content="Excalidraw — Collaborative whiteboarding made easy"
|
2020-01-16 21:32:40 +01:00
|
|
|
/>
|
2020-03-09 03:48:23 +01:00
|
|
|
<meta
|
2022-11-01 17:29:58 +01:00
|
|
|
property="twitter:description"
|
|
|
|
content="Excalidraw is a virtual collaborative whiteboard tool that lets you easily sketch diagrams that have a hand-drawn feel to them."
|
2020-03-09 03:48:23 +01:00
|
|
|
/>
|
|
|
|
<meta
|
2022-11-01 17:29:58 +01:00
|
|
|
property="twitter:image"
|
2024-05-23 11:52:37 +02:00
|
|
|
content="https://excalidraw.com/og-image-3.png"
|
2020-03-09 03:48:23 +01:00
|
|
|
/>
|
2020-01-04 20:28:57 +01:00
|
|
|
|
2022-09-16 17:12:24 +02:00
|
|
|
<!------------------------------------------------------------------------->
|
|
|
|
<!-- to minimize white flash on load when user has dark mode enabled -->
|
|
|
|
<script>
|
|
|
|
try {
|
2024-04-08 16:46:24 +02:00
|
|
|
function setTheme(theme) {
|
|
|
|
if (theme === "dark") {
|
|
|
|
document.documentElement.classList.add("dark");
|
|
|
|
} else {
|
|
|
|
document.documentElement.classList.remove("dark");
|
|
|
|
}
|
2022-09-16 17:12:24 +02:00
|
|
|
}
|
2024-04-08 16:46:24 +02:00
|
|
|
|
|
|
|
function getTheme() {
|
|
|
|
const theme = window.localStorage.getItem("excalidraw-theme");
|
|
|
|
|
|
|
|
if (theme && theme === "system") {
|
|
|
|
return window.matchMedia("(prefers-color-scheme: dark)").matches
|
|
|
|
? "dark"
|
|
|
|
: "light";
|
|
|
|
} else {
|
|
|
|
return theme || "light";
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
setTheme(getTheme());
|
|
|
|
} catch (e) {
|
|
|
|
console.error("Error setting dark mode", e);
|
|
|
|
}
|
2022-09-16 17:12:24 +02:00
|
|
|
</script>
|
|
|
|
<style>
|
|
|
|
html.dark {
|
|
|
|
background-color: #121212;
|
|
|
|
color: #fff;
|
|
|
|
}
|
|
|
|
</style>
|
2024-07-30 10:34:40 +02:00
|
|
|
|
|
|
|
<!-- Warmup the connection for Google fonts -->
|
|
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
|
|
|
|
|
2022-09-16 17:12:24 +02:00
|
|
|
<!------------------------------------------------------------------------->
|
2024-03-28 14:58:47 +01:00
|
|
|
<% if (typeof PROD != 'undefined' && PROD == true) { %>
|
2022-05-18 12:04:26 +02:00
|
|
|
<script>
|
|
|
|
// Redirect Excalidraw+ users which have auto-redirect enabled.
|
|
|
|
//
|
|
|
|
// Redirect only the bare root path, so link/room/library urls are not
|
|
|
|
// redirected.
|
|
|
|
//
|
|
|
|
// Putting into index.html for best performance (can't redirect on server
|
|
|
|
// due to location.hash checks).
|
|
|
|
if (
|
|
|
|
window.location.pathname === "/" &&
|
|
|
|
!window.location.hash &&
|
|
|
|
!window.location.search &&
|
|
|
|
// if its present redirect
|
|
|
|
document.cookie.includes("excplus-autoredirect=true")
|
|
|
|
) {
|
|
|
|
window.location.href = "https://app.excalidraw.com";
|
|
|
|
}
|
2024-07-25 18:55:55 +02:00
|
|
|
</script>
|
2024-07-30 10:34:40 +02:00
|
|
|
|
|
|
|
<!-- Following placeholder is replaced during the build step -->
|
|
|
|
<!-- PLACEHOLDER:EXCALIDRAW_APP_FONTS -->
|
|
|
|
|
2024-07-25 18:55:55 +02:00
|
|
|
<% } else { %>
|
|
|
|
<script>
|
|
|
|
window.EXCALIDRAW_ASSET_PATH = window.origin;
|
2022-05-18 12:04:26 +02:00
|
|
|
</script>
|
2024-07-25 18:55:55 +02:00
|
|
|
<% } %>
|
|
|
|
|
|
|
|
<!-- Register Assistant as the UI font, before the scene inits -->
|
|
|
|
<link
|
|
|
|
rel="stylesheet"
|
2024-10-21 00:11:53 +02:00
|
|
|
href="../packages/excalidraw/fonts/fonts.css"
|
2024-07-25 18:55:55 +02:00
|
|
|
type="text/css"
|
|
|
|
/>
|
|
|
|
|
2024-07-30 10:34:40 +02:00
|
|
|
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
|
|
|
|
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
|
|
|
|
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
|
|
|
|
|
|
|
|
<!-- Excalidraw version -->
|
|
|
|
<meta name="version" content="{version}" />
|
|
|
|
|
2024-03-28 14:58:47 +01:00
|
|
|
<% if (typeof VITE_APP_DEV_DISABLE_LIVE_RELOAD != 'undefined' &&
|
|
|
|
VITE_APP_DEV_DISABLE_LIVE_RELOAD == true) { %>
|
2022-07-02 17:59:03 +02:00
|
|
|
<script>
|
|
|
|
{
|
|
|
|
const _WebSocket = window.WebSocket;
|
|
|
|
window.WebSocket = function (url) {
|
|
|
|
if (/ws:\/\/localhost:.+?\/sockjs-node/.test(url)) {
|
|
|
|
console.info(
|
2023-07-27 20:20:11 +02:00
|
|
|
"[!!!] Live reload is disabled via VITE_APP_DEV_DISABLE_LIVE_RELOAD [!!!]",
|
2022-07-02 17:59:03 +02:00
|
|
|
);
|
|
|
|
} else {
|
|
|
|
return new _WebSocket(url);
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<% } %>
|
2021-02-21 16:38:30 +01:00
|
|
|
<script>
|
2021-03-21 13:43:52 +01:00
|
|
|
// setting this so that libraries installation reuses this window tab.
|
|
|
|
window.name = "_excalidraw";
|
2021-02-21 16:38:30 +01:00
|
|
|
</script>
|
2020-08-26 23:26:06 +02:00
|
|
|
|
|
|
|
<!-- FIXME: remove this when we update CRA (fix SW caching) -->
|
|
|
|
<style>
|
2021-04-27 12:46:30 +02:00
|
|
|
body,
|
|
|
|
html {
|
2020-09-25 23:18:45 +02:00
|
|
|
margin: 0;
|
|
|
|
-webkit-text-size-adjust: 100%;
|
2021-03-16 18:04:53 +01:00
|
|
|
|
2021-04-27 12:46:30 +02:00
|
|
|
width: 100%;
|
|
|
|
height: 100%;
|
2021-05-29 17:54:36 +02:00
|
|
|
overflow: hidden;
|
2020-09-25 23:18:45 +02:00
|
|
|
}
|
2020-08-26 23:26:06 +02:00
|
|
|
|
|
|
|
.visually-hidden {
|
|
|
|
position: absolute !important;
|
|
|
|
height: 1px;
|
|
|
|
width: 1px;
|
|
|
|
overflow: hidden;
|
|
|
|
clip: rect(1px, 1px, 1px, 1px);
|
2022-09-16 17:12:24 +02:00
|
|
|
white-space: nowrap;
|
2021-04-26 00:03:53 +02:00
|
|
|
user-select: none;
|
2020-08-26 23:26:06 +02:00
|
|
|
}
|
|
|
|
|
2021-04-04 11:35:16 +02:00
|
|
|
#root {
|
|
|
|
height: 100%;
|
2021-04-27 12:46:30 +02:00
|
|
|
-webkit-touch-callout: none;
|
|
|
|
-webkit-user-select: none;
|
|
|
|
-khtml-user-select: none;
|
|
|
|
-moz-user-select: none;
|
|
|
|
-ms-user-select: none;
|
|
|
|
user-select: none;
|
2022-04-15 18:21:41 +02:00
|
|
|
}
|
2021-04-27 12:46:30 +02:00
|
|
|
|
2022-04-15 18:21:41 +02:00
|
|
|
@media screen and (min-width: 1200px) {
|
|
|
|
#root {
|
2021-04-27 12:46:30 +02:00
|
|
|
-webkit-touch-callout: default;
|
|
|
|
-webkit-user-select: auto;
|
|
|
|
-khtml-user-select: auto;
|
|
|
|
-moz-user-select: auto;
|
|
|
|
-ms-user-select: auto;
|
|
|
|
user-select: auto;
|
|
|
|
}
|
2021-04-04 11:35:16 +02:00
|
|
|
}
|
2020-08-26 23:26:06 +02:00
|
|
|
</style>
|
2020-01-04 00:47:15 +01:00
|
|
|
</head>
|
2020-01-02 02:04:47 +01:00
|
|
|
|
2020-01-04 00:47:15 +01:00
|
|
|
<body>
|
2020-08-31 18:34:46 +02:00
|
|
|
<noscript> You need to enable JavaScript to run this app. </noscript>
|
2020-01-26 21:14:31 +01:00
|
|
|
<header>
|
|
|
|
<h1 class="visually-hidden">Excalidraw</h1>
|
|
|
|
</header>
|
2022-04-19 19:08:13 +02:00
|
|
|
<div id="root"></div>
|
2023-12-07 12:09:11 +01:00
|
|
|
<script type="module" src="index.tsx"></script>
|
2023-04-27 19:11:42 +02:00
|
|
|
<!-- 100% privacy friendly analytics -->
|
2023-06-19 11:18:28 +02:00
|
|
|
<script>
|
|
|
|
// need to load this script dynamically bcs. of iframe embed tracking
|
|
|
|
var scriptEle = document.createElement("script");
|
|
|
|
scriptEle.setAttribute(
|
|
|
|
"src",
|
|
|
|
"https://scripts.simpleanalyticscdn.com/latest.js",
|
|
|
|
);
|
|
|
|
scriptEle.setAttribute("type", "text/javascript");
|
|
|
|
scriptEle.setAttribute("defer", true);
|
|
|
|
scriptEle.setAttribute("async", true);
|
|
|
|
// if iframe
|
|
|
|
if (window.self !== window.top) {
|
|
|
|
scriptEle.setAttribute("data-auto-collect", true);
|
|
|
|
}
|
|
|
|
|
|
|
|
document.body.appendChild(scriptEle);
|
|
|
|
|
|
|
|
// if iframe
|
|
|
|
if (window.self !== window.top) {
|
|
|
|
scriptEle.addEventListener("load", () => {
|
|
|
|
if (window.sa_pageview) {
|
|
|
|
window.window.sa_event(action, {
|
|
|
|
category: "iframe",
|
|
|
|
label: "embed",
|
|
|
|
value: window.location.pathname,
|
|
|
|
});
|
|
|
|
}
|
|
|
|
});
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
<!-- end LEGACY GOOGLE ANALYTICS -->
|
2020-01-04 00:47:15 +01:00
|
|
|
</body>
|
|
|
|
</html>
|