mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-20 10:31:09 -05:00
23 lines
551 B
HTML
23 lines
551 B
HTML
<script
|
|
src="https://challenges.cloudflare.com/turnstile/v0/api.js"
|
|
async
|
|
defer
|
|
></script>
|
|
<div class="turnstile">
|
|
<div
|
|
id="turnstile-widget"
|
|
class="cf-turnstile"
|
|
data-sitekey="{{ site_key }}"
|
|
></div>
|
|
</div>
|
|
|
|
<script>
|
|
// Apply theme to the Turnstile widget based on the retrieved theme
|
|
document.addEventListener("DOMContentLoaded", function () {
|
|
const turnstileWidget = document.getElementById("turnstile-widget");
|
|
if (turnstileWidget) {
|
|
turnstileWidget.setAttribute("data-theme", theme);
|
|
}
|
|
});
|
|
</script>
|