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

The issue with the substitute symbol. I can't figure it out. #111

Open
alexey-saransk opened this issue Oct 7, 2018 · 1 comment
Open

Comments

@alexey-saransk
Copy link

Hi bro
https://yadi.sk/d/UfBZbjUPJcD3Kw - example

In this example, I want to remove the slash "/". It is necessary that after the " # "was not"/", and everything else should remain the same. I'm a very bad programmer. Please help me.

@kswedberg
Copy link
Owner

Hi,

You can do that pretty easily, but you'll lose smooth scrolling on page reload and when using the back button.

In your example, replace everything inside the $(document).ready() callback with this:

  $('.smooth_sc').smoothScroll({
     afterScroll: function() {
        location.hash = this.hash;
     }
  });

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

2 participants