Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Found solution. Anchor is working!! #338

Open
Nooriq opened this issue Sep 3, 2018 · 3 comments
Open

Found solution. Anchor is working!! #338

Nooriq opened this issue Sep 3, 2018 · 3 comments

Comments

@Nooriq
Copy link

Nooriq commented Sep 3, 2018

In line 366 add your custom class="" For example : (anchor)
IN [ jquery.onepage-scroll.js ]

if(settings.pagination == true)  {
      $(".onepage-pagination li a,  .anchor").click(function (){
        var page_index = $(this).data("index");
        el.moveTo(page_index);
      });
}  

**IN html add data-index="Number" href="id & number" also your class **
<a href="#1" class="anchor" data-index="1">To section 2</a>

@MATEY15
Copy link

MATEY15 commented Sep 26, 2018

Thank you : )

@FraGjSM
Copy link

FraGjSM commented Sep 30, 2018 via email

@Nooriq
Copy link
Author

Nooriq commented Oct 15, 2018

Привет,это куда надо добавить ?03.09.2018, 12:43, "Nursultan" [email protected]:In line 366 add your custom class="" For example : (anchor) IN [ jquery.onepage-scroll.js ] if(settings.pagination == true) { $(".onepage-pagination li a, .anchor").click(function (){ var page_index = $(this).data("index"); el.moveTo(page_index); }); } **IN html add data-index="Number" href="id & number" also your class ** To section 2 —You are receiving this because you are subscribed to this thread.Reply to this email directly, view it on GitHub, or mute the thread.

Привет в jquery.onepage-scroll.js 366 строку добавляешь свой класс например "link"
А в html пишешь так <a href="#1" class="anchor link" data-index="1">To section 2</a>
то есть добавляешь тот класс link и указываешь id куда делать сколл

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants