-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
95 lines (87 loc) · 3.68 KB
/
index.html
File metadata and controls
95 lines (87 loc) · 3.68 KB
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
<!DOCTYPE html>
<html lang="de">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>GVT Aufgaben - Marla Reuter</title>
<link rel="stylesheet" href="css/general.css">
</head>
<body>
<div class="header">
<h1>Graphical Visualisation Technologies</h1>
<p>Marla Reuter • Matrikelnummer: 257976 • WS 2025/26</p>
</div>
<div class="tabs">
<button class="tab active" onclick="showTab('ea1')" title="Interaktiv animierte Scheibe">EA1</button>
<button class="tab" onclick="showTab('ea2')" title="2D Geometrie aus Linien">EA2</button>
<button class="tab" onclick="showTab('ea3')" title="Farbig gefüllte 2D Geometrie">EA3</button>
<button class="tab" onclick="showTab('ea4')" title="Parametrisierte Flächen">EA4</button>
<button class="tab" onclick="showTab('ea5')" title="Kamerabewegung">EA5</button>
<button class="tab" onclick="showTab('ea6')" title="Objekte bewegen - Fliegende Kugeln">EA6</button>
<button class="tab" onclick="showTab('ea7')" title="Z-Buffer Visualisierung">EA7</button>
<button class="tab" onclick="showTab('ea8')" title="Lichter auf einer Kreisbahn mit Toon Shading">EA8</button>
<button class="tab" onclick="showTab('ea9')" title="Torustextur">EA9</button>
<button class="tab" onclick="showTab('ea10')" title="Seeds Daten in 3D">EA10</button>
</div>
<div class="content">
<div id="ea1" class="tab-content active">
<iframe src="EA1/index.html"></iframe>
</div>
<div id="ea2" class="tab-content">
<iframe src="EA2/index.html"></iframe>
</div>
<div id="ea3" class="tab-content">
<iframe src="EA3/index.html"></iframe>
</div>
<div id="ea4" class="tab-content">
<iframe src="EA4/index.html"></iframe>
</div>
<div id="ea5" class="tab-content">
<iframe src="EA5/index.html"></iframe>
</div>
<div id="ea6" class="tab-content">
<iframe src="EA6/index.html"></iframe>
</div>
<div id="ea7" class="tab-content">
<iframe src="EA7/index.html"></iframe>
</div>
<div id="ea8" class="tab-content">
<iframe src="EA8/index.html"></iframe>
</div>
<div id="ea9" class="tab-content">
<iframe src="EA9/index.html"></iframe>
</div>
<div id="ea10" class="tab-content">
<iframe src="EA10/index.html"></iframe>
</div>
</div>
<script>
function showTab(tabName) {
var tabs = document.querySelectorAll('.tab');
var contents = document.querySelectorAll('.tab-content');
for (var i = 0; i < tabs.length; i++) {
tabs[i].classList.remove('active');
}
for (var i = 0; i < contents.length; i++) {
contents[i].classList.remove('active');
}
document.getElementById(tabName).classList.add('active');
// Tab-Button aktivieren
var buttons = document.querySelectorAll('.tab');
for (var i = 0; i < buttons.length; i++) {
if (buttons[i].onclick.toString().includes(tabName)) {
buttons[i].classList.add('active');
}
}
}
// Beim Laden: URL-Parameter auslesen
window.addEventListener('load', function() {
var urlParams = new URLSearchParams(window.location.search);
var tab = urlParams.get('tab');
if (tab && document.getElementById(tab)) {
showTab(tab);
}
});
</script>
</body>
</html>