Skip to content

Commit

Permalink
rename variables, removed unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
HectorVilas committed Apr 29, 2023
1 parent 44a752f commit 72ba290
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions modules/functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ export function goToPage(page) {
export function toggleNav() {
const nav = document.querySelector('#navigation');
const isOpen = !nav.classList.contains('nav-show');
const navBtn = document.querySelector('#menu-button');
const line0 = document.querySelector('.menu-button-line-0');
const line1 = document.querySelector('.menu-button-line-1');
const line2 = document.querySelector('.menu-button-line-2');
Expand All @@ -75,12 +74,12 @@ export function toggleNav() {
'M 5 20 L 35 20',
'M 5 30 L 35 30',
];
const closedLeft = 8;
const closedRight = 27;
const crossLeft = 8;
const crossRight = 27;
const lineDrawMenuOpen = [
`M ${closedLeft} ${closedLeft} L ${closedRight} ${closedRight}`,
`M ${crossLeft} ${crossLeft} L ${crossRight} ${crossRight}`,
`M 20 20 L 20 20`,
`M ${closedLeft} ${closedRight} L ${closedRight} ${closedLeft}`,
`M ${crossLeft} ${crossRight} L ${crossRight} ${crossLeft}`,
];
nav.classList.toggle('nav-show');

Expand Down

0 comments on commit 72ba290

Please sign in to comment.