Created
January 6, 2013 12:52
-
-
Save glynrob/4466926 to your computer and use it in GitHub Desktop.
List webapp detect if online
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// display if they are online or not | |
if (!navigator.onLine){ | |
$('#status').html('Offline'); | |
} else { | |
$('#status').html('Online'); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment