Merge branch 'master' of ssh://git.c3re.de:2222/c3re/c3re-website

master
Goldwaage 2024-02-12 20:38:45 +01:00
commit 2109fddeac
4 changed files with 11 additions and 1 deletions

View File

@ -1,6 +1,6 @@
<div class="side-calendar"> <div class="side-calendar">
<h2>Termine</h2> <h2>Termine</h2>
<ul id="calendar"> <ul id="calendar" class="loading">
<br> <br>
<a href="https://cloud.c3re.de/apps/calendar/p/RLKKkdjNYgXH8yEz/dayGridMonth/now">Zum Kalender</a> <a href="https://cloud.c3re.de/apps/calendar/p/RLKKkdjNYgXH8yEz/dayGridMonth/now">Zum Kalender</a>
<br> <br>

View File

@ -13,6 +13,9 @@
<a class="icon" href="https://chaos.social/@c3re"><img alt="Mastodon" src="/img/mastodon.png" /></a> <a class="icon" href="https://chaos.social/@c3re"><img alt="Mastodon" src="/img/mastodon.png" /></a>
<a class="icon" href="https://github.com/orgs/c3re"><img alt="Github" src="/img/github.png" /></a> <a class="icon" href="https://github.com/orgs/c3re"><img alt="Github" src="/img/github.png" /></a>
</li> </li>
<li>
<a href="/kontakt/#anreise">Anreise</a>
</li>
</ul> </ul>
</div> </div>

View File

@ -215,12 +215,17 @@ a.external:after {
margin-bottom: 0; margin-bottom: 0;
} }
#calendar.loading{
height: 100em;
}
#calendar .row { #calendar .row {
display: block; display: block;
} }
#calendar .location{ #calendar .location{
margin-left: 0.25em; margin-left: 0.25em;
cursor: pointer;
} }
/********** set up break point **********/ /********** set up break point **********/

View File

@ -13,6 +13,8 @@ document.addEventListener("DOMContentLoaded", function () {
let cal = JSON.parse(xmlHttp.responseText); let cal = JSON.parse(xmlHttp.responseText);
let $ = jQuery; let $ = jQuery;
let box = $("#calendar"); let box = $("#calendar");
box.removeClass("loading");
for (let item of cal) { for (let item of cal) {
let li = $("<li/>"); let li = $("<li/>");
//li.text(item.summary) //li.text(item.summary)