summaryrefslogtreecommitdiff
path: root/index.html
blob: ae60c679c6ba80f34180a5df5b6b3cd5316256d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
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 %}