example for typo3 integration

This commit is contained in:
Stefan Bühler 2024-12-30 22:29:00 +01:00
parent d8300e91cb
commit e2c371265d

29
example-typo3.html Normal file
View File

@ -0,0 +1,29 @@
<div
class="cte-events"
style="max-width: 800px; --cte-bg-color: transparent;"
data-cte-calendar-regex="Kalender"
data-cte-event-regex=""
data-cte-limit="5"
data-cte-days="365"
>
</div>
<script type="module">
const base_path = "/fileadmin";
const cal_path = base_path + "/cal";
const css1 = document.createElement("link");
css1.rel = "stylesheet";
css1.type = "text/css";
css1.href = cal_path + "/css/ct-events.css";
document.head.appendChild(css1);
const css2 = document.createElement("link");
css2.rel = "stylesheet";
css2.type = "text/css";
css2.href = cal_path + "/css/all.min.css"; // fontawesome
document.head.appendChild(css2);
import { load_all_events } from "/fileadmin/cal/js/ct-events.js";
await load_all_events({
instance: "https://example.krz.tools/",
default_image: base_path + "/img/logo.png",
// default_image_mobile: "...",
});
</script>