-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschedule.html
More file actions
74 lines (65 loc) · 1.53 KB
/
Copy pathschedule.html
File metadata and controls
74 lines (65 loc) · 1.53 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Расписание</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 20px;
}
table {
width: 100%;
border-collapse: collapse;
margin-top: 20px;
}
th, td {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
th {
background-color: #f2f2f2;
}
button {
margin-top: 20px;
padding: 10px;
cursor: pointer;
}
</style>
</head>
<body>
<h1>Расписание</h1>
<table>
<thead>
<tr>
<th>Время</th>
<th>Понедельник</th>
<th>Вторник</th>
<th>Среда</th>
<th>Четверг</th>
<th>Пятница</th>
</tr>
</thead>
<tbody>
<tr>
<td>9:00 - 10:00</td>
<td>Урок 1</td>
<td>Урок 2</td>
<td>Отдых</td>
<td>Урок 3</td>
<td>Урок 4</td>
</tr>
<!-- -->
</tbody>
</table>
<button onclick="toggleVisibility()">Показать/скрыть расписание</button>
<script>
function toggleVisibility() {
const table = document.querySelector('table');
table.style.display = (table.style.display === 'none' || table.style.display === '') ? 'table' : 'none';
}
</script>
</body>
</html>