Menu icon Foundation
F6 - Retain Off-Canvas Click State on Page Load (Cookie?)

So I have an off canvas menu and I am using a bit of javascript to trigger an active state when a link is clicked. However... when you load the next page the active state is not remembered. Potentially I can resolve with cookies but I am not having much luck implementing. I installed js.cookie via bower but I am not sure how to set this on a click state.

Any insight is welcome.

Thanks

> j

 

 

foundation 6Click Statecookies

So I have an off canvas menu and I am using a bit of javascript to trigger an active state when a link is clicked. However... when you load the next page the active state is not remembered. Potentially I can resolve with cookies but I am not having much luck implementing. I installed js.cookie via bower but I am not sure how to set this on a click state.

Any insight is welcome.

Thanks

> j