diff --git a/js/chatling.js b/js/chatling.js deleted file mode 100644 index 20a818306d2d377604ab94f52230c827334660d9..0000000000000000000000000000000000000000 --- a/js/chatling.js +++ /dev/null @@ -1,11 +0,0 @@ -// docs/js/chatling.js -window.chtlConfig = { chatbotId: "7573492174" }; - -(function() { - const script = document.createElement('script'); - script.src = "https://chatling.ai/js/embed.js"; - script.id = "chatling-embed-script"; - script.async = true; - script.setAttribute("data-id", "7573492174"); - document.body.appendChild(script); -})(); diff --git a/mkdocs.yml b/mkdocs.yml index e53c75f5e173e3103542e143cf98e65584085abc..0a10a77bb8ba9f0e733a05d559b777b1cafacdd7 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -7,7 +7,6 @@ extra_css: extra_javascript: - https://unpkg.com/mermaid@10.1.0/dist/mermaid.min.js - - js/chatling.js # Repository repo_name: sccs/docs.it4i.cz @@ -331,6 +330,12 @@ extra: link: 'https://code.it4i.cz/sccs/docs.it4i.cz' - icon: 'fontawesome/solid/globe' link: 'https://www.it4i.cz' + head: + - | + <script> + window.chtlConfig = { chatbotId: "7573492174" }; + </script> + <script async data-id="7573492174" id="chatling-embed-script" type="text/javascript" src="https://chatling.ai/js/embed.js"></script> plugins: - search: