Victa / curtain.js

PROJECT IS NOT MAINTAINED - This plugin allows you to create a web page with multiple fixed panels that unroll with an amusing effect.

Home Page:http://curtain.victorcoulon.fr

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove #name from url

pablosci opened this issue · comments

hi, i just implement curtain.js on a project and it works great
my question is, is there anyway to remove #anchorlinkname from browser url?
thanks a lot

I know this is an old issue and the plugin isn't being maintained anymore, but for anyone wanting to not have the hashes appened to the address bar – here's a fix:

Remove/comment out lines 459-464 in the setHash method in curtains.js, i.e. the following:

if(history.pushState) {
    history.pushState(null, null, '#'+hash);
}
else {
    location.hash = hash;
}

@Victa
Hi! Maybe You add new option?
for ex:
hash: true/false