aboutsummaryrefslogtreecommitdiffstats
path: root/examples/with-script-in-browser/index.html
blob: dbbc4ca2185c0e5464f5f1745ec16fba17b11ebd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta
      name="viewport"
      content="width=device-width, initial-scale=1, shrink-to-fit=no"
    />
    <meta name="theme-color" content="#000000" />

    <title>React App</title>
    <script>
      window.name = "codesandbox";
      window.EXCALIDRAW_ASSET_PATH =
        "https://esm.sh/@excalidraw/excalidraw@0.18.0/dist/prod/";
    </script>
  </head>

  <body>
    <noscript> You need to enable JavaScript to run this app. </noscript>
    <div id="root"></div>

    <script type="module">
      import * as ExcalidrawLib from "@excalidraw/excalidraw";

      console.log(ExcalidrawLib);
      window.ExcalidrawLib = ExcalidrawLib;
    </script>
    <script type="module" src="index.tsx"></script>
  </body>
</html>