-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
89 lines (79 loc) · 5.16 KB
/
Copy pathindex.html
File metadata and controls
89 lines (79 loc) · 5.16 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>BBB Planner</title>
<link rel="icon" type="image/x-icon" href="./assets/favicon.ico">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
</head>
<body>
<!-- Class Switcher -->
<div id="class-switcher"></div>
<div id="next-session"></div>
<table id="timetable">
<thead>
<tr>
<th>Datum</th>
<th>Form</th>
<th>Modul</th>
</tr>
</thead>
<tbody></tbody>
</table>
<div id="week-navigation" style="text-align: center; margin: 20px 0;">
<button onclick="previousWeek()" style="margin-right: 10px;">Vorherige Woche</button>
<button onclick="currentWeek()" style="margin-right: 10px;">Aktuelle Woche</button>
<button onclick="nextWeek()">Nächste Woche</button>
<div id="week-display" style="margin-top: 10px; font-weight: bold;"></div>
</div>
<!-- Timetable grid is now rendered dynamically by app.js based on active class -->
<div id="timetable-container" style="width: 60%; height: 600px; margin: 0 auto;"></div>
<div id="controls-container" style="position: fixed; top: 20px; right: 20px; display: flex; flex-direction: column; gap: 10px; z-index: 1000;">
<button id="dark-mode-toggle" style="width: 40px; height: 40px; border-radius: 10px; background-color: rgb(247, 244, 244); border: 1px solid #e0e0e0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2em; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<i class="fas fa-moon"></i>
</button>
<button id="stats-button" style="width: 40px; height: 40px; border-radius: 10px; background-color: rgb(247, 244, 244); border: 1px solid #e0e0e0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2em; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<i class="fas fa-chart-bar"></i>
</button>
<button id="calendar-button" style="width: 40px; height: 40px; border-radius: 10px; background-color: rgb(247, 244, 244); border: 1px solid #e0e0e0; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 1.2em; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);">
<i class="fas fa-calendar-alt"></i>
</button>
</div>
<div id="stats-overlay" style="display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); z-index: 1500;"></div>
<div id="stats-popup" style="display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 600px; background-color: rgb(247, 244, 244); border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); z-index: 2000; padding: 20px; text-align: left; max-height: 80vh; overflow-y: auto;">
<div id="stats-close" style="position: absolute; top: 10px; right: 15px; font-size: 1.5em; cursor: pointer;">×</div>
<h2 style="font-family: 'nMedium', sans-serif; margin-top: 0; text-align: center; padding-bottom: 10px; border-bottom: 1px solid #e0e0e0;">Statistik</h2>
<div id="stats-content">
</div>
</div>
<div id="calendar-overlay" style="display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background-color: rgba(0,0,0,0.5); z-index: 1500;"></div>
<div id="calendar-popup" style="display: none; position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 80%; max-width: 800px; background-color: rgb(247, 244, 244); border-radius: 10px; box-shadow: 0 4px 20px rgba(0,0,0,0.2); z-index: 2000; padding: 20px; text-align: left; max-height: 80vh; overflow-y: auto;">
<div id="calendar-close" style="position: absolute; top: 10px; right: 15px; font-size: 1.5em; cursor: pointer;">×</div>
<h2 style="font-family: 'nMedium', sans-serif; margin-top: 0; text-align: center; padding-bottom: 10px; border-bottom: 1px solid #e0e0e0;">Kalender</h2>
<div id="calendar-content">
<div class="calendar-navigation">
<button id="prev-month" class="calendar-nav-button"><i class="fas fa-chevron-left"></i></button>
<span id="current-month" class="calendar-month-year">Januar 2024</span>
<button id="next-month" class="calendar-nav-button"><i class="fas fa-chevron-right"></i></button>
</div>
<div class="calendar-grid">
<div class="calendar-header">Mo</div>
<div class="calendar-header">Di</div>
<div class="calendar-header">Mi</div>
<div class="calendar-header">Do</div>
<div class="calendar-header">Fr</div>
<div class="calendar-header">Sa</div>
<div class="calendar-header">So</div>
</div>
</div>
</div>
<a href="https://github.com/reazndev/Habenwirmorgenopl.info" target="_blank" class="github-icon">
<i class="fab fa-github"></i>
</a>
<script src="classes.js"></script>
<script src="table.js"></script>
<script src="app.js"></script>
</body>
</html>