-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpanel-menu.html
More file actions
executable file
·81 lines (69 loc) · 2.61 KB
/
panel-menu.html
File metadata and controls
executable file
·81 lines (69 loc) · 2.61 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
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
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<base href="https://fm.dev.lan/">
<title>HTML Simple accordion 1.0.2</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="template/images/favicon/favicon.ico" rel="shortcut icon" type="image/x-icon">
<link href="template/images/favicon/favicon-32x32.png" rel="icon" sizes="32x32" type="image/png">
<link href="template/images/favicon/favicon-64x64.png" rel="icon" sizes="64x64" type="image/png">
<link href="template/css/main.css?v=0" rel="stylesheet">
<link href="template/css/fonts.css" rel="stylesheet">
<link href="template/css/font-awesome.min.css" rel="stylesheet">
<script src="template/js/jquery.min.js"></script>
<script>
//Аккордион меню (первый уровень)
$(function() {
if ($('.panel-menu-level1').length > 0) {
let active = 'active';
$('.panel-menu-level1').on('click',function () {
$(this).toggleClass(active);
$(this).next('.panel-submenu-level1').slideToggle(150);
return false;
});
};
//Аккордион меню (второй уровень)
if ($('.panel-menu-level2').length > 0) {
let active = 'active';
$('.panel-menu-level2').on('click',function () {
$(this).toggleClass(active);
$(this).next('.panel-submenu-level2').slideToggle(150);
return false;
});
};
});
</script>
</head>
<body>
<!-- Меню аккордеон -->
<nav class="wrap-menu">
<div class="panel-menu">
<ul class="panel-menu-item">
<li class="panel-menu-level1"><h5>Sed ut perspiciatis Leve 1</h5></li>
<li class="panel-submenu-level1">
<ul>
<li><a href="#">Sed ut perspiciatis 1</a></li>
<li><a href="#">Sed ut perspiciatis 1</a></li>
<li><a href="#">Sed ut perspiciatis 1</a></li>
<li><a href="#">Sed ut perspiciatis 1</a></li>
<li class="panel-menu-level2"><h6>Sed ut perspiciatis Level 2</h6></li>
<li class="panel-submenu-level2">
<ul>
<li><a href="#">Sed ut perspiciatis 2</a></li>
<li><a href="#">Sed ut perspiciatis 2</a></li>
<li><a href="#">Sed ut perspiciatis 2</a></li>
<li><a href="#">Sed ut perspiciatis 2</a></li>
</ul>
</li>
</ul>
</li>
</ul>
</div>
<ul class="sidebar-nav-item">
<li class="panel-menu-level0"><a href="https://work.xampp.lan/#">Sed ut perspiciatis Level 0</a></li>
<li class="panel-menu-level0"><a href="https://work.xampp.lan/#">Sed ut perspiciatis Level 0</a></li>
</ul>
</nav>
</body>
</html>