Clicking on one of my buttons will change the page URL. My goal is to read the URL and show different contents on load in case someone has sent someone a direct link to a particular section.
I've tried the following in my script with no apparent outcome, no alerts showing upon testing and whatnot.I need this to function before all the content shows to be able to hide #Fundraiser_Categories if needed and show something different.
var vars = , hash;
var hashes = window.location.href.slice(window.location.href.indexOf('#') + 1).split('=');
for(var i = 0; i < hashes.length; i++)
hash = hashes[i].split('=');
vars[hash] = hash;