Having just started with Javascript, I am facing some issues on my website... I have implemented the fullPage.js script along with another script for a vertical menu containing hidden submenus. However, the script for the navigation menu is not functioning properly in conjunction with fullPage.js. While it looks great, the anchors are no longer working as expected.
I believe there might be an error in my implementation, but I am unable to pinpoint where that mistake lies.
$(document).ready(function () {
$.fn.fullpage({
// Various fullPage.js options and configurations here
$(function () {
// Script for handling the nav menu behavior when clicked
<div class="section" id="section0">
<!-- SECTION HOME PAGE -->
<h1>earth. home. destroyed.</h1>
<div id="content">
<ul class="menu">
<li class="item0"><a href="#section0">home page</a></li>
<li class="item1"><a>releases</a>
<ul>
<li class="subitem"><a>discography</a></li>
<li class="subitem"><a>videos</a></li>
<li class="subitem"><a>remixes</a></li>
</ul>
<li class="item2"><a href="#section1">subscribe</a></li>
<li class="item3"><a>follow</a>
<ul>
<li class="subitem"><a target="_blank" href="http://www.facebook.com/">facebook</a></li>
<li class="subitem"><a target="_blank" href="http://www.twitter.com/">twitter</a></li>
</ul>
</li>
<li class="item4"><a href="#section2">contact</a></li>
</ul>
</div>
</div>