Skip to content

Instantly share code, notes, and snippets.

@cacheleocode
Created June 10, 2013 22:30
Show Gist options
  • Select an option

  • Save cacheleocode/5752994 to your computer and use it in GitHub Desktop.

Select an option

Save cacheleocode/5752994 to your computer and use it in GitHub Desktop.
detect online status
// insert code for mouse click here
if (window.navigator.onLine)
{
sym.$("US_map_symbol").show();
}
else
{
sym.$("US_map_symbol_offline").show();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment