mirror of
https://github.com/pacnpal/thrillwiki_django_no_react.git
synced 2025-12-23 18:31:08 -05:00
remove backend
This commit is contained in:
22
templates/accounts/turnstile_widget.html
Normal file
22
templates/accounts/turnstile_widget.html
Normal file
@@ -0,0 +1,22 @@
|
||||
<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>
|
||||
Reference in New Issue
Block a user