title: fullpage js - disable navigation back to the landing page
body: <p>I am using fullPage JS on my website, and I have also enabled navigation the right side of the page. I have a landing page, and once scrolled down, I don't want to enable the users to be able to scroll back to the landing page. For this requirement, I am facing two issues:</p>
  
  <ol>
  <li><p>I have disabled scrolling up on the second page so that the user can't scroll up. But I have noticed than on scrolling very fast the user can still reach the landing page. What is the fix for this?</p></li>
  <li><p>I have enabled the navigation dots on the website, using which I can scroll to the very top. How can I disable navigation on the first dot?</p></li>
  </ol>
  
  <p>Link to the website:
  <a href="https://rimildeyjsr.github.io/st.anthony" rel="nofollow noreferrer">https://rimildeyjsr.github.io/st.anthony</a></p>
  
  <p>I am also attaching a link to the github repository:  <a href="https://github.com/rimildeyjsr/st.anthony" rel="nofollow noreferrer">https://github.com/rimildeyjsr/st.anthony</a></p>
  
  <p>Options used in the plugin :</p>
  
  <pre><code>$('#fullpage').fullpage({
                      //names for the anchors of the pages
                      anchors:['welcome','home','administration_page','faculty_section','staff_section'],
                      navigation: true,
                      navigationPosition: 'right',
                      fixedElements: '#toggle,#overlay',
  
                      afterLoad : function(anchorLink,index) {
                          //after loading a section, perform these functions
  
                          if (index == 1 || anchorLink == 'welcome'){
                              //show the other sections now that the page has loaded
                              $('#fp-nav').hide();
                              $('#section1').show();
                              $('#section2').show();
                              $('#section3').show();
                              $('#section4').show();
                              $('#toggle').hide();
  
                          }
                          if (index == 2 || anchorLink == 'home'){
                              $('#fp-nav').show();
                              $('#toggle').show();
                              if (window.innerWidth &lt; 480) {
                                  $('.school-logo2').fadeIn();
                              }
                              $('.school-name').addClass('come-in');
                                  slideEffect();
  
                              $.fn.fullpage.setAllowScrolling(false,'up');
                              $.fn.fullpage.setKeyboardScrolling(false, 'up');
                          }
  
                          if(index == 3 || anchorLink == 'administration_page'){
                              $('#fp-nav').show();
                              $('#toggle').show();
                              $('.offscreen-logo').addClass('come-in-logo').one(animationEnd,function(){
                                 display();
                              });
                              $.fn.fullpage.setAllowScrolling(true,'up');
                              $.fn.fullpage.setKeyboardScrolling(true, 'up');
                          }
  
                          if(index == 4 || anchorLink == 'faculty_section') {
                              $('#fp-nav').show();
                              $('#toggle').show();
                              $('#section3 .section-heading').addClass('animated fadeInDown');
                              $('#section3 .card').addClass('animated fadeInUp');
                              $.fn.fullpage.setAllowScrolling(true,'up');
                              $.fn.fullpage.setKeyboardScrolling(true, 'up');
                          }
                          if(index == 5 || anchorLink == 'staff_section') {
                              $('#fp-nav').show();
                              $('#toggle').show();
                              $('#section4 .section-heading').addClass('animated fadeInDown');
                              $('#section4 .card').addClass('animated fadeInUp');
                              $.fn.fullpage.setAllowScrolling(true,'up');
                              $.fn.fullpage.setKeyboardScrolling(true, 'up');
                          }
                      }
  
                  });
  </code></pre>