Fix script and style tags being outside the fragment (and thus rendering
All checks were successful
Build And Deploy / build-and-deploy (push) Successful in 1m32s
All checks were successful
Build And Deploy / build-and-deploy (push) Successful in 1m32s
before <html> tag)
This commit is contained in:
parent
e80bbb9619
commit
ffdeab097f
1 changed files with 121 additions and 116 deletions
|
|
@ -26,10 +26,15 @@ const phoneValue = pickValue("phone");
|
||||||
const msgValue = pickValue("msg");
|
const msgValue = pickValue("msg");
|
||||||
---
|
---
|
||||||
|
|
||||||
<script>
|
<Layout>
|
||||||
|
<title slot="head">Contact</title>
|
||||||
|
<script>
|
||||||
|
import Cap from "@cap.js/widget";
|
||||||
|
import "iconify-icon";
|
||||||
|
</script>
|
||||||
|
<script is:inline>
|
||||||
import Cap from "@cap.js/widget";
|
import Cap from "@cap.js/widget";
|
||||||
import "iconify-icon";
|
import "iconify-icon";
|
||||||
|
|
||||||
const captchaInput = document.querySelector("input[id='captcha']");
|
const captchaInput = document.querySelector("input[id='captcha']");
|
||||||
const captchaStatus = document.querySelector("#captchaStatus");
|
const captchaStatus = document.querySelector("#captchaStatus");
|
||||||
const statusText = captchaStatus?.querySelector("#statusText");
|
const statusText = captchaStatus?.querySelector("#statusText");
|
||||||
|
|
@ -76,8 +81,9 @@ const msgValue = pickValue("msg");
|
||||||
const { token } = await cap.solve();
|
const { token } = await cap.solve();
|
||||||
captchaInput.value = token;
|
captchaInput.value = token;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
<style>
|
|
||||||
|
<style>
|
||||||
form {
|
form {
|
||||||
display: grid;
|
display: grid;
|
||||||
row-gap: var(--stack-large);
|
row-gap: var(--stack-large);
|
||||||
|
|
@ -141,9 +147,8 @@ const msgValue = pickValue("msg");
|
||||||
transform: rotate(360deg);
|
transform: rotate(360deg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
<Layout>
|
|
||||||
<title slot="head">Contact</title>
|
|
||||||
<Fragment slot="content">
|
<Fragment slot="content">
|
||||||
<h2>Contact</h2>
|
<h2>Contact</h2>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue