aboutsummaryrefslogtreecommitdiff
path: root/test/example/index.html
diff options
context:
space:
mode:
authorHayleigh Thompson <me@hayleigh.dev>2023-04-27 21:52:15 +0100
committerHayleigh Thompson <me@hayleigh.dev>2023-04-27 21:52:15 +0100
commit10bc93f41efdd9aab25e1e0d29b02b3b961158c5 (patch)
tree9d9c8fc3daf61326b7ebe4781be8d58e7dc8444a /test/example/index.html
parent19ec0b446041f77a623e574656442c76d75107ae (diff)
downloadlustre-3.0.0-rc.1.tar.gz
lustre-3.0.0-rc.1.zip
:bookmark: Code for 3.0.0-rc.13.0.0-rc.1
Diffstat (limited to 'test/example/index.html')
-rw-r--r--test/example/index.html52
1 files changed, 26 insertions, 26 deletions
diff --git a/test/example/index.html b/test/example/index.html
index f7432b9..da38644 100644
--- a/test/example/index.html
+++ b/test/example/index.html
@@ -1,37 +1,37 @@
<!DOCTYPE html>
<html lang="en" hidden>
-
-<head>
- <meta charset="UTF-8">
- <meta http-equiv="X-UA-Compatible" content="IE=edge">
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <head>
+ <meta charset="UTF-8" />
+ <meta http-equiv="X-UA-Compatible" content="IE=edge" />
+ <meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Document</title>
<script type="module">
- // `example` is set up as an alias in our `package.json` to point to
- // some of Gleam's build artifacts.
- import { main } from 'example/main.mjs'
+ // `example` is set up as an alias in our `package.json` to point to
+ // some of Gleam's build artifacts.
+ import { main } from "example/src/main.mjs";
- document.addEventListener('DOMContentLoaded', main)
+ document.addEventListener("DOMContentLoaded", main);
- // This is so dumb. Parcel refuses to work with https imports, and when
- // we try to use a script tag it "helpfully" strips the `type="module"`
- // attribute meaning the shim doesn't work anyway.
- //
- // Here we're manually creating the script and setting its source using
- // a string to stop parcle meddling with it. It works but,, eesh.
- document.querySelector('head').appendChild((() => {
- const script = document.createElement('script')
- script.type = 'module'
- script.innerHTML = `import 'https://cdn.skypack.dev/twind/shim'`
+ // This is so dumb. Parcel refuses to work with https imports, and when
+ // we try to use a script tag it "helpfully" strips the `type="module"`
+ // attribute meaning the shim doesn't work anyway.
+ //
+ // Here we're manually creating the script and setting its source using
+ // a string to stop parcle meddling with it. It works but,, eesh.
+ document.querySelector("head").appendChild(
+ (() => {
+ const script = document.createElement("script");
+ script.type = "module";
+ script.innerHTML = `import 'https://cdn.skypack.dev/twind/shim'`;
- return script
- })())
+ return script;
+ })()
+ );
</script>
-</head>
+ </head>
-<body class="bg-gray-100 mx-8 md:mx-32 lg:mx-64">
+ <body class="bg-gray-100 mx-8 md:mx-32 lg:mx-64">
<div data-lustre-container class="prose lg:prose-xl p-8"></div>
-</body>
-
-</html> \ No newline at end of file
+ </body>
+</html>