At the moment I have a listed navigation that has over 15 links
the first 5 links are anchored to sections of the page and are working properly (using a ‘switch’)
what i need to have is 6-10 and 11-15 link to their respective ‘next page’s
and if the page with 6-10 is viewed/selected, so essentially the outcome will be this:
Page 1
1-5 to link within page1
6-10 to link to page2
11-15 to link to page 3
Page 2
1-5 to link to page 1
6-10 to link to sections within page2
11-15 to link to page 3
Page 3
1-5 to link to page 1
6-10 to link to page2
11-15 to link to sections within page3
also, all of these pages are essentially one page that is using ‘pagination’ to toggle between 3 pages
should i use a super complex ‘if’ statement? Or is there a more efficient way of doing this?