An open API service indexing awesome lists of open source software.

https://github.com/mjc-gh/title_flasher.js

Document Title Flash for Facebook style page title alerts
https://github.com/mjc-gh/title_flasher.js

Last synced: 7 months ago
JSON representation

Document Title Flash for Facebook style page title alerts

Awesome Lists containing this project

README

          

This is a simple script that lets you flash a message via the document page title.

It is best to only call the flasher when the page is not visible. See the following gist for a simple Page Visiblity Polyfill for jQuery (it adds $.visibilityState):

https://gist.github.com/1781798

If you do use this gist, please read the comments and note the difference between the real HTML5 API and using the focus\blur failback

Note, this code is placed under the jQuery object for namespace purposes.