6
0
Fork 0

prevent non filles side from reaching anchor

master
Dirk Heilig 2024-02-12 19:27:59 +01:00
parent 1f08fb74b0
commit 750388e67c
3 changed files with 7 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

@ -212,6 +212,10 @@ a.external:after {
margin-bottom: 0; margin-bottom: 0;
} }
#calendar.loading{
height: 100em;
}
#calendar .row { #calendar .row {
display: block; display: block;
} }

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)