IR Report

Be sure your league is setup properly before installing any scripts.Setup Video
The IR Report script creates a module you can place on your sites homepage. The report displays all players in your league that are on any teams IR. The report assigns each player to each team and shows details on dates and types of IR designations as well as a popup to display that players injury history. You will need to have font awesome installed. There are a few var settings you can adjust to fit your league settings for IR. Also the base CSS included can be changed to style to match your league.
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.

IR ReportPlace in any HPM

<!-- IR REPORT SETTINGS -->
<script>
var irReport_qualifier = ({ "Q":false , "D":false , "O":true , "I": true , "C":true , "H":true , "S":false }); // Q=Questionable , D=Doubtful , O=Outful , I=Injured , C=Covid , H=Holdout , S=Suspended - set above to true or false for each designation you want to display
var irReport_byeWeekException = true;
var irReport_includeHistory = true;     // Set to false to remove the medical icon table cell with the popup for players injury history
var irReport_franchiseNameIconLogo = 1; // 0:name; 1:icon; 2:logo; 3:icon+name; 4:logo+name
var irReport_violationAfterPlayerLock = "Player is ineligible for IR and will be cut from roster";
var irReport_violationBeforePlayerLock = "WARNING: Player must be activated before kickoff or will be cut from roster";
var irReport_deactivationDate = false;  //Set to true to display date player was placed on IR
var irReport_activationDate = 0;        //If league uses minimum days on IR then set that here to display column; 0 disables column
var irReport_allInjuries = false;       //Display all injured players even those not on fantasy IR
</script>

<!-- IR REPORT HTML -->
<div class="mobile-wrap">
	<table align="center" cellspacing="1" class="homepagemodule report" id="irReport">
		<caption><span>IR Report</span></caption>
		<thead style="display:none"><tr><th class="eligible-wrapper" colspan="8"></th></tr></thead>
		<tbody id="IR_Report">
		</tbody>
		<tfoot><tr><th class="eligible-wrapper" colspan="8"></th></tr></tfoot>
	</table>
</div>

<!-- IR REPORT SCRIPT JS FILE -->
<script src="https://www.mflscripts.com/mfl-apps/injuredReserve/IRreport/script.js"></script>

<!-- IR REPORT CSS -->
<style>
/* style warning for IR violations if dump or lock player */
  .irViolation_AfterPlayerLock{background-color:red!important;color:#fff!important;font-weight:700!important}
  .irViolation_BeforePlayerLock{background-color:#ff0!important;color:#000!important;font-weight:700!important}

/* size icons and logos */
  #irReport .franchise_icon{height:auto;width:150px}
  #irReport .franchise_logo{height:auto;width:150px}

/* ir history popup box style to match light or dark sites */
  .ir-report-modal-content{background-color:#fff;box-shadow:0 0 25px rgba(0,0,0,1)}

/* ir history popup box "x" button to close */
  .ir-report-modal-header .close{position:absolute;z-index:1;cursor:pointer;border-radius:3px;text-align:center;font-weight:700;background:var(--accent,#B82601);border:2px solid var(--accent,#B82601);color:#fff;right:9px;top:10px;height:22px;width:22px;line-height:1.4;opacity:.6;font-size:13px}
  .ir-report-modal-header .close:hover,.ir-report-modal-header .close:focus{background:var(--accent,#B82601)!important;border-color:var(--accent,#B82601)!important;color:#fff!important;opacity:1}

/* ir history popup box player caption area - style to match your sites captions */
  .ir-report-modal-header h2{width:100%;border-left:0;border-right:0;border-top:0;display:inline-block;border-radius:0;font-weight:700;font-size:22px;background:none;padding:8px 5px;text-align:left;line-height:100%;text-transform:uppercase;color:var(--main-four,var(--main,#080e25));padding-bottom:0}
</style>