forked from markus/AMPERION_Webpage
new
This commit is contained in:
commit
1d8da2b6dd
824 changed files with 76366 additions and 0 deletions
68
layouts/partials/script.html
Normal file
68
layouts/partials/script.html
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
|
||||
|
||||
<!-- JS Plugins + Main script -->
|
||||
{{ $scripts := slice }}
|
||||
{{ range site.Params.plugins.js}}
|
||||
{{ if findRE "^http" .link }}
|
||||
<script src="{{ .link | relURL }}" type="application/javascript" {{.attributes | safeHTMLAttr}}></script>
|
||||
{{ else }}
|
||||
{{ $scripts = $scripts | append (resources.Get .link) }}
|
||||
{{ end }}
|
||||
{{ end }}
|
||||
{{ $scripts := $scripts | append (resources.Get "js/script.js" | minify) }}
|
||||
{{ $scripts := $scripts | resources.Concat "js/script.js" | minify | fingerprint "sha512" }}
|
||||
<script crossorigin="anonymous" defer="defer" integrity="{{ $scripts.Data.Integrity }}" type="application/javascript">{{$scripts.Content | safeJS}}</script>
|
||||
|
||||
|
||||
|
||||
<script src="/tarteaucitron/tarteaucitron.js"></script>
|
||||
|
||||
<script type="text/javascript">
|
||||
tarteaucitron.init({
|
||||
"privacyUrl": "/datenschutz",
|
||||
"bodyPosition": "top",
|
||||
"hashtag": "#tarteaucitron",
|
||||
"cookieName": "tarteaucitron",
|
||||
"orientation": "top",
|
||||
|
||||
"groupServices": true,
|
||||
"showDetailsOnClick": false,
|
||||
"serviceDefaultState": "wait", // ← wichtig: wartet auf Nutzeraktion
|
||||
"showAlertSmall": false,
|
||||
"cookieslist": false,
|
||||
|
||||
"closePopup": false,
|
||||
"showIcon": true,
|
||||
"iconPosition": "BottomRight",
|
||||
|
||||
"adblocker": false,
|
||||
"DenyAllCta": false,
|
||||
"AcceptAllCta": true,
|
||||
"highPrivacy": true, // ← wichtig: kein Auto-Consent
|
||||
"alwaysNeedConsent": false,
|
||||
|
||||
"handleBrowserDNTRequest": false,
|
||||
"removeCredit": false,
|
||||
"moreInfoLink": true,
|
||||
"useExternalCss": false,
|
||||
"useExternalJs": false,
|
||||
|
||||
"mandatory": false, // ← notwendig, wenn man keine Pflicht-Cookies nutzt
|
||||
"mandatoryCta": false,
|
||||
|
||||
"googleConsentMode": true,
|
||||
"bingConsentMode": true,
|
||||
"softConsentMode": false,
|
||||
|
||||
"dataLayer": false,
|
||||
"serverSide": false,
|
||||
"partnersList": true
|
||||
});
|
||||
</script>
|
||||
|
||||
<script>
|
||||
tarteaucitron.user.matomoId = 2;
|
||||
(tarteaucitron.job = tarteaucitron.job || []).push('matomocloud');
|
||||
</script>
|
||||
|
||||
<script>tarteaucitron.user.matomoHost = 'https://matomo.amperion.at/';tarteaucitron.user.matomoCustomJSPath = 'JS_PATH';tarteaucitron.user.matomoDontTrackPageView = dontTrackPageView (false | true);tarteaucitron.user.matomoFullTracking = fullTracking (true | false);</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue