First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,38 @@
|
||||
var $uperLevel = $(".up-level");
|
||||
|
||||
resetMenu = function(){
|
||||
$($uperLevel).removeClass('hover');
|
||||
}
|
||||
|
||||
hideonMobile = function(){
|
||||
$('a[href*="#"]').each(function() {
|
||||
$(this).addClass('hideonmobile');
|
||||
});
|
||||
}
|
||||
|
||||
addMobileMenu = function(){
|
||||
var $menu = $(".cssplayMenu");
|
||||
var menutext = "<div class='menu-tougle'><span class='menu-tougle__inner'></span><span class='menu-tougle__inner'></span><span class='menu-tougle__inner'></span></div>"
|
||||
$menu.prepend(menutext);
|
||||
$($menu).bind("click",function(){
|
||||
$($menu).toggleClass('active');
|
||||
resetMenu();
|
||||
} );
|
||||
|
||||
|
||||
}
|
||||
|
||||
preventClickUperLevel = function(){
|
||||
$($uperLevel).bind("click",function(){
|
||||
$(this).preventDefault();
|
||||
} );
|
||||
|
||||
}
|
||||
|
||||
preventClickUperLevel();
|
||||
// hideonMobile();
|
||||
addMobileMenu();
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user