Site is Located @ beattrainsoundsystem.com/home
I'm using serialScroll to animate a number of divs containing dancing characters, and using LocalScroll to animate the content divs. My issue is that when you try and load a URL with a hash ( for example beattrainsoundsystem.com/home#store) the character divs do not animate to the correct position. I know that to make this happen, I need to create a conditional function for the "start:" setting, to change the "start:" value depending on the hash in the URL. As somewhat of a novice at jQuery, I'm not exactly sure how to code this.
I'm already using a URI parser plugin to return the hash in the URL, so for "http://www.beattrainsoundsystem.com/home#store"
var urlHash = $.url.attr('anchor');
will return "store"
So what I need is a function that says:
if (urlHash == home) {
var start = 0
} else if (urlHash == mixes) {
var start = 1,
} else if (urlHash == contact) {
var start = 2,
}
This is obviously not coded correctly, but is a conceptualization of the script that I need to make this work.
Thanks for your help!