Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Smooth-scrolling doesn’t work in Safari 6.0.5

  • This topic is empty.
Viewing 1 post (of 1 total)
  • Author
    Posts
  • #45304
    Mag
    Participant

    Hi, I’ve just done this tutorial:
    https://css-tricks.com/snippets/jquery/smooth-scrolling/
    and I switched to Safari to check how it works there and… it doesn’t obviously.
    In Firefox 21.0 & Chrome 27.0 works fine.

    Does anyone know why?

    My second question is:
    What is this function for?:) Does it kind of javascript “reset”?

    function filterPath(string) {
    return string
    .replace(/^//,”)
    .replace(/(index|default).[a-zA-Z]{3,4}$/,”)
    .replace(//$/,”);
    }

    I’m really a newbie when it comes to javascript:( I was just trying to work it out piece by piece and get stuck and the beginning ;)

    Thanks in advance!

Viewing 1 post (of 1 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.