satu halaman nav cdn
// one page nav cdn
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery.sticky/1.0.4/jquery.sticky.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-one-page-nav/3.0.0/jquery.nav.min.js"></script>
// initailize sticky.js
$("#mainPrimary").sticky({ topSpacing: 0 });
// initailaize one page nav.js
$('.menu').onePageNav({});
MD RAZZAK