This repository has been archived by the owner on Jan 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a36bd48
commit 36bf1db
Showing
3 changed files
with
38 additions
and
100 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,18 @@ | ||
/* Toggle between adding and removing the "responsive" class to topnav when the user clicks on the icon */ | ||
// function myFunction() { | ||
// var x = document.getElementById("myTopnav"); | ||
// if (x.className === "topnav") { | ||
// x.className += " responsive"; | ||
// } else { | ||
// x.className = "topnav"; | ||
// } | ||
// } | ||
$(function(){ | ||
"use strict" | ||
|
||
let isMenuShown = false; | ||
|
||
$('.mobile-menu-button').click(function(){ | ||
if(!isMenuShown){ | ||
$('#showedClickable').show("slow"); | ||
$('main').css('padding-top', '0px') | ||
isMenuShown = true; | ||
}else{ | ||
$('#showedClickable').hide("slow"); | ||
$('main').css('padding-top', '68px') | ||
isMenuShown = false; | ||
} | ||
|
||
}) | ||
}) |