File tree Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Expand file tree Collapse file tree 2 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 1313
1414 {{template "base/footer_content" .}}
1515
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}}
2816 <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>
2917
3018 {{template "custom/footer" .}}
Original file line number Diff line number Diff line change 1111 <div class="inline field required">
1212 <div id="captcha" data-captcha-type="g-recaptcha" class="g-recaptcha-style" data-sitekey="{{.RecaptchaSitekey}}"></div>
1313 </div>
14+ <script src='{{URLJoin .RecaptchaURL "api.js"}}'></script>
1415{{else if eq .CaptchaType "hcaptcha"}}
1516 <div class="inline field required">
1617 <div id="captcha" data-captcha-type="h-captcha" class="h-captcha-style" data-sitekey="{{.HcaptchaSitekey}}"></div>
1718 </div>
19+ <script src='https://hcaptcha.com/1/api.js'></script>
1820{{else if eq .CaptchaType "mcaptcha"}}
1921 <div class="inline field">
2022 <label></label>
2527 <div class="inline field gt-text-center">
2628 <div id="captcha" data-captcha-type="cf-turnstile" data-sitekey="{{.CfTurnstileSitekey}}"></div>
2729 </div>
30+ <script src='https://challenges.cloudflare.com/turnstile/v0/api.js'></script>
2831{{end}}{{end}}
You can’t perform that action at this time.
0 commit comments