Version 0.0.3 of jQuery Sticky Alerts Plugin Now Available

I’ve released version 0.0.3 of my Sticky Alerts jQuery plugin. It’s available on GitHub and is now indexed at plugins.jquery.com.

I’ve added a feature to remember if the bar has been closed or not. This is done via cookies, and there’s an option to set. The option, cookieRememberDays, default to 2. If you want to disable it (ie: bar will appear every time the page is loaded no matter what), you need to set cookieRememberDays to a value of 0.

To keep the bar closed for 7 days, do something like this:

$('#alert-container').stickyalert({
  barFontColor:'#eee',
  barColor:'#222',
  barFontSize: '1.1rem',
  barText:'Hey, need some web work done? Give me a shout!',
  barTextLink:'http://longren.io/work-with-me/',
  cookieRememberDays: '7'
});

To keep it as-is, and make the bar open on every page load, do this:

$('#alert-container').stickyalert({
  barFontColor:'#eee',
  barColor:'#222',
  barFontSize: '1.1rem',
  barText:'Hey, need some web work done? Give me a shout!',
  barTextLink:'http://longren.io/work-with-me/',
  cookieRememberDays: '0'
});

Head on over to GitHub for a download link, or click here to download version 0.0.3 directly from the GitHub tag.

0

Well, now what?

Work with Me

I'm available for hire and always taking new clients, big and small. Got a project or an idea you'd like to discuss? Startup plan but no developer to make it happen? Just get in touch, I'd love to see if I can help you out!

Leave some Feedback

Got a question or some updated information releavant to this post? Please, leave a comment! The comments are a great way to get help, I read them all and reply to nearly every comment. Let's talk. 😀

Longren.io is proudly hosted by DigitalOcean

DigitalOcean

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.