title: Cannot click anchor links
body: <p>I'm designing this website at the moment for a local business and I've hit a bit of a brick wall that I can't figure out. I have the menu bar that I coded but I can't seem to link the "Contact Us". I figured that maybe it was an issue with the page overlay on the site (because I'm using an <code>overlay</code> class to darken the photos that slide) but I changed the <code>z-index</code> to make sure that the menubar sat on top of everything. What's even stranger is that all my other links work; meaning that I have links are local to the webpage (ones that scroll to specific places on page) and they all work fine! </p>
  
  <p>I've combed through my code but I'm not sure what I'm missing, but I would assume it would have to be something with the overlay that I'm missing.</p>
  
  <p>Here's the webpage: <a href="http://rrcycleinc.com" rel="nofollow noreferrer">RRCycleinc.com</a></p>
  
  <p>And here is my code for the whole 'splash' page, if you don't want to go through the trouble of using Google Inspect Element haha.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>$(document).on('click', 'a', function(event) {
    event.preventDefault();
    $('html, body').animate({
      scrollTop: $($.attr(this, 'href')).offset().top
    }, 500);
  });</code></pre>
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.menubar {
    position: absolute;
    z-index: 150;
  }
  
  .menubar ul,
  li,
  a {
    display: inline-block;
    text-decoration: none;
    color: white;
    padding: 10px;
    z-index: 1000;
  }
  
  .menubar a:hover {
    text-decoration: underline;
  }
  
  .menubar.two a {
    color: black;
  }
  
  .slider-contain {
    height: 100vh;
    width: 100%;
    overflow: hidden;
    z-index: -1;
  }
  
  .a-slide {
    background-size: cover !important;
  }
  
  .slick-slider {
    height: 100%;
    width: 100%;
    z-index: -1;
  }
  
  .slick-list,
  .slick-track {
    height: 100%;
  }
  
  .overlay {
    height: 100%;
    width: 100%;
    position: absolute;
    z-index: 101;
    background: rgba(0, 0, 0, 0.6);
  }
  
  .overlay p {
    color: white;
    position: absolute;
    font-size: 30px;
    width: auto;
    top: 85%;
    font-family: 'Caveat', cursive;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%)
  }
  
  .overlay h3 {
    font-size: 55px;
    color: white;
    width: auto;
    top: 40%;
    position: absolute;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%)
  }
  
  .overlay h2 {
    font-size: 30px;
    color: white;
    width: auto;
    top: 90%;
    position: absolute;
    font-family: 'Caveat', cursive;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%)
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"&gt;&lt;/script&gt;
  
  &lt;!-- Start Menu --&gt;
  &lt;div class="menubar"&gt;
    &lt;a href="#" class="logo"&gt;&lt;/a&gt;
    &lt;ul class="mainmenu"&gt;
      &lt;li&gt;&lt;a style="color:goldenrod;" href="#home"&gt;Home&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#services"&gt;Services&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#about"&gt;About&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="#portfolio"&gt;Part Catalogs&lt;/a&gt;&lt;/li&gt;
      &lt;li&gt;&lt;a href="http://google.com"&gt;Contact / Hours&lt;/a&gt;&lt;/li&gt;
    &lt;/ul&gt;
  &lt;/div&gt;
  &lt;!-- Splash Page Slider + Overlay info --&gt;
  &lt;div class="slider-contain"&gt;
    &lt;div class="overlay"&gt;
      &lt;!--&lt;img id="logo" align="right" src="img/logo.png" alt=""&gt; (Logo For Later Use)--&gt;
      &lt;h3&gt;R&amp;R Cycle Inc.&lt;/h3&gt;
      &lt;p&gt;Service and Repair for All Makes and Models Since 1979!&lt;/p&gt;
      &lt;h2&gt;Call Us Today: 845-336-5910&lt;/h2&gt; &lt;/div&gt;
    &lt;div class="slick-slider"&gt;
      &lt;div class="a-slide" style="background: url('img/slider-4.jpeg') no-repeat center center"&gt;&lt;/div&gt;
      &lt;div class="a-slide" style="background: url('img/slider-2.jpeg') no-repeat center center"&gt;&lt;/div&gt;
      &lt;div class="a-slide" style="background: url('img/slider-3.jpeg') no-repeat center center"&gt;&lt;/div&gt;
      &lt;div class="a-slide" style="background: url('img/slider-5.jpg') no-repeat center center"&gt;&lt;/div&gt;
      &lt;div class="a-slide" style="background: url('img/sunset-summer-motorcycle.jpg') no-repeat center center"&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Error comes from Javascript.</p>
  
  <p>Appreciate any feedback on the matter / on my code!</p>