-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.gohtml
68 lines (68 loc) · 1.99 KB
/
index.gohtml
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
<!DOCTYPE html>
<title>Raster Mimimi</title>
<style>
html, body {
font-family: sans-serif;
font-size: 0.9em;
}
@media (prefers-color-scheme: dark) {
html, body {
background-color: black;
color: lightgray;
}
:link, :visited {
color: #02c9bf;
}
}
article {
border: 1px solid gray;
padding: 1em;
margin-bottom: 0.5em;
}
section {
margin-left: 2em;
}
section.lead {
font-size: 1.5em;
margin-left: 0;
}
</style>
<script>
window.onbeforeprint = function(event) {
document.body.style.display = 'none';
window.alert('ja nid usdrucke!, so vowäge umwäut!')
};
window.onafterprint = function(event) {
document.body.style.display = ''
};
</script>
<h1>technisches Programmraster Mimimi</h1>
<nav><a href="/refresh">Refresh...</a> | <a href="#" onclick="alert('ja nid usdrucke!, so vowäge umwäut!')">Drucken...</a> | <a href="https://github.com/radiorabe/rastermimimi">GitHub...</a></nav>
<p>Dieses Tool hat in den nächsten 60 Tagen {{.|len}} Mimimis gefunden.</p>
{{$otime := "02 Jan 2006 15:04:05"}}
{{range .}}
{{$time := .Time.Format "02 Jan 2006 15:04:05"}}
{{if ne $time $otime}}
<hr>
<h2>{{$time}}</h2>
{{end}}
<article>
<section class="lead">{{.Message}}</section>
<!-- {{.}} -->
{{if .Slot.WebsiteEventOrganizerCalendarEvent.Title}}
<section>
<h3>Web: {{.Slot.WebsiteEventOrganizerCalendarEvent.Title}}</h3>
<p>{{.Slot.WebsiteEventOrganizerCalendarEvent.Start.Format "02 Jan 2006 15:04:05"}} - {{.Slot.WebsiteEventOrganizerCalendarEvent.End.Format "02 Jan 2006 15:04:05"}}</p>
<p><b>URL:</b> <code>{{.Slot.WebsiteEventOrganizerCalendarEvent.URL}}</code></p>
</section>
{{end}}
{{if .Slot.LibreTimeLiveInfoV2Show.Name}}
<section>
<h3>LibreTime: {{.Slot.LibreTimeLiveInfoV2Show.Name}}</h3>
<p>{{.Slot.LibreTimeLiveInfoV2Show.Starts.Format "02 Jan 2006 15:04:05"}} - {{.Slot.LibreTimeLiveInfoV2Show.Ends.Format "02 Jan 2006 15:04:05"}}</p>
<p><b>URL:</b> <code>{{.Slot.LibreTimeLiveInfoV2Show.URL}}</code></p>
</section>
{{end}}
</article>
{{$otime = $time}}
{{end}}