Skip to content

Client: ui utils.js

Brian Hanifin edited this page Jul 28, 2014 · 5 revisions

User Interface Utilities

I created this as a catch-all for the toolbar and settings drawer. It makes a lot of sense to merge dropdown.js with this file, so I just did that.

Some reusable functions are also included, such as showNotification() and lots of querystring parameters.

Querystring Parameters

Usage:

  • http://localhost:1337/?drawer=true
  • http://localhost:1337/?toolbar=false

Users

  • ?drawer=true opens the drawer
  • ?toolbar=false hides the toolbar

Developers

  • ?experiments=true hamburger?
  • ?mute=true do not use this -- seriously -- it will mute all alarms!!!
  • ?notify=Hello,_world! underscores will become spaces