forked from markus/AMPERION_Webpage
68 lines
2.4 KiB
HTML
68 lines
2.4 KiB
HTML
|
|
|
||
|
|
|
||
|
|
<!-- 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>
|