forked from Efim-Maisak/family-tree-dTree
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
115 lines (114 loc) · 6.14 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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Генеалогическое дерево</title>
<link rel="shortcut icon" type="image/svg" href="./assets/favicon.svg"/>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css">
</head>
<script type="module" src="./js/script.js"></script>
<script src="https://cdn.jsdelivr.net/lodash/4.17.4/lodash.min.js"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="./lib/dTree.js"></script>
<body>
<div class="header-panel">
<div class="header-panel__info">
<p>Семейное древо</p>
</div>
<div class="header-panel__search">
<div class="search-wrapper">
<input type="text" class="input_search" name="search-person" placeholder="поиск..." autofocus autocomplete="off" autocorrect="off">
<span class="header-panel-button">
<img class="button_search" src="/assets/icons/person_search-material.svg" alt="search">
</span>
</div>
<div class="list-wrapper"></div>
</div>
<div class="header-panel__user"></div>
</div>
<div class="zoom-panel">
<span class="zoom-panel-button" data-action="reset">
<img class="button_reset" src="/assets/icons/zoom_in_map-material.svg" alt="reset">
</span>
<span class="zoom-panel-button" data-action="tofit">
<img class="button_tofit" src="/assets/icons/center_focus_strong-material.svg" alt="tofit">
</span>
</div>
<div id="graph"></div>
<div id="graph-spouse">
<span class="graph-spouse_close">×</span>
</div>
<div id="modal" class="popup">
<div class="popup_content">
<span class="popup_close">×</span>
<img alt="портрет" class="person-photo">
<div class="person-info" id="person-info-name">
<span id="person-name"></span>
<span class="gender-tag" id="person-gender"></span>
</div>
<div class="person-info">
<strong>Дата рождения:</strong>
<span id="person-birth"></span>
</div>
<div class="person-info" id="person-info-death">
<strong>Дата смерти:</strong>
<span id="person-death"></span>
</div>
<div class="person-info">
<strong>Место рождения:</strong>
<a id="place-birth" target="_blank">
</div>
<div class="person-info" id="person-info-place-death">
<strong>Место смерти:</strong>
<span id="place-death"></span>
</div>
<div class="person-info person-info__about">
<strong>Общая информация:</strong>
<div class="person-info__content">
<span id="person-info"></span>
</div>
</div>
<div class="popup_bottom">
<button class="popup_bottom__button">Показать древо</button>
</div>
<div class="popup_content__edit" style="display: none;">
<label for="person-name-input">Имя:</label>
<input type="text" id="person-name-input" autocomplete="off" autocorrect="off">
<label for="person-gender-select">Пол:</label>
<select id="person-gender-select">
<option value="M">М</option>
<option value="F">Ж</option>
</select>
<label for="person-birth-input">Дата рождения:</label>
<input type="text" id="person-birth-input" autocomplete="off" autocorrect="off">
<label for="person-death-input">Дата смерти:</label>
<input type="text" id="person-death-input" autocomplete="off" autocorrect="off">
<label for="place-birth-input">Место рождения:</label>
<input type="text" id="place-birth-input" autocomplete="off" autocorrect="off">
<label for="coordinates-input">Координаты места рождения (широта, долгота):</label>
<input type="text" id="coordinates-input" autocomplete="off" autocorrect="off">
<label for="place-death-input">Место смерти:</label>
<input type="text" id="place-death-input" autocomplete="off" autocorrect="off">
<div class="toggle-container">
<span class="toggle-label">Жив:</span>
<label class="toggle-switch">
<input type="checkbox" id="isLivingToggle" checked>
<span class="toggle-slider"></span>
</label>
</div>
<label for="person-info-input">Общая информация:</label>
<textarea id="person-info-input"></textarea>
</div>
<div class="edit-buttons">
<button class="edit-button">Редактировать</button>
<button class="save-button" style="display: none;">Сохранить</button>
<button class="cancel-button" style="display: none;">Отмена</button>
</div>
</div>
</div>
</body>
</html>