18F / 2015-foia-hub

A consolidated FOIA request hub.
Other
49 stars 17 forks source link

Adding in close persistence for the banner #725

Closed theresaanna closed 9 years ago

theresaanna commented 9 years ago

When the page loads, the banner is hidden by default, until JS checks localStorage for the flag keep-banner-closed. If it doesn't equal "1", the banner will display.

keep-banner-closed gets set to "1" when someone clicks the close button.

The closed banner persistence will not work for IE7 and older.

The banner will stay closed forever or until the user clears localStorage in their browser, which I don't think many users do.