Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <script>
- $(function(){
- var
- $online = $('.online'),
- $offline = $('.offline');
- Offline.on('confirmed-down', function () {
- $online.fadeOut(function () {
- $offline.fadeIn();
- });
- });
- Offline.on('confirmed-up', function () {
- $offline.fadeOut(function () {
- $online.fadeIn();
- });
- });
- checkOnLoad: true,
- reconnect: {
- // How many seconds should we wait before rechecking.
- initialDelay: 3,
- // How long should we wait between retries.
- delay: (1.5 * last delay, capped at 1 hour)
- }
- });
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement