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!