Skip to content

When a user is away playing in another browser tab you can still feed them with important imformation. This is a great extension to AJAX calls.

Notifications You must be signed in to change notification settings

rickyH/tabAlert

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

tabAlert

- When a user is away playing in another browser tab you
  can still feed them with important imformation. This is
  a great extension to AJAX calls.

Screenshot

How to use

1.	Updates the document.title to until the user returns to the tab.

			var ex1 = new tabAlert({
				text: 'You Have one new message' 
			});

2. Goal Flash Ticker.
			
			var ex2 = yourInstance = new tabAlert({
				text: 'GOAL FLASH: Manchester United 0:1 LEEDS UNITED (Beckford 19)',
				ticker: true
			});
			
			
			// to update the text use
			ex2.updateText("FINAL SCORE: Manchester United 0:1 LEEDS UNITED");


3. Goal Flash Ticker. Flashes live data but only loops once!

			var ex3 = yourInstance = new tabAlert({
				text: 'GOAL FLASH: Manchester United 0:1 LEEDS UNITED (Beckford 19)',
				ticker: true,
				onLoop: function(){
					this.revert();
				}
			});

About

When a user is away playing in another browser tab you can still feed them with important imformation. This is a great extension to AJAX calls.

Resources

Stars

Watchers

Forks

Packages

No packages published