Spaces:
Sleeping
Sleeping
Commit
·
adba3f8
1
Parent(s):
a5676a7
Update templates/index.html
Browse files- templates/index.html +15 -15
templates/index.html
CHANGED
@@ -1,18 +1,18 @@
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
-
<head>
|
4 |
-
<title
|
5 |
-
</head>
|
6 |
-
<body>
|
7 |
-
|
8 |
-
<
|
9 |
-
<
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
<
|
15 |
-
</
|
16 |
-
{% endif %}
|
17 |
-
</body>
|
18 |
</html>
|
|
|
1 |
<!DOCTYPE html>
|
2 |
<html>
|
3 |
+
<head>
|
4 |
+
<title>Загрузка файла</title>
|
5 |
+
</head>
|
6 |
+
<body>
|
7 |
+
<h1>Загрузка файла</h1>
|
8 |
+
<form method="POST" enctype="multipart/form-data">
|
9 |
+
<input type="file" name="txt_file" accept=".txt"><br>
|
10 |
+
<button type="submit">Загрузить</button>
|
11 |
+
</form>
|
12 |
+
|
13 |
+
{% if json_content %}
|
14 |
+
<h2>Содержимое файла JSON:</h2>
|
15 |
+
<pre>{{ json_content | safe }}</pre>
|
16 |
+
{% endif %}
|
17 |
+
</body>
|
18 |
</html>
|