From a486eafddb2088b2f51070c0ab8ca5b320e747ab Mon Sep 17 00:00:00 2001 From: Denny Lubitz Date: Mon, 24 Jul 2023 17:51:59 +0200 Subject: [PATCH] Fix js integration --- Resources/Private/Fusion/Root.fusion | 38 +++++++++++++++------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/Resources/Private/Fusion/Root.fusion b/Resources/Private/Fusion/Root.fusion index 5d96b93..41ef5e8 100644 --- a/Resources/Private/Fusion/Root.fusion +++ b/Resources/Private/Fusion/Root.fusion @@ -2,22 +2,26 @@ include: **/*.fusion prototype(Neos.Neos:Page) { - body { - javascripts.countUp = Neos.Fusion:Array { - lib = Neos.Fusion:Tag { - tagName = 'script' - src = Neos.Fusion:ResourceUri { - path = 'resource://VIVOMEDIA.CountUp/Public/JavaScript/countUpJs/countUp.js' - } - } - integration = Neos.Fusion:Tag { - tagName = 'script' - src = Neos.Fusion:ResourceUri { - path = 'resource://VIVOMEDIA.CountUp/Public/JavaScript/countUp.js' - } - } - @if.includeJavascript = ${Configuration.setting('VIVOMEDIA.CountUp.javascript.include') == true} - } - } + body { + javascripts.countUp = Neos.Fusion:Array { + lib = Neos.Fusion:Tag { + tagName = 'script' + attributes { + src = Neos.Fusion:ResourceUri { + path = 'resource://VIVOMEDIA.CountUp/Public/JavaScript/countUpJs/countUp.min.js' + } + } + } + integration = Neos.Fusion:Tag { + tagName = 'script' + attributes { + src = Neos.Fusion:ResourceUri { + path = 'resource://VIVOMEDIA.CountUp/Public/JavaScript/countUp.js' + } + } + } + @if.includeJavascript = ${Configuration.setting('VIVOMEDIA.CountUp.javascript.include') == true} + } + } }