-
Notifications
You must be signed in to change notification settings - Fork 0
/
vorlesungskommentargenerator.html
104 lines (87 loc) · 3.8 KB
/
vorlesungskommentargenerator.html
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Vorlesungsverzeichniskommentar-Generator</title>
<link rel="stylesheet" type="text/css" href="kom_gen.css"/>
<script type="text/javascript">
var i = 0;
var svg_rects = document.getElementsByTagName('rect');
function display_rect(number)
{
if(number <= svg_rects.length)
{ svg_rects[number].style.display = 'inline'; }
}
function hide_rect(number)
{
if(number >= 0)
{ svg_rects[number].style.display = 'none'; }
}
function progress_animation ()
{
document.getElementById('svg_progress').style.display = 'inline';
setTimeout(function () {
display_rect(i);
i++;
if (i < svg_rects.length)
{ progress_animation(); }
else if (i == svg_rects.length)
{
i--;
de_progress_animation();
}
}, 150)
}
function de_progress_animation ()
{
setTimeout(function () {
hide_rect(i);
i--;
if (i >= 0)
{ de_progress_animation(); }
else
{
i = 0;
progress_animation();
}
}, 150)
}
</script>
</head>
<body>
<h1>Der
<span class="margin">Vorlesungsverzeichniskommentar-</span>
Generator</h1>
<h2>für mittelalterliche Geschichte</h2>
<p>Keine Lust, jedes Semester etwas Neues zu schreiben? Einfach ein Schlagwort eingeben
und alles weitere den Generator machen lassen!
Noch nie gingen Vorlesungsverzeichniskommentare so schnell.</p>
<form id="genator_form" action="kommentar_generator.php" method="get" accept-charset="UTF-8" onsubmit="progress_animation()">
<!-- -->
<div>
<p>Schlagwort:<br/><input name="keyword" id="keyword" autofocus="keyword"/></p>
<p>Veranstaltungsart:
<br/>
<input type="radio" name="kind_of_seminar" value="Übung" checked="checked"/> Übung |
<input type="radio" name="kind_of_seminar" value="Proseminar"/> Proseminar |
<input type="radio" name="kind_of_seminar" value="Hauptseminar"/> Hauptseminar |
<input type="radio" name="kind_of_seminar" value="Vorlesung"/> Vorlesung
</p>
<p>
<input type="submit" value="Generieren!" class="button"/>
<svg width="200" height="20" style="display:none;" id="svg_progress">
<rect x="20" width="20" height="20" style="fill:blue;display:none;" />
<rect x="50" width="20" height="20" style="fill:blue;display:none;" />
<rect x="80" width="20" height="20" style="fill:blue;display:none;" />
<rect x="110" width="20" height="20" style="fill:blue;display:none;" />
</svg>
</p>
</div>
</form>
<!--OUTPUTHERE-->
<hr/>
<p class="small">(Erstellt von <a href="mailto:[email protected]">Christian Schwaderer</a> unter Nutzung von
Wikipedia/<a href="http://de.dbpedia.org/">DBpedia</a>-de-Daten.)</p>
</body>
</html>