-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsearch2.html
More file actions
executable file
·189 lines (173 loc) · 5.98 KB
/
search2.html
File metadata and controls
executable file
·189 lines (173 loc) · 5.98 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
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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
<!doctype html>
<html lang="ru">
<head>
<meta charset="utf-8">
<base href="https://fm.dev.lan/">
<title>Search 2 HTML</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" 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() {
$('.nav-wrapper > ul').load('parts/header-menu.tpl');
$('.connect-menu').load('parts/panel-menu.tpl');
});
</script>
<script>
// Кнопка бургер
$(function() {
let burger = $('.burger');
let sidebarPanel = $('.sidebar-panel');
let closeSidebarPanel = $('.close-sidebar-panel');
burger.click(function() {
burger.toggleClass("active");
})
burger.click(function() {
sidebarPanel.toggleClass("active");
})
closeSidebarPanel.click(function() {
sidebarPanel.toggleClass("active");
burger.removeClass('active');
})
$(window).resize(function() {
burger.removeClass('active');
sidebarPanel.removeClass('active');
});
});
</script>
<script>
// Горизонтальная навигация
$(function() {
let topHeaderContainer = $('.top-container.pages');
let navHeaderContainer = $('.nav-container.pages');
let navHeaderWrapper = $('.nav-wrapper.pages');
let navHeaderLogo = $('.nav-wrapper.pages img');
let horizontalMenu = $('.nav-wrapper.pages > ul');
let burgerBtn = $('.nav-wrapper.pages .burger');
$(window).scroll(function(){if ($(this).scrollTop() > 100){
topHeaderContainer.slideUp(100);
navHeaderContainer.css({'position': 'fixed','width': '100%','top': '0','box-shadow': ' 0px 5px 5px rgb(133 132 157 / 40%)','transition': '.5s','z-index': '7777'});
navHeaderWrapper.css({'height': '48px','transition': '.5s'});
navHeaderLogo.css({'width': 'auto','height': '32px','transition': '.5s'});
horizontalMenu.css({'display': 'none'});
burgerBtn.css({'display': 'block'});
} else {
topHeaderContainer.slideDown(10);
navHeaderContainer.css({'position': 'relative','box-shadow': 'none','transition': '.5s','z-index': '7777'});
navHeaderWrapper.css({'height': '60px','transition': '.5s'});
navHeaderLogo.css({'width': 'auto','height': '36px','transition': '.5s'});
horizontalMenu.css({'display': 'inline-flex'});
burgerBtn.css({'display': 'none'});
}
});
});
</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();
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();
return false;
});
};
});
</script>
<script>
$(function() {
// Top Scroll
$(window).scroll(function() {
if ($(this).scrollTop() > 300) {
$('.top-scroll').fadeIn(300);
} else {
$('.top-scroll').fadeOut(300);
}
});
$('.top-scroll').click(function() {
$('html, body').animate({ scrollTop: 0 }, { duration: 800, easing: 'linear' });
return false;
});
});
</script>
</head>
<body>
<!-- Header: Top секция -->
<section class="top-section">
<div class="top-container pages">
<div class="top-wrapper pages">
<div class="item-left"><a href="tel:+380999999999">+38 (099) 999-99-99</a></div>
<div class="item-middle">
<a href="https://t.me/telegram" target="_blank"><img src="template/images/icons/telegram.svg" alt="Telegram"></a>
<a href="viber://chat?number=%2B380999999999"><img src="template/images/icons/viber.svg" alt="Viber"></a>
<a href="https://twitter.com/" target="_blank"><img src="template/images/icons/tvitter.svg" alt="Twitter"></a>
<a href="https://www.instagram.com/" target="_blank"><img src="template/images/icons/instagram.svg" alt="In 100 gram"></a>
</div>
<div class="item-right"><a href="tel:+380999999999">+38 (099) 999-99-99</a></div>
</div>
</div>
<div class="nav-container pages">
<div class="nav-wrapper pages">
<img src="resources/images/logo.svg" alt="Logo">
<ul></ul>
<div class="burger"><span></span><span></span><span></span></div>
</div>
</div>
</section>
<!-- Header -->
<header class="header-wrapper-pages">
<div class="wrapper-grid pages indent-middle">
<div class="cells-2fr middle-gap">
<div class="item">
<h1>Заголовок H1</h1>
</div>
<div class="item">
<p>Контент</p>
</div>
</div>
</div>
<ol class="breadcrumb">
<li><a><i class="fa fa-home"></i></a></li>
<li><a>О нас</a></li>
<li><a>Контакты</a></li>
<li><a>Блог</a></li>
</ol>
</header>
<!-- Breadcrumbs -->
<div class="breadcrumb-wrapper">
<ol class="breadcrumb">
<li><a><i class="fa fa-home"></i></a></li>
<li><a>О нас</a></li>
<li><a>Контакты</a></li>
<li><a>Блог</a></li>
</ol>
</div>
<!-- Sidebar -->
<div class="sidebar-panel">
<div class="sidebar-top">
<img src="resources/images/logoG.svg" alt="Logo">
<button class="close-sidebar-panel"></button>
</div>
<nav class="connect-menu"></nav>
</div>
<div style="height: 1920px;"></div>
<!-- Top скролл -->
<div class="top-scroll"></div>
</body>
</html>