-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (118 loc) · 3.62 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
110
111
112
113
114
115
116
117
118
<!DOCTYPE html>
<html lang="zh-TW">
<head>
<link rel="stylesheet" href="./styles.css">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans&display=swap" rel="stylesheet">
<style>
body {
font-family: 'Noto Sans', sans-serif;
background-color: #f0f0f0;
color: #333;
}
.table {
width: 60%;
margin: 50px auto;
border-collapse: collapse;
background-color: #fff;
}
.table th, .table td {
border: 1px solid #ccc;
padding: 10px;
text-align: center;
white-space: nowrap;
}
.table th {
background-color: #f4f4f4;
}
.table tr:nth-child(even) {
background-color: #f9f9f9;
}
.course-info {
font-size: 1.2em;
}
.course-link, .course-location {
display: block;
margin-top: 5px;
font-size: 0.8em;
}
.course-link {
color: purple;
text-decoration: none;
}
</style>
</head>
<body>
<div id="table-container">
<table class="table" id="timetable">
<tr>
<th>時間\星期</th>
<th>一</th>
<th>二</th>
<th>三</th>
<th>四</th>
<th>五</th>
</tr>
<tr>
<td>08:00-09:00</td>
<td>
<div class="course-info">數學</div>
<span class="course-location">教室: A101</span>
<a href="https://www.openai.com" class="course-link">課程網站</a>
</td>
<td>
<div class="course-info">英文</div>
<span class="course-location">教室: B202</span>
<a href="https://www.openai.com" class="course-link">課程網站</a>
</td>
<td>
<div class="course-info">歷史</div>
<span class="course-location">教室: C303</span>
<a href="https://www.openai.com" class="course-link">課程網站</a>
</td>
<td>
<div class="course-info">體育</div>
<span class="course-location">操場</span>
<a href="https://www.openai.com" class="course-link">課程網站</a>
</td>
<td>
<div class="course-info">化學</div>
<span class="course-location">教室: D404</span>
<a href="https://www.openai.com" class="course-link">課程網站</a>
</td>
</tr>
<tr>
<td>09:00-10:00</td>
<td>
<div class="course-info">物理</div>
<span class="course-location">教室: E505</span>
<a href="https://www.openai.com" class="course-link">課程網站</a>
</td>
<td>
<div class="course-info">美術</div>
<span class="course-location">教室: F606</span>
<a href="https://www.openai.com" class="course-link">課程網站</a>
</td>
<td>
<div class="course-info">音樂</div>
<span class="course-location">教室: G707</span>
<a href="https://www.openai.com" class="course-link">課程網站</a>
</td>
<td>
<div class="course-info">地理</div>
<span class="course-location">教室: H808</span>
<a href="https://www.openai.com" class="course-link">課程網站</a>
</td>
<td>
<div class="course-info">生物</div>
<span class="course-location">教室: I909</span>
<a href="https://www.openai.com" class="course-link">課程網站</a>
</td>
</tr>
<!-- 你可以根據需要增加更多的行 -->
</table>
<script src="adjustTableSize.js"></script>
</div>
</body>
</html>