diff options
| author | kj_sh604 | 2026-03-15 16:19:35 -0400 |
|---|---|---|
| committer | kj_sh604 | 2026-03-15 16:19:35 -0400 |
| commit | 225db4a7805befe009fe055fc2ef5daedd6c04f9 (patch) | |
| tree | a5b0d073daabaadceb2f5c1b18640d785b5a9c71 /examples/with-script-in-browser/index.html | |
| parent | 8ff10d2bf233608b027f8503cb9c7100c9ee3f16 (diff) | |
refactor: examples/
Diffstat (limited to 'examples/with-script-in-browser/index.html')
| -rw-r--r-- | examples/with-script-in-browser/index.html | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/examples/with-script-in-browser/index.html b/examples/with-script-in-browser/index.html new file mode 100644 index 0000000..dbbc4ca --- /dev/null +++ b/examples/with-script-in-browser/index.html @@ -0,0 +1,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> |
