Check if user is Online or Offline using Offline.js

Turn off internet connection from your system to check.