-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
37 lines (34 loc) · 1.67 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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<link rel="icon" type="image/svg+xml" href="/favicon.svg">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Драг-н-дроп загрузка файла с лоадером — Дока</title>
</head>
<body>
<div id="app">
<form class="form-upload" id="uploadForm" method="post" enctype="multipart/form-data">
<div class="upload-zone_dragover">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1" viewBox="0 0 24 24">
<path d="M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242M12 12v9"/>
<path d="m16 16-4-4-4 4"/>
</svg>
<p>Перетащи файл сюда</p>
<span class="form-upload__hint" id="hint">Можно загружать только картинки</span>
</div>
<label class="form-upload__label" for="uploadForm_file">
<span class="form-upload__title">Или нажми кнопку</span>
<input class="form-upload__input" id="uploadForm_File" type="file" name="file_name" accept="image/*" aria-describedby="hint">
</label>
<progress id="progressBar" class="form-upload__progress" value="0" max="100"></progress>
<div class="form-upload__container">
<span class="form-upload__status" id="uploadForm_Status" aria-live="polite"></span>
<span class="form-upload__hint" id="uploadForm_Hint"></span>
<span id="uploadForm_Size"></span>
</div>
</form>
</div>
<script type="module" src="/src/main.ts"></script>
</body>
</html>