2022-09-12 19:14:08 +03:00
|
|
|
|
<!DOCTYPE html>
|
|
|
|
|
<html lang="en">
|
|
|
|
|
<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" />
|
2022-09-21 11:54:22 +03:00
|
|
|
|
<title>Cg-Select</title>
|
2022-11-14 12:23:18 +03:00
|
|
|
|
<link href="style/main.scss" rel="stylesheet" />
|
2022-09-12 19:14:08 +03:00
|
|
|
|
</head>
|
|
|
|
|
<body>
|
|
|
|
|
<div class="container">
|
2022-11-11 17:21:42 +03:00
|
|
|
|
<header class="header">
|
2022-11-17 21:21:06 +03:00
|
|
|
|
<div class="header__logoBox">
|
|
|
|
|
<h1>CG-SELECT</h1>
|
|
|
|
|
<img src="/src/images/logoCG.jpg" alt="#" class="header__logo" />
|
|
|
|
|
</div>
|
|
|
|
|
<hr style="width: 55%" />
|
|
|
|
|
<nav>
|
|
|
|
|
<ul class="navlist">
|
|
|
|
|
<li><a href="">Home</a></li>
|
|
|
|
|
<li><a href="../documentation/index.html">Documentation</a></li>
|
|
|
|
|
</ul>
|
|
|
|
|
</nav>
|
2022-11-11 17:21:42 +03:00
|
|
|
|
</header>
|
|
|
|
|
</div>
|
2022-09-12 19:14:08 +03:00
|
|
|
|
|
2022-11-11 17:21:42 +03:00
|
|
|
|
<div class="container content">
|
|
|
|
|
<div class="example-select">
|
|
|
|
|
<form method="get" class="form">
|
|
|
|
|
<div>
|
|
|
|
|
<h2 class="example-select_title">Дефолтный селект</h2>
|
|
|
|
|
<button class="cg-dropdown cg-dropdown_one"></button>
|
|
|
|
|
</div>
|
2022-10-13 13:42:46 +03:00
|
|
|
|
|
2022-11-11 17:21:42 +03:00
|
|
|
|
<input type="submit" value="Отправить!" class="example-select_submit" />
|
2022-12-19 21:15:47 +03:00
|
|
|
|
|
|
|
|
|
<code>
|
|
|
|
|
<pre>
|
|
|
|
|
const dropdown = new DropDown({
|
|
|
|
|
selector: '.cg-dropdown_one',
|
|
|
|
|
placeholder: 'Выберите авто',
|
|
|
|
|
lable: 'EXAMPLE',
|
|
|
|
|
items: [
|
|
|
|
|
'BMW',
|
|
|
|
|
{
|
|
|
|
|
id: '213sade',
|
|
|
|
|
title: 'Opel',
|
|
|
|
|
value: 1,
|
|
|
|
|
},
|
|
|
|
|
'Mersedes',
|
|
|
|
|
'MAN',
|
|
|
|
|
'Ferari',
|
|
|
|
|
],
|
|
|
|
|
styles: {
|
|
|
|
|
head: {
|
|
|
|
|
width: '830px',
|
|
|
|
|
},
|
|
|
|
|
list: {
|
|
|
|
|
width: '824px',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
</pre>
|
|
|
|
|
|
|
|
|
|
</code>
|
2022-11-11 17:21:42 +03:00
|
|
|
|
</form>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="example-select">
|
|
|
|
|
<h1 class="example-select_title">Селект с данными с URL</h1>
|
2022-10-28 15:45:09 +03:00
|
|
|
|
<button class="cg-dropdown cg-dropdown_three"></button>
|
|
|
|
|
</div>
|
|
|
|
|
|
2022-11-11 17:21:42 +03:00
|
|
|
|
<div class="example-select">
|
|
|
|
|
<h1 class="example-select_title">Категории</h1>
|
2022-10-28 15:45:09 +03:00
|
|
|
|
<button class="cg-dropdown cg-dropdown_categories"></button>
|
|
|
|
|
</div>
|
|
|
|
|
|
2022-11-11 17:21:42 +03:00
|
|
|
|
<div class="example-select">
|
|
|
|
|
<h1 class="example-select_title">Управление с помошью кнопок</h1>
|
|
|
|
|
<div style="margin-bottom: 15px">
|
|
|
|
|
<button class="button__open example-select_submit">Open</button>
|
|
|
|
|
<button class="button__close example-select_submit">Close</button>
|
|
|
|
|
</div>
|
2022-10-28 15:45:09 +03:00
|
|
|
|
<button class="cg-dropdown cg-dropdown_usedBtn"></button>
|
|
|
|
|
</div>
|
|
|
|
|
|
2022-11-11 17:21:42 +03:00
|
|
|
|
<div class="example-select">
|
|
|
|
|
<h1 class="example-select_title">Функция disabled</h1>
|
2022-10-28 15:45:09 +03:00
|
|
|
|
|
2022-11-11 17:21:42 +03:00
|
|
|
|
<input type="checkbox" name="chbx" id="checkboxDisable" style="margin-bottom: 16px" />
|
2022-10-28 15:45:09 +03:00
|
|
|
|
<label for="checkboxDisable">Вы согласны на обработку данных</label>
|
|
|
|
|
<button class="cg-dropdown cg-dropdown_checkboxDisable"></button>
|
|
|
|
|
</div>
|
2022-10-13 13:42:46 +03:00
|
|
|
|
</div>
|
2022-09-12 19:14:08 +03:00
|
|
|
|
</body>
|
2022-11-11 17:50:55 +03:00
|
|
|
|
<script type="module" src="/src/index.js"></script>
|
2022-09-12 19:14:08 +03:00
|
|
|
|
</html>
|