-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
109 lines (94 loc) · 2.74 KB
/
index.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
105
106
107
108
109
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Experiment</title>
<style>
main {
padding: 0px;
background: lightblue;
text-align: center;
}
menu {
background-color: lightblue;
position: fixed;
padding-left: 0;
padding-right: 0;
bottom: 0;
margin: 0;
left: 0;
right: 0;
}
main h1 {
margin: 0;
}
main h2 {
font-weight: lighter;
text-align: center;
margin: 0;
font-size: 80%;
}
simplecode {
font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New;
}
sc {
background-color: #EEEEEE;
font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New;
}
TASK {
font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New;
position: fixed;
top: 30px;
right: 10px;
}
STATE {
font-family: Consolas, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New;
position: fixed;
top: 10px;
right: 10px;
}
STAGE {
}
</style>
</head>
<body>
<main>
<h1>
<simplecode>Experimente</simplecode>
</h1>
<h2>
<simplecode>EMSE - Sommersemester 2024</simplecode>
</h2>
<p>
<STATE id="STATE"></STATE>
</p>
<p>
<TASK id="TASK"></TASK>
</p>
</main>
<div id="experiments" style="text-align: center; padding: 20px;"></div>
</body>
</html>
<script>
const baseLink = "https://htmlpreview.github.io/?https://raw.githubusercontent.com/CodeSippr/EMSE/main/";
const experiments = [{
name: "Case Experiment with Java Code",
link: "case_java_code/",
}, {
name: "Case Experiment mit Funktionsaufrufen",
link: "case_function_call/",
}, {
name: "Case Experiment Wörter zählen",
link: "case_count_words/",
}, {
name: "Code Indentation",
link: "indentation/",
}];
const experimentsDiv = document.getElementById("experiments");
experiments.forEach(experiment => {
const experimentDiv = document.createElement("div");
experimentDiv.style.margin = "10px";
experimentDiv.innerHTML = `<a href="${baseLink}${experiment.link}index.html">${experiment.name}</a>`;
experimentsDiv.appendChild(experimentDiv);
})
</script>