File tree 2 files changed +3
-12
lines changed
2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 13
13
14
14
{{template "base/footer_content" .}}
15
15
16
- <!-- Third-party libraries -->
17
- {{if .EnableCaptcha}}
18
- {{if eq .CaptchaType "recaptcha"}}
19
- <script src='{{URLJoin .RecaptchaURL "api.js"}}'></script>
20
- {{end}}
21
- {{if eq .CaptchaType "hcaptcha"}}
22
- <script src='https://hcaptcha.com/1/api.js'></script>
23
- {{end}}
24
- {{if eq .CaptchaType "cfturnstile"}}
25
- <script src='https://challenges.cloudflare.com/turnstile/v0/api.js'></script>
26
- {{end}}
27
- {{end}}
28
16
<script src="{{AssetUrlPrefix}}/js/index.js?v={{AssetVersion}}" onerror="alert('Failed to load asset files from ' + this.src + '. Please make sure the asset files can be accessed.')"></script>
29
17
30
18
{{template "custom/footer" .}}
Original file line number Diff line number Diff line change 11
11
<div class="inline field required">
12
12
<div id="captcha" data-captcha-type="g-recaptcha" class="g-recaptcha-style" data-sitekey="{{.RecaptchaSitekey}}"></div>
13
13
</div>
14
+ <script src='{{URLJoin .RecaptchaURL "api.js"}}'></script>
14
15
{{else if eq .CaptchaType "hcaptcha"}}
15
16
<div class="inline field required">
16
17
<div id="captcha" data-captcha-type="h-captcha" class="h-captcha-style" data-sitekey="{{.HcaptchaSitekey}}"></div>
17
18
</div>
19
+ <script src='https://hcaptcha.com/1/api.js'></script>
18
20
{{else if eq .CaptchaType "mcaptcha"}}
19
21
<div class="inline field">
20
22
<label></label>
25
27
<div class="inline field gt-text-center">
26
28
<div id="captcha" data-captcha-type="cf-turnstile" data-sitekey="{{.CfTurnstileSitekey}}"></div>
27
29
</div>
30
+ <script src='https://challenges.cloudflare.com/turnstile/v0/api.js'></script>
28
31
{{end}}{{end}}
You can’t perform that action at this time.
0 commit comments