Forums

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

Home Forums JavaScript Anythingslider several questions Re: Anythingslider several questions

#104870
Mottie
Member

Ahh you’re right, I missed this bit of code in the “onInitialized” callback (updated demo):

    // Callback when the plugin finished initializing
onInitialized: function(e, slider) {
if (window.location.hash) {
slider.gotoPage(window.location.hash);
}
slider.$items.find('h6').each(function(){
// add some prefix to the id so setting the hash doesn't
// make the page jump
this.id = "tmp_" + this.id;
});
},