Add Zammad script to site #1
1 changed files with 17 additions and 0 deletions
17
layouts/_partials/head/scripts.html
Normal file
17
layouts/_partials/head/scripts.html
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
{{ if eq .Name "Contact" }}
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
|
||||
<script
|
||||
id="zammad_form_script"
|
||||
src="https://help.sr2.uk/assets/form/form.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
$("#zammad-feedback-form").ZammadForm({
|
||||
agreementMessage: {{ site.Params.feedback.agreementMessage }},
|
||||
messageSubmit:{{ site.Params.feedback.messageSubmit }},
|
||||
messageThankYou:{{ site.Params.feedback.messageThankYou }},
|
||||
showTitle: false,
|
||||
noCSS: true,
|
||||
});
|
||||
});
|
||||
</script>
|
||||
{{ end }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue