diff --git a/.DS_Store b/.DS_Store new file mode 100644 index 0000000..02a0be4 Binary files /dev/null and b/.DS_Store differ diff --git a/css/scroll_nav.css b/css/scroll_nav.css index 73586e3..5d984cf 100644 --- a/css/scroll_nav.css +++ b/css/scroll_nav.css @@ -1,5 +1,5 @@ -.pa-fixed-header { - background-color: rgb(24, 24, 24) !important; - box-shadow: 0 1px 6px 0 rgb(0 0 0 / 20%); - transition: background-color 0.25s ease-out; +.pa-fixed-header { + background-color: rgb(24, 24, 24) !important; + box-shadow: 0 1px 6px 0 rgb(0 0 0 / 20%); + transition: background-color 0.25s ease-out; } \ No newline at end of file diff --git a/img/.DS_Store b/img/.DS_Store new file mode 100644 index 0000000..908f667 Binary files /dev/null and b/img/.DS_Store differ diff --git a/index.html b/index.html index e81069e..7dd56f7 100644 --- a/index.html +++ b/index.html @@ -64,7 +64,7 @@

Aug 12 - 14

-

40 spots Left

+

40 spots left

diff --git a/js/scroll_nav.js b/js/scroll_nav.js index 41c849b..4c2fdb7 100644 --- a/js/scroll_nav.js +++ b/js/scroll_nav.js @@ -1,30 +1,30 @@ - -// Toggle the .pa-fixed-header class when the user -// scroll 100px - -window.onscroll = () => {scrollNavbar()}; - -scrollNavbar = () => { - // Target elements - const navBar = document.getElementById("navBar"); - const links = document.querySelectorAll("#navBar a"); - - if (document.documentElement.scrollTop > 100) { - navBar.classList.add("pa-fixed-header"); - - // Change the color of links on scroll - for (let i = 0; i < links.length; i++) { - const element = links[i]; - element.classList.add('text-black'); - } - - } else { - navBar.classList.remove("pa-fixed-header"); - - // Change the color of links back to default - for (let i = 0; i < links.length; i++) { - const element = links[i]; - element.classList.remove('text-black'); - } - } -} + +// Toggle the .pa-fixed-header class when the user +// scroll 100px + +window.onscroll = () => {scrollNavbar()}; + +scrollNavbar = () => { + // Target elements + const navBar = document.getElementById("navBar"); + const links = document.querySelectorAll("#navBar a"); + + if (document.documentElement.scrollTop > 100) { + navBar.classList.add("pa-fixed-header"); + + // Change the color of links on scroll + for (let i = 0; i < links.length; i++) { + const element = links[i]; + element.classList.add('text-black'); + } + + } else { + navBar.classList.remove("pa-fixed-header"); + + // Change the color of links back to default + for (let i = 0; i < links.length; i++) { + const element = links[i]; + element.classList.remove('text-black'); + } + } +}