-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
169 lines (151 loc) · 11.3 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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<link rel="preload" href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap" as="style">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="dns-prefetch" href="https://cdnjs.cloudflare.com">
<link rel="dns-prefetch" href="https://unpkg.com">
<link rel="preload" href="index.js" as="script">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
<link rel="icon" type="image/png" href="favicon.png">
<title>Расписание</title>
<script>
var files = new Array(10);
for(var i = 0; i < files.length; i++) {
var file = files[i] = new Array(3);
file[0] = new Promise((g, b) => {
file[1] = g;
file[2] = b;
});
}
var domPromise = new Promise((g, b) => document.addEventListener('DOMContentLoaded', g));
var pdfjsWorker = new Worker(URL.createObjectURL(new Blob(
[`importScripts("https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.9.179/pdf.worker.min.js")`],
{ type: 'text/javascript' }
)));
var fontPromise = fetch('font/CharisSIL.ttf').then(res => res.arrayBuffer(), () => { throw 'не удалось загрузить шрифт'; });
</script>
<script async onload="files[8][1]()" onerror="files[8][2]('index.js')" src="index.js"></script>
<script async onload="files[0][1]()" onerror="files[0][2]('pdf.js')" src="https://cdnjs.cloudflare.com/ajax/libs/pdf.js/3.9.179/pdf.min.js"></script>
<script async onload="files[1][1]()" onerror="files[1][2]('pdf-lib fontkit')" src="https://unpkg.com/@pdf-lib/fontkit@1.1.1/dist/fontkit.umd.min.js"></script>
<script async onload="files[2][1]()" onerror="files[2][2]('pdf-lib')" src="https://unpkg.com/pdf-lib@1.17.1/dist/pdf-lib.min.js"></script>
<script async onload="files[3][1]()" onerror="files[3][2]('schedule.js')" src="schedule.js"></script>
<script async onload="files[4][1]()" onerror="files[4][2]('common.js')" src="common.js"></script>
<script async onload="files[5][1]()" onerror="files[5][2]('elements.js')" src="elements.js"></script>
<script async onload="files[6][1]()" onerror="files[6][2]('popups.js')" src="popups.js"></script>
<script async onload="files[9][1]()" onerror="files[9][2]('render.js')" src="render.js"></script>
<script type="module" src="https://www.gstatic.com/firebasejs/10.1.0/firebase-app.js"></script>
<script type="module" src="https://www.gstatic.com/firebasejs/10.1.0/firebase-database.js"></script>
<script type="module" onload="files[7][1]()" onerror="files[7][2]('database.js')" src="database.js"></script>
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Open+Sans&display=swap">
<link rel="stylesheet" href="colors.css">
<link rel="stylesheet" href="styles.css">
<link rel="stylesheet" href="index.css">
</head>
<body style="margin: 0;">
<!-- <canvas id='the-canvas'></canvas> -->
<div class="root" style="display: flex; flex-direction: column">
<div class="centerel-vert" style="flex: 1 1 auto">
<div class="before" style="display: flex; flex-direction: column; align-items: stretch;">
<div class="header">
Создание расписания группы
</div>
<div class="h-text">
<div id="file-picker" class="no-select">
<span>Нажмите здесь чтобы загрузить файл расписания</span>
</div>
</div>
<div class="group-bar-formatting">
<div class="move-with-border" id="file-info">
<div class="content">
<span id="file-type"></span>
<a href="javascript:;" id="filename" target="_blank" class="link"></a>
<span id="is-pdf" style="visibility: hidden" title="Документ не является PDF-файлом">!</span>
</div>
</div>
</div>
</div>
<div class="center group-bar-formatting">
<div id="group-bar">
<div class="group-bar-double">
<div id="progress-bar" class="progress-bar-height"></div>
</div>
<div class="before progress-bar-height"></div>
<div style="display: flex; align-items: stretch; padding: 0.1rem 0.3rem 0.1rem 0.8rem;">
<input id="group-input" type="text" enterkeyhint='go' autofocus placeholder="Название группы">
<div style="margin-left: 0.5rem; border-left: 1px solid var(--outline-color);"></div>
<span id="generation-settings" class="group-bar-icon no-select" title="Настройки расположения дней"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
<path d="M13.85 22.25h-3.7c-.74 0-1.36-.54-1.45-1.27l-.27-1.89c-.27-.14-.53-.29-.79-.46l-1.8.72c-.7.26-1.47-.03-1.81-.65L2.2 15.53c-.35-.66-.2-1.44.36-1.88l1.53-1.19c-.01-.15-.02-.3-.02-.46 0-.15.01-.31.02-.46l-1.52-1.19c-.59-.45-.74-1.26-.37-1.88l1.85-3.19c.34-.62 1.11-.9 1.79-.63l1.81.73c.26-.17.52-.32.78-.46l.27-1.91c.09-.7.71-1.25 1.44-1.25h3.7c.74 0 1.36.54 1.45 1.27l.27 1.89c.27.14.53.29.79.46l1.8-.72c.71-.26 1.48.03 1.82.65l1.84 3.18c.36.66.2 1.44-.36 1.88l-1.52 1.19c.01.15.02.3.02.46s-.01.31-.02.46l1.52 1.19c.56.45.72 1.23.37 1.86l-1.86 3.22c-.34.62-1.11.9-1.8.63l-1.8-.72c-.26.17-.52.32-.78.46l-.27 1.91c-.1.68-.72 1.22-1.46 1.22zm-3.23-2h2.76l.37-2.55.53-.22c.44-.18.88-.44 1.34-.78l.45-.34 2.38.96 1.38-2.4-2.03-1.58.07-.56c.03-.26.06-.51.06-.78s-.03-.53-.06-.78l-.07-.56 2.03-1.58-1.39-2.4-2.39.96-.45-.35c-.42-.32-.87-.58-1.33-.77l-.52-.22-.37-2.55h-2.76l-.37 2.55-.53.21c-.44.19-.88.44-1.34.79l-.45.33-2.38-.95-1.39 2.39 2.03 1.58-.07.56a7 7 0 0 0-.06.79c0 .26.02.53.06.78l.07.56-2.03 1.58 1.38 2.4 2.39-.96.45.35c.43.33.86.58 1.33.77l.53.22.38 2.55z"></path><circle cx="12" cy="12" r="3.5"></circle>
</svg></span>
<!--https://www.reshot.com/free-svg-icons/item/arrow-chevron-right-WDGHUKQ634/-->
<span class="group-bar-icon no-select" id="start-button" title="Создать расписание">
<svg xmlns="http://www.w3.org/2000/svg" viewBox="-1 0 24 24">
<polygon points="7.293 4.707 14.586 12 7.293 19.293 8.707 20.707 17.414 12 8.707 3.293 7.293 4.707"/>
</svg>
</span>
</div>
<div class="after progress-bar-height"></div>
</div>
</div>
<div class="after" style="display: flex; flex-direction: column; gap: 1rem;">
<div class="group-bar-formatting">
<noscript>
<div id="status"
style="color: var(--text-color); opacity: 1;"
class="move-with-border">
Для работы вебсайта требуется JavaScript!
</div>
</noscript>
<script>
document.write(`<div id="status" class="move-with-border">​</div>`)
</script>
</div>
<div id="warning"></div>
<div id="outputs" style="flex: 1 0 auto;"></div>
<div id="footer">
<a class="link no-select" href="/exams/" target="_blank">Расписание сессии</a>
<a class="link no-select" href="./fix.html" target="_blank">Расписание из текста</a>
<a class="link no-select" href="./help-page.html" target="_blank">Помощь</a>
<a class="link no-select" href="https://github.com/GroupTimetable/GroupTimetable.github.io" target="_blank">GitHub</a>
</div>
</div>
</div>
</div>
<div id="drop-zone" style="visibility: hidden; pointer-events: none">
<div>
<!--https://www.svgrepo.com/svg/255818/pdf-->
<svg height="800px" width="800px" version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
viewBox="0 0 512 512" xml:space="preserve">
<path style="fill:#E2E5E7;" d="M128,0c-17.6,0-32,14.4-32,32v448c0,17.6,14.4,32,32,32h320c17.6,0,32-14.4,32-32V128L352,0H128z"/>
<path style="fill:#B0B7BD;" d="M384,128h96L352,0v96C352,113.6,366.4,128,384,128z"/>
<polygon style="fill:#CAD1D8;" points="480,224 384,128 480,128 "/>
<path style="fill:#f15642;" d="M416,416c0,8.8-7.2,16-16,16H48c-8.8,0-16-7.2-16-16V256c0-8.8,7.2-16,16-16h352c8.8,0,16,7.2,16,16
V416z"/>
<g>
<path style="fill:#FFFFFF;" d="M101.744,303.152c0-4.224,3.328-8.832,8.688-8.832h29.552c16.64,0,31.616,11.136,31.616,32.48
c0,20.224-14.976,31.488-31.616,31.488h-21.36v16.896c0,5.632-3.584,8.816-8.192,8.816c-4.224,0-8.688-3.184-8.688-8.816V303.152z
M118.624,310.432v31.872h21.36c8.576,0,15.36-7.568,15.36-15.504c0-8.944-6.784-16.368-15.36-16.368H118.624z"/>
<path style="fill:#FFFFFF;" d="M196.656,384c-4.224,0-8.832-2.304-8.832-7.92v-72.672c0-4.592,4.608-7.936,8.832-7.936h29.296
c58.464,0,57.184,88.528,1.152,88.528H196.656z M204.72,311.088V368.4h21.232c34.544,0,36.08-57.312,0-57.312H204.72z"/>
<path style="fill:#FFFFFF;" d="M303.872,312.112v20.336h32.624c4.608,0,9.216,4.608,9.216,9.072c0,4.224-4.608,7.68-9.216,7.68
h-32.624v26.864c0,4.48-3.184,7.92-7.664,7.92c-5.632,0-9.072-3.44-9.072-7.92v-72.672c0-4.592,3.456-7.936,9.072-7.936h44.912
c5.632,0,8.96,3.344,8.96,7.936c0,4.096-3.328,8.704-8.96,8.704h-37.248V312.112z"/>
</g>
<path style="fill:#CAD1D8;" d="M400,432H96v16h304c8.8,0,16-7.2,16-16v-16C416,424.8,408.8,432,400,432z"/>
</svg>
</div>
</div>
<div id="open-data-usage" class="no-select">
<div><svg xmlns="http://www.w3.org/2000/svg" viewBox="-.2 -.2 1.4 1.4"><path d="M0 .75L.5 .25L1 0.75"></path></svg></div>
</div>
<div id="data-acc" class="data-usage">
<div class="close-button no-select"><div><svg viewBox="-4 -4 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M0 0L10 10M10 0L0 10"></path></svg></div></div>
<span>Сайт собирает информацию об использовании. Если вы не хотите, чтобы это происходило, нажмите здесь.</span>
</div>
<div id="data-dec" class="data-usage">
<div class="close-button no-select"><div><svg viewBox="-4 -4 18 18" xmlns="http://www.w3.org/2000/svg"><path d="M0 0L10 10M10 0L0 10"></path></svg></div></div>
<span>Вы отключили сбор данных. Если вы хотите его включить, нажмите здесь.</span>
</div>
</body>
</html>