Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
check network connectivit
// Register listeners
window.addEventListener("offline", function(){
$("#message").html('WARNING: Internet connection has been lost.').show();
window.addEventListener("online", function(){
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.