summaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorhorus2021-03-15 20:15:28 +0100
committerhorus2021-03-15 20:15:28 +0100
commit0eb2ede2855287eb77a5f2108afb14be5e413b53 (patch)
tree3eed47eb355a2396bca3ea768cfd5b0b3e5d7501 /index.html
parent31e3467e8550e4b6a5bfccbd0ae576d2455dce8a (diff)
downloadzeitumstellung-0eb2ede2855287eb77a5f2108afb14be5e413b53.tar.gz
Inline page in website
Diffstat (limited to 'index.html')
-rw-r--r--index.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..ae60c67
--- /dev/null
+++ b/index.html
@@ -0,0 +1,52 @@
+{% extends "snippets/layout.html" %}
+
+{% block description %}
+ Wann ist Zeitumstellung zur {{ tc.season }}? | Maximilian Möhring
+{% endblock %}
+
+{% block title "Zeitumstellung | Maximilian Möhring" %}
+
+{% block css %}
+ .main {
+ font-size: 1.25rem;
+ }
+ a.btn {
+ margin-top: 0.75rem;
+ color: inherit !important;
+ text-decoration: none;
+ font-size: 1.25rem;
+ }
+{% endblock %}
+
+{% block main %}
+<div class="container" id="index">
+ <div class="flavor-text">
+ <h1>Wann ist Zeitumstellung zur {{ tc.season }}?</h1>
+ </div>
+ <p>
+ Nächste Zeitumstellung ist am <b>{{ tc.day }}. {{ tc.monthText }} {{ tc.year }}</b>, also in <b>{{ tc.daysuntil }} Tagen</b>.
+ <br>
+ {{ tc.descriptionHTML|raw }}
+ </p>
+
+ <p>
+ Sie können folgenden Kalender in Ihre Software einbinden: <br>
+ <a class="btn btn-primary" href="webcal://www.maximilianmoehring.com/feed/zeitumstellung/" title="Link in der Kalender-App öffnen">Link in der Kalender-App öffnen</a>
+ <a class="btn btn-primary" href="/feed/zeitumstellung/?download=1" title="Link zum iCal-Kalender">Kalender-Datei downloaden</a>
+ </p>
+ <script>
+ if ('serviceWorker' in navigator){
+ navigator.serviceWorker.register('serviceworker.js').then(function(registration){
+ console.log('ServiceWorker registration successful with scope: ', registration.scope);
+ }).catch(function(err){
+ console.log('ServiceWorker registration failed: ', err);
+ });
+ } else {
+ console.log('no service worker found. offline access is not granted.');
+ }
+ window.addEventListener('online', () => {
+ location.reload();
+ });
+ </script>
+</div>
+{% endblock %}