Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set floor as home #70

Open
seanbarney opened this issue Jul 24, 2015 · 0 comments
Open

Set floor as home #70

seanbarney opened this issue Jul 24, 2015 · 0 comments

Comments

@seanbarney
Copy link

Hello -- Is there a way to set a specific floor as the home page? For example, my "home" page is floor [6,2], so that from "home" i can scroll up several floors.

I can get the site to always send to this page by adding this within my script where I initialize ascensor:

$( document ).ready(function() {
location.hash = "home";
ascensorInstance.scrollToFloor('home');
});

But it does not allow anyone to link back to any other page on the site, as any time the site loads it sends the user to home regardless. Is there a way to set a floor as the default home page, but still allow the functionality to link directly to other floors/pages in the site?

Thanks! Amazing plugin!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant