Skip to content

Commit

Permalink
js update
Browse files Browse the repository at this point in the history
js update
  • Loading branch information
Josh1005GH committed Jul 6, 2024
1 parent ad6691d commit 63d8142
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 10 deletions.
7 changes: 0 additions & 7 deletions script.js

This file was deleted.

Binary file added .DS_Store
Binary file not shown.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
</div>
</nav>
<nav id="hamburger-nav">
<div class="logo">Josh D.</div>
<div class="logo" >Josh D.</div>
<div class="hamburger-menu">
<div class="hamburger-icon" onclick="toggleMenu()">
<span></span>
Expand All @@ -35,6 +35,6 @@
</div>
</div>
</nav>
<script src=" script.js"></script>
<script src="script.js"></script>
</body>
</html>
2 changes: 1 addition & 1 deletion mediaqueries.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
@media screen and (max-width: 1100px){
@media screen and (max-width: 1200px){
#desktop-nav{
display: none;
}
Expand Down
7 changes: 7 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
function toggleMenu() {
const menu = document.querySelector(".menu-links");
const icon = document.querySelector(".hamburger-icon");
menu.classList.toggle("open");
icon.classList.toggle("open");
}

0 comments on commit 63d8142

Please sign in to comment.