Forums

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

Home Forums JavaScript jQuery slide Re: jQuery slide

#82268
Mottie
Member

Type in `location.hash` into your console. It’s an empty string.

With `location.href.split(‘:’)[2]` it will return `2` with a url ending in `page:2`.

LOL, I’m usually not surprised about anything IE does or doesn’t do. It just has to be different :P

Edit: Oh, I thought you wrote that plugin… I just found it on github, it’s [this line](https://github.com/lautr/asfar/blob/master/source/asfar.jquery.js#L26) that I’m talking about, but nevermind, I see that the second part of the if statement is looking at the `location.pathname` ([ref](https://github.com/lautr/asfar/blob/master/source/asfar.jquery.js#L38))