-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
103 lines (103 loc) · 5.83 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
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Генератор случайных паролей</title>
<link rel="stylesheet" href="./styles/main.css">
<link rel="stylesheet" href="./styles/checkboxes.css">
<link rel="stylesheet" href="./styles/modals.css">
</head>
<body>
<div class="area">
<div class="header area-header">
<header>Генератор паролей</header>
<div>
<img src="./images/reload.png" alt="Обновить мастер-пароль" id="changeSecretKey">
<a href="./storage.html"><img src="./images/memory2.png" alt="История сгенерированных паролей" id="passwordsHistory"></a>
<img src="./images/unlock.png" alt="Заблокировать расширение" id="lockExtension">
</div>
</div>
<div class="area-password">
<label for="passwordField" class="labelText">Пароль</label>
<input type="text" class="field" id="passwordField">
<span id="copyBg"></span>
<span id="copyMessage" class="hide">Скопировано!</span>
<img src="../images/copy2.jpg" id="copyBtn" />
</div>
<div class="area-options">
<div class="container area-passwordLength">
<div class="passwordLength-slider">
<label for="passwordLengthBtn" class="labelText">Длина пароля</label>
<input type="range" id="passwordLengthBtn" min="1" max="50" value="8">
</div>
<span id="passwordLengthIndicator">8</span>
</div>
<span class="labelText">Параметры </span>
<div class="options-params">
<div class="params-languages">
<div class="container">
<input type="checkbox" name="rusLang" id="russianLangBtn" class="param toggle-button">
<label for="russianLangBtn" class="text">Русские буквы</label>
</div>
<div class="container">
<input type="checkbox" name="engLang" id="englishLangBtn" checked class="param toggle-button">
<label for="englishLangBtn" class="text">Английские буквы</label>
</div>
<div class="container">
<input type="checkbox" name="numbers" id="numbersBtn" checked class="param toggle-button">
<label for="numbersBtn" class="text">Цифры</label>
</div>
<div class="container">
<input type="checkbox" name="specialChars" id="specialCharsBtn" class="param toggle-button">
<label for="specialCharsBtn" class="text">Спецсимволы</label>
</div>
<div class="container">
<input type="checkbox" name="specialChars" id="passwordFromMaskBtn" class="toggle-button">
<label for="specialCharsBtn" class="text">Пароль по маске</label>
</div>
</div>
</div>
<div class="maskArea area-password hide">
<label for="maskField" class="labelText">Маска</label>
<input type="text" class="field" id="maskField" placeholder="Пример: TTttNSS">
<div class="maskParamsArea">
<div class="column">
<span><b>T</b> - Большая английская буква</span>
<span><b>t</b> - Маленькая английская буква</span>
<span><b>R</b> - Большая русская буква</span>
</div>
<div class="column">
<span><b>r</b> - Маленькая русская буква</span>
<span><b>N</b> - Цифра</span>
<span><b>S</b> - Спецсимвол</span>
</div>
</div>
</div>
</div>
<button type="button" class="generateBtn generatePasswordBtn">Сгенерировать</button>
<div class="noSecretKeyArea hide">
<img src="./images/lock.png" alt="Генератор заблокирован">
<h3>Генерация паролей заблокирована</h3>
<p>Введите мастер-пароль для доступа к хранилищу паролей и генератору</p>
</div>
</div>
<div class="modal modal__hide confirmModal">
<div class="modal-area">
<span class="modal-title confirmModal-title">Модальное окно подтверждения</span>
<div class="confirmModal-input">
<input type="text" class="confirmModal-inputValue hide" id="inputValue" placeholder="Вводите сюда..."/>
</div>
<div class="modal-buttons">
<button class="modal-buttons__confirm confirmModal-confirmBtn">Подтвердить</button>
<button class="modal-buttons__cancel confirmModal-cancelBtn">Отменить</button>
</div>
</div>
</div>
<script defer type="text/javascript" src="./libs/crypto-js.min.js"></script>
<script defer type="text/javascript" src="./scripts/mainFunctions.js"></script>
<script defer type="text/javascript" src="./scripts/modalsUI.js"></script>
<script defer type="text/javascript" src="./scripts/mainUI.js"></script>
</body>
</html>