-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtimetable.html
More file actions
56 lines (54 loc) · 1.66 KB
/
timetable.html
File metadata and controls
56 lines (54 loc) · 1.66 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<title>Printable Timetable</title>
<link href="https://fonts.googleapis.com/css2?family=Google+Sans:wght@400;500;700&family=Roboto:wght@300;400;500;700&display=swap" rel="stylesheet"/>
<link rel="stylesheet" href="css/style.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0/css/all.min.css"/>
<style>
@media print {
body {
background-color: white;
margin: 0;
padding: 20px;
}
.wizard-container {
box-shadow: none;
max-width: 100%;
margin: 0;
padding: 0;
}
.btn {
display: none;
}
}
</style>
</head>
<body onload="timetable.generate()">
<div class="wizard-container">
<h1 class="title">Your Weekly Schedule</h1>
<div id="timetableGrid" class="grid-section"></div>
<div class="button-row">
<button onclick="window.print()" class="btn primary icon">
<i class="fas fa-print"></i> Print
</button>
<button onclick="window.close()" class="btn secondary icon">
<i class="fas fa-times"></i> Close
</button>
</div>
</div>
<script src="js/timetable.js"></script>
<script>
// If courses data is not available, get it from localStorage
if (!window.courses && localStorage.getItem('timetableCourses')) {
try {
window.courses = JSON.parse(localStorage.getItem('timetableCourses'));
} catch (e) {
console.error('Failed to load courses from localStorage', e);
}
}
</script>
</body>
</html>