See if this works...
See if this works...

Link:
http://stackoverflow.com/questions/16242389/how-to-check-internet-connec
tion-in-angularjs/16242703#16242703

Chan4077/chan4077.github.io,Chan4077/chan4077.github.io