Advertisement
Guest User

Untitled

a guest
Sep 15th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script>
  2.   $(function(){
  3.  
  4.     var
  5.       $online = $('.online'),
  6.       $offline = $('.offline');
  7.  
  8.     Offline.on('confirmed-down', function () {
  9.       $online.fadeOut(function () {
  10.         $offline.fadeIn();
  11.       });
  12.     });
  13.  
  14.     Offline.on('confirmed-up', function () {
  15.       $offline.fadeOut(function () {
  16.         $online.fadeIn();
  17.       });
  18.     });
  19.     checkOnLoad: true,
  20.      reconnect: {
  21.     // How many seconds should we wait before rechecking.
  22.     initialDelay: 3,
  23.  
  24.     // How long should we wait between retries.
  25.     delay: (1.5 * last delay, capped at 1 hour)
  26.   }
  27.   });
  28. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement