An angular directive module that sets a rootscope variable of online to either true or false depending on your current network status.