I have used the following code to change the url hash as I click through my slider, however I am now wondering if it is possible that when a user changes the slide number themselves in the url, the slide will change according to the entered hash, sort of the reverse of what i have already, any help is very appreciated thanks.
var hash = $(".active").data("id");
location.hash = hash;