Huhu zusammen,
ich soll in einer Seite ein ekomi Widget einbinden. Der Code dazu ist folgender (Anmerkung: hab die certId geändert, es wird also nix angezeigt):
HTML-Code:
<!-- eKomiSeal START -->
<div id="eKomiSeal_default"></div>
<!-- eKomiSeal END -->
<!-- eKomiLoader START, only needed once per page -->
<script type="text/javascript">
(function(){
eKomiIntegrationConfig = new Array(
{certId:'xxxxxxx'}
);
if(typeof eKomiIntegrationConfig != "undefined"){for(var eKomiIntegrationLoop=0;eKomiIntegrationLoop<eKomiIntegrationConfig.length;eKomiIntegrationLoop++){
var eKomiIntegrationContainer = document.createElement('script');
eKomiIntegrationContainer.type = 'text/javascript'; eKomiIntegrationContainer.defer = true;
eKomiIntegrationContainer.src = (document.location.protocol=='https:'?'https:':'http:') +"//connect.ekomi.de/integration_1391672697/" + eKomiIntegrationConfig[eKomiIntegrationLoop].certId + ".js";
document.getElementsByTagName("head")[0].appendChild(eKomiIntegrationContainer);
}}else{if('console' in window){ console.error('connectEkomiIntegration - Cannot read eKomiIntegrationConfig'); }}
})();
</script>
<!-- eKomiLoader END, only needed once per page -->
Nun wird allerdings der Code ab der Stelle <eKomiIntegrationConfig.length; abgeschnitten. Ich gehe davon aus, dass das mit den verbotenen html tags zusammen hängt und ich dafür eine Ausnahme hinzufügen müsste - aber letzten Endes handelt es sich hier ja eben um keinen tag, sondern um anderen Code. Ich wüsste also nicht, wie eine solche Ausnahme aussehen sollte, da sich kein "tag" eingrenzen lässt.
Die Alternative dazu wäre, eine html Datei mit dem Widget hochzuladen und dann an entsprechender Stelle in die Seite einzubinden; allerdings wäre mir eine Lösung direkt aus Contao lieber.
Gibts irgendwelche Ideen?
Besten Dank im Voraus und viele Grüße!
Lesezeichen