Set styles on turnstile div
This commit is contained in:
parent
abe5632c30
commit
d68687f0af
@ -1,13 +1,13 @@
|
|||||||
export async function onRequestGet(context: RequestContext) {
|
export async function onRequestGet(context: RequestContext) {
|
||||||
return new Response(
|
return new Response(
|
||||||
`<!DOCTYPE html>
|
`<!DOCTYPE html>
|
||||||
<html lang="en" style="width: 90%; translate(5%);">
|
<html lang="en">
|
||||||
<head>
|
<head>
|
||||||
<title>WebView Captcha</title>
|
<title>WebView Captcha</title>
|
||||||
<script async defer src="https://challenges.cloudflare.com/turnstile/v0/api.js"></script>
|
<script async defer src="https://challenges.cloudflare.com/turnstile/v0/api.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div class="cf-turnstile" data-callback="returnToken" data-error-callback="handleError" data-sitekey="${context.env.TURNSTILE_SITEKEY}"></div>
|
<div class="cf-turnstile" data-callback="returnToken" data-error-callback="handleError" data-sitekey="${context.env.TURNSTILE_SITEKEY}" style="width: 90%; translate(5%);"></div>
|
||||||
<script>
|
<script>
|
||||||
function handleError(error) {
|
function handleError(error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user