Skip to content

Set floor as home #70

@seanbarney

Description

@seanbarney

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions