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.
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.