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
- Host: GitHub
- URL: https://github.com/mjc-gh/title_flasher.js
- Owner: mjc-gh
- Created: 2011-11-08T16:41:37.000Z (almost 14 years ago)
- Default Branch: master
- Last Pushed: 2012-09-27T19:49:12.000Z (about 13 years ago)
- Last Synced: 2025-03-15T08:33:34.863Z (7 months ago)
- Language: JavaScript
- Homepage:
- Size: 89.8 KB
- Stars: 2
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README
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.