Armchair screenshot

What is Armchair?

Armchair is a JavaScript utility that handles cookie notifications and website navigation behaviour on your site. It manages when and where cookie consent banners appear, remembers user choices, and adjusts your site's layout to prevent overlapping elements. The tool also improves navigation by handling dropdown menus, sticky headers that respond to scroll position, and highlighting which page users are currently viewing. It's useful for any website owner who needs to comply with cookie consent regulations whilst keeping the user experience clean and functional.

Key Features

Cookie notification management

displays banners and hides them after user dismissal using local storage

Sticky navigation adjustments

repositions fixed navbars to avoid overlapping with cookie notifications

Dropdown menu toggling

manages open and closed states for navigation submenus

Scroll-based navbar behaviour

applies CSS classes to sticky headers based on scroll position

Active link highlighting

automatically marks the current page link as active based on URL path

User preference persistence

remembers cookie notification dismissals so users don't see repeated banners

Pros & Cons

Advantages

  • Handles multiple navigation problems in one script rather than requiring separate tools
  • Remembers user choices locally so notifications don't reappear on return visits
  • Automatically adjusts layout to prevent visual conflicts between elements
  • Works with existing navigation structures without major site redesign

Limitations

  • Limited to front-end functionality; doesn't integrate with backend cookie management systems
  • Requires manual setup and customisation for each website's specific navigation structure
  • Local storage approach means cookie preferences aren't synced across devices or browsers

Use Cases

Small to medium websites needing basic GDPR cookie compliance without complex consent platforms

Sites wanting to improve mobile experience by repositioning sticky headers and notifications

Websites with dropdown menus that need reliable toggle functionality

Any site aiming to reduce repeated cookie banner fatigue for returning visitors