-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
51 lines (44 loc) · 1.78 KB
/
Copy pathindex.html
File metadata and controls
51 lines (44 loc) · 1.78 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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<title>Анализ поездки</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- Подключение библиотек -->
<script src="https://cdn.plot.ly/plotly-2.27.0.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/7.8.5/d3.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-migrate/3.4.1/jquery-migrate.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.29.4/moment.min.js"></script>
<!-- Leaflet для карты -->
<link
rel="stylesheet"
href="https://unpkg.com/leaflet@1.9.4/dist/leaflet.css"
/>
<script src="https://unpkg.com/leaflet@1.9.4/dist/leaflet.js"></script>
<!-- Подключение стилей -->
<link rel="stylesheet" href="styles.css">
</head>
<body>
<h2>Загрузите CSV-файл с поездкой</h2>
<input type="file" id="csvFile" accept=".csv"/>
<!-- Сюда будет вставлен текст + блоки -->
<div id="summary">
<div class="summary-container" id="summary-line"></div>
<div class="stats-container" id="summary-stats"></div>
</div>
<!-- Переключатель карты -->
<label style="display:block; margin-bottom:10px;">
<input type="checkbox" id="toggleMap"/> Показать карту
</label>
<!-- Контейнер для графика и карты -->
<div id="main-container">
<!-- График -->
<div id="chart"></div>
<!-- Карта-->
<div id="map"></div>
</div>
<!-- Скрипт -->
<script src="script.js"></script>
</body>
</html>