now even with proper tag closings!

This commit is contained in:
2025-08-27 17:53:26 +02:00
parent 56b717cfab
commit ac4268c0c7

View File

@@ -76,25 +76,21 @@ pub(super) async fn index(cookies: CookieJar, headers: HeaderMap) -> Markup {
h2 { (t!("calendar")) }
// Initial options shown to user
div #calendar-options .calendar-options {
p { (t!("cal_options"))" }
p { (t!("cal_options")) }
// Direct link option (privacy-first)
a href="https://calendar.google.com/calendar/embed?height=600&wkst=2&ctz=Europe%2FVienna&showPrint=0&showTz=0&showCalendars=0&showTabs=0&showDate=0&showNav=0&showTitle=0&mode=AGENDA&hl=en&src=YjA4NTZlZDUyZDAwNmY3ZTczNTgxYTk2NjI4MjFjMDZhYWJkZjUzMDBkMjZmMDZiOWFiYzg2YWE3YzBhNzFlNkBncm91cC5jYWxlbmRhci5nb29nbGUuY29t&color=%23d50000"
target="_blank"
rel="noopener noreferrer"
class="calendar-link" {
(t!("cal_new_tab"))
}
}
// Embed option
button #embed-calendar .embed-button {
(t!("cal_show_here"))
}
}
// iframe initially without src attribute
iframe #google-calendar
data-src="https://calendar.google.com/calendar/embed?height=600&wkst=2&ctz=Europe%2FVienna&showPrint=0&showTz=0&showCalendars=0&showTabs=0&showDate=0&showNav=0&showTitle=0&mode=AGENDA&hl=en&src=YjA4NTZlZDUyZDAwNmY3ZTczNTgxYTk2NjI4MjFjMDZhYWJkZjUzMDBkMjZmMDZiOWFiYzg2YWE3YzBhNzFlNkBncm91cC5jYWxlbmRhci5nb29nbGUuY29t&color=%23d50000"
width="100%"
@@ -103,7 +99,6 @@ pub(super) async fn index(cookies: CookieJar, headers: HeaderMap) -> Markup {
scrolling="no"
class="hidden" {}
// Inline JavaScript
script {
(PreEscaped(r#"
document.addEventListener('DOMContentLoaded', function() {
@@ -125,8 +120,6 @@ pub(super) async fn index(cookies: CookieJar, headers: HeaderMap) -> Markup {
});
"#))
}
})
}