-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
190 lines (159 loc) · 5.48 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
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
<!DOCTYPE html>
<html lang="ru" xmlns="http://www.w3.org/1999/xhtml" style="background-color: #000000; color: #FFFFFF">
<head>
<meta charset="utf-8" />
<title>Timetable Editor</title>
<link rel="icon" href="img/icon.ico" />
<link rel="stylesheet" type="text/css" href="styles/root.css" />
<link rel="stylesheet" type="text/css" href="styles/base.css" />
<link rel="stylesheet" type="text/css" href="styles/elements.css" />
<link rel="stylesheet" type="text/css" href="styles/styles.css" />
<script src="scripts/functions.js"></script>
</head>
<body>
<!-- START VIEW -->
<div id="view-start" style="display: flex">
<section>
<button id="button-create">Создать</button>
<p>или</p>
<textarea id="input-json" placeholder="Расписание (JSON)"></textarea>
<button id="button-open">Открыть</button>
</section>
</div>
<!-- MAIN VIEW -->
<div id="view-main" style="display: none">
<!-- NAVIGATION BAR -->
<nav>
<button id="button-times">Время</button>
<button id="button-lessons">Предметы</button>
<button id="button-timetable">Расписание</button>
<button id="button-json">Json</button>
</nav>
<main>
<!-- TIMES FRAME -->
<section id="frame-times" style="display: none">
<div>
<p>Количество предметов</p>
<p>Номер первого предмета</p>
<input id="input-times-count" value="01" type="number" onchange="checkNumberInput(this, 1, 24)" />
<input id="input-initial-index" value="01" type="number" onchange="checkNumberInput(this, 0, 24)" />
</div>
<table>
<thead>
<tr>
<th>Номер<br />предмета</th>
<th>Начало<br />(час)</th>
<th>Начало<br />(минута)</th>
<th>Конец<br />(час)</th>
<th>Конец<br />(минута)</th>
</tr>
</thead>
<tbody id="table-times-body"></tbody>
</table>
</section>
<!-- LESSONS FRAME -->
<section id="frame-lessons" style="display: none">
<table>
<thead>
<tr>
<th style="width: 64px">ID</th>
<th>Название</th>
<th>Кабинет</th>
<th>Фамилия</th>
<th>Имя</th>
<th>Отчество</th>
<th>Копии</th>
<th style="width: 64px"></th>
</tr>
</thead>
<tbody id="table-lessons-body"></tbody>
</table>
<button id="button-add-lesson">+</button>
</section>
<!-- TIMETABLE FRAME -->
<section id="frame-timetable" style="display: none">
<table>
<thead>
<tr id="table-timetable-head">
<th style="min-width: 64px"></th>
<th style="min-width: 64px"></th>
</tr>
</thead>
<tbody id="table-timetable-body">
<tr>
<th class="text-upright" rowspan="7">Чётная</th>
<th>Пн</th>
</tr>
<tr><th>Вт</th></tr>
<tr><th>Ср</th></tr>
<tr><th>Чт</th></tr>
<tr><th>Пт</th></tr>
<tr><th>Сб</th></tr>
<tr><th>Вс</th></tr>
<tr>
<th class="text-upright" rowspan="7" style="border-bottom: 0">Нечётная</th>
<th>Пн</th>
</tr>
<tr><th>Вт</th></tr>
<tr><th>Ср</th></tr>
<tr><th>Чт</th></tr>
<tr><th>Пт</th></tr>
<tr><th>Сб</th></tr>
<tr><th style="border-bottom: 0">Вс</th></tr>
</tbody>
</table>
</section>
<!-- JSON FRAME -->
<section id="frame-json" style="display: none">
<textarea id="text-json" oninput="resizeTextarea(this)"></textarea>
<img id="button-copy" src="img/copy.svg" />
</section>
</main>
</div>
<!-- LESSONS POPUP -->
<div id="popup-lessons" style="display: none">
<section></section>
</div>
<!-- ELEMENTS -->
<div style="display: none">
<table>
<tr id="row-time">
<td><input value="-1" disabled /></td>
<td><input value="12" type="number" onchange="checkNumberInput(this, 0, 23)" /></td>
<td><input value="00" type="number" onchange="checkNumberInput(this, 0, 59)" /></td>
<td><input value="12" type="number" onchange="checkNumberInput(this, 0, 23)" /></td>
<td><input value="00" type="number" onchange="checkNumberInput(this, 0, 59)" /></td>
</tr>
</table>
<table>
<tr id="row-lesson">
<td><input value="-1" disabled /></td>
<td><input /></td>
<td><input /></td>
<td><input /></td>
<td><input /></td>
<td><input /></td>
<td><input /></td>
<td><button class="button-text">X</button></td>
</tr>
</table>
<article id="item-lesson">
<div>
<p>{title}</p>
<p>{id}</p>
</div>
<div>
<p>{teacher}</p>
<p>{room}</p>
</div>
</article>
</div>
<!-- SCRIPTS -->
<script src="scripts/times.js"></script>
<script src="scripts/lessons.js"></script>
<script src="scripts/timetable.js"></script>
<script src="scripts/popup.js"></script>
<script src="scripts/json.js"></script>
<script src="scripts/app.js"></script>
</body>
</html>