mirror of
https://github.com/statbate/layout.git
synced 2026-08-11 03:12:42 +00:00
update
This commit is contained in:
parent
b9c9e96164
commit
4da3f515eb
4 changed files with 70 additions and 17 deletions
2
js/jquery-3.7.0.min.js
vendored
Normal file
2
js/jquery-3.7.0.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
21
js/statbate.js
Normal file
21
js/statbate.js
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
var mobile = false;
|
||||
|
||||
window.addEventListener("resize", function() {
|
||||
if(mobile && window.innerWidth > 805) {
|
||||
mobile = false;
|
||||
$(".icon-menu").removeClass("_active");
|
||||
$(".header_mobile_nav").hide();
|
||||
}
|
||||
});
|
||||
|
||||
function choose(el) {
|
||||
if($(".icon-menu").hasClass("_active")) {
|
||||
$(".icon-menu").removeClass("_active");
|
||||
$(".header_mobile_nav").hide();
|
||||
mobile = false;
|
||||
return;
|
||||
}
|
||||
$(".icon-menu").addClass("_active");
|
||||
$(".header_mobile_nav").show();
|
||||
mobile = true;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue