Welcome to the Treehouse Community
Looking to learn something new?
Jonathan GrieveTreehouse Moderator 90,705 Points
jQuery Notification Plugin
I know my account is on pause at the moment but I've got something of a mystery on my hands regarding what should be a simple implementation of a notification bar plugin and I thought I'd open it out to Treehouse users.
The plugin can be easily found and downloaded here. Notification Bar Demo
But I want to implement it on my own site. My Site and I've created a demo page to try and fix it up.
The code is there, the assets are there, the CSS is right. I've even tried changing the stacking order as the CSS for the bar is in an external file.
I don't see that it's being conflicted with other styles on the rest of my site. I've linked to the latest version of jQuery.
I want to be able to close the bar but the open state is up first and it leaves the red bar open. I can work around this by setting the jQuery to take down the whole bar by clicking anywhere on the red space. But that's not what it was designed to do and I'd like to get to the bottom of whats behind this issue if possible,
Any ideas? :)
I think you might be getting the terms confused. The 'open state' is when the bar is visible (and the close button is shown), and is the default (at least in the demo from the plugin site).
When I open your site, the bar is visible and closes (and re-opens) with the buttons like I would expect it to.
What was the behaviour you were expecting, from page load through to closing/opening the bar?
Or was it a styling issue?