diff --git a/themes/hugo-theme-flat/layouts/partials/side-calendar.html b/themes/hugo-theme-flat/layouts/partials/side-calendar.html index 38fcd69..c6e84e4 100644 --- a/themes/hugo-theme-flat/layouts/partials/side-calendar.html +++ b/themes/hugo-theme-flat/layouts/partials/side-calendar.html @@ -1,6 +1,6 @@

Termine

-
diff --git a/themes/hugo-theme-flat/static/css/style.css b/themes/hugo-theme-flat/static/css/style.css index de94746..814248d 100644 --- a/themes/hugo-theme-flat/static/css/style.css +++ b/themes/hugo-theme-flat/static/css/style.css @@ -215,12 +215,17 @@ a.external:after { margin-bottom: 0; } +#calendar.loading{ + height: 100em; +} + #calendar .row { display: block; } #calendar .location{ margin-left: 0.25em; + cursor: pointer; } /********** set up break point **********/ diff --git a/themes/hugo-theme-flat/static/js/calendar.js b/themes/hugo-theme-flat/static/js/calendar.js index a407574..4fd0987 100644 --- a/themes/hugo-theme-flat/static/js/calendar.js +++ b/themes/hugo-theme-flat/static/js/calendar.js @@ -13,6 +13,8 @@ document.addEventListener("DOMContentLoaded", function () { let cal = JSON.parse(xmlHttp.responseText); let $ = jQuery; let box = $("#calendar"); + + box.removeClass("loading"); for (let item of cal) { let li = $("
  • "); //li.text(item.summary)