I'm hoping someone can help me. Tockify is our school calendar. To get it working on our website, they have supplied this code:
<div data-tockify-component="mini" data-tockify-calendar="kennet"></div>
<script data-cfasync="false" data-tockify-script="embed" src=https://public.tockify.com/browser/embed.js></script>
Frog blocks this from running, but Graham was able to adapt it:
<script>
var tockifyScript = document.createElement('script');
tockifyScript.setAttribute('data-tockify-script','embed');
tockifyScript.setAttribute('data-cfasync',false);
tockifyScript.src = "https://public.tockify.com/browser/embed.js";
document.head.appendChild(tockifyScript);
</script>
<div data-tockify-component="mini" data-tockify-calendar="kennet"></div>
Which works the first time it loads, but if I edit the site its on, it no longer appears.
Can anyone see how to adapt the code to always work, even if the site is edited?