Slide Down Online Notification

Be sure your league is setup properly before installing any scripts.Setup Video
This directory contains the an online notification popup script , when installed an alert will slide down at the top of your page when a user logs in , has a IR violation or a trade offer. Install this in a footer message and set the "var" settings as you wish. You can adjust the CSS as desired.
The "script.js" file has an uncompressed version that can be edited and hosted on your own server.
All scripts require cache.js and font awesome file to be placed in a header message as the 1st line. Please review the section "Custom Scripts" Here
This script is already included in our custom template. Do not install it again. Custom template users do not need to load cache.js or font awesome.

Online NotificationPlace in footer message

<!-- POPUP NOTIFICATION CSS -->
<style>
  .notification-message {font-weight:bold;height:40px;line-height:40px}
  .notification-default {background-color:#ffd700;color:#000;border-bottom:2px solid #000}
  .notification-online {background-color:#ffd700;color:#000;border-bottom:2px solid #000}
  .notification-trade {background-color:#ff4500;color:#fff;border-bottom:2px solid #000;height:60px;line-height:60px}
  .notification-ir {background-color:#ff0000;color:#fff;border-bottom:2px solid #000}
  .notification-success {background-color:#04b404;color:#ccc;border-bottom:2px solid #ccc}
  .notification-fail {background-color:#ff0000;color:#fff;border-bottom:2px solid #000}
  .notification-warning {background-color:#ff4500;color:#fff;border-bottom:2px solid #0000}
</style>

<!-- POPUP NOTIFICATION SETTINGS -->
<script>
  var includeVisitorNotification = true;
  var includeTradeNotification = true;
  var includeIRNotification = true;
  var includeMsgBoardNotification = true;
  
  //THE BELOW VAR IS USED TO SET THE FREQUENCY OF CHECKS
  var checkEverySecond_notificationVisitor = 60;            // 60 seconds or 1 minute;
  //THE BELOW VARS ARE USED TO SET THE DELAY BEFORE SHOWING SAME OWNER/MESSAGE AGAIN
  var sameVisitor_notification_interval = 5*60;   // 5*60  =  300 seconds or 5  minutes before showing same visitor again
  var trade_notification_interval = 60*60;        // 60*60 = 3600 seconds or 60 minutes
  //THE BELOW VAR IS USED TO SET THE DISPLAY TIME BEFORE HIDING
  var notification_duration_seconds = 2.5;        // 2.5 seconds
</script>

<!-- POPUP NOTIFICATION JS FILE -->
<script src="https://www.mflscripts.com/mfl-apps/popups/notfications/script.js"></script>