Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
150 lines (140 loc) · 3.16 KB
/
Copy pathindex.html
File metadata and controls
150 lines (140 loc) · 3.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
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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
<html>
<head>
<title>Thời Khoá Biểu</title>
<style>
body {
background-color: lightgray;
text-align: center;
}
table {
margin: 0 auto;
background-color: white;
}
</style>
</head>
<body>
<h1>Thời Khoá Biểu</h1>
<table border="1">
<tr>
<th>Ngày/Giờ</th>
<th>Thứ Hai</th>
<th>Thứ Ba</th>
<th>Thứ Tư</th>
<th>Thứ Năm</th>
<th>Thứ Sáu</th>
<th>Thứ Bảy</th>
</tr>
<tr>
<td>7:30am - 8:15am</td>
<td>CC</td>
<td>Sử</td>
<td>TD</td>
<td>TD</td>
<td>Sử</td>
<td>Toán</td>
</tr>
<tr>
<td>8:20am - 9:05am</td>
<td>Văn</td>
<td>Tin</td>
<td>Lí</td>
<td>KT&PL</td>
<td>Văn</td>
<td>Địa</td>
</tr>
<tr>
<td>9:15am - 10:00am</td>
<td>Văn</td>
<td>Tin</td>
<td>KT&PL</td>
<td>Lí</td>
<td>Văn</td>
<td>Anh(Hà)</td>
</tr>
<tr>
<td>10:05am - 10:50pm</td>
<td>Anh(Hương)</td>
<td>Địa</td>
<td>Toán</td>
<td>Lí</td>
<td>Anh(Hà)</td>
<td>Anh(Hà)</td>
</tr>
<tr>
<td>10:55pm - 11:40pm</td>
<td>Anh(Hương)</td>
<td>Anh(Hương)</td>
<td>Toán</td>
<td>Toán</td>
<td>Anh(Hà)</td>
<td>SH</td>
</tr>
<tr>
<td>2:00pm - 4:15pm</td>
<td>NO</td>
<td>NO</td>
<td>NO</td>
<td>NO</td>
<td>NO</td>
<td>NO</td>
</tr>
</table>
<table border="1">
<tr>
<th>Current Date</th>
<th>Current Time</th>
</tr>
<tr>
<td id="date"></td>
<td id="time"></td>
</tr>
</table>
<script>
function updateDateTime() {
const currentDate = new Date();
document.getElementById('date').innerHTML = currentDate.toDateString();
document.getElementById('time').innerHTML = currentDate.toLocaleTimeString();
}
setInterval(updateDateTime, 1000);
function highlightCurrentColumn() {
const days = ['Thứ Hai', 'Thứ Ba', 'Thứ Tư', 'Thứ Năm', 'Thứ Sáu', 'Thứ Bảy'];
const currentDate = new Date();
const currentDay = days[currentDate.getDay() - 1];
const table = document.getElementsByTagName('table')[0];
const headerRow = table.rows[0];
const columnCount = headerRow.cells.length;
for (let i = 0; i < columnCount; i++) {
const columnHeader = headerRow.cells[i].innerHTML;
if (columnHeader === currentDay) {
for (let j = 0; j < table.rows.length; j++) {
table.rows[j].cells[i].classList.add('highlight');
}
break;
}
}
}
highlightCurrentColumn()
</script>
<img src="image.jpg" alt="TriNamCo">
<style>
.highlight {
background-color: yellow;
}
#game-container {
display: inline-block;
vertical-align: top;
width: 30%;
height: 750px;
border: 1px solid black;
}
#game {
width: 100%;
height: 100%;
}
</style>
<div id="game-container">
<!-- 2048 game -->
<iframe id="game" src="https://www.2048.org/"></iframe>
</div>
</body>
</html>