Playoff Seedings

Be sure your league is setup properly before installing any scripts.Setup Video
The Playoff Seedings scripts creates a report you can place anywhere on your site that will display the current projected playoff seedings for your league.
There are a lot of var settings for the various types of leagues and playoff setups, please review them and do not change any var setting that doesn't apply to your league setup, you can remove it or leave it alone.
All scripts require 1 instance of the cache.js file to be placed in a header message as the 1st line
<script src="https://www.mflscripts.com/mfl-apps/global/cache.js"></script>

Playoff SeedingsPlace in any HPM

<!-- PLAYOFF SEEDINGS CSS -->
<style>
/* set width or heights for franchise icons or logos */
  .franchise-icon{width:150px}

/* playoff popup box style to match light or dark sites */
  .playoff-report-modal-content{background:#fff;color:#000}

/* playoff popup box "x" button to close */
  .playoff-report-modal-header .close{position:absolute;z-index:1;cursor:pointer;border-radius:3px;text-align:center;font-weight:700;background:red;border:2px solid #000;color:#fff;right:9px;top:10px;height:22px;width:22px;line-height:1.4;font-size:13px}
  .playoff-report-modal-header .close:hover,.playoff-report-modal-header .close:focus{background:#fff;border-color:#000;color:red}

/* playoff popup box player caption area - style to match your sites captions */
  .playoff-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:red;padding-bottom:0}
  
#playoff-report-modal-content .seed-group ul,#playoff-report-modal-content .still-tied ul{font-size:smaller;padding-left:20px}
#playoff-report-modal-content .seed-group ul ul{font-size:100%;padding-left:10px}

#playoff-report-modal-content .still-tied li::before,#playoff-report-modal-content .seed-group ul ul li::before{content:"\f005";font-family:FontAwesome;padding-right:3px;color:red}
#playoff-report-modal-content .still-tied{font-style:italic;margin:10px;margin-bottom:0;border-top:2px solid #000;border-bottom:2px solid #000;padding:10px 0}

.seed-advanced{font-weight:700}
.seed-eliminated{text-decoration:line-through}
.tie-broken{font-weight:700;text-align:center;font-size:large;padding-top:10px}
.tie-broken-team{text-align:center}
</style>

<!-- PLAYOFF SEEDINGS HTML -->
<div id="playoffTable"></div>

<!-- PLAYOFF SEEDINGS SETTINGS -->
<script>
var playoffAutoRun = true;              // The script makes several API calls so to avoid the potential for "too many requests" error it is suggested to set this to false so the table only populates when link is clicked.
var playoffNameIconLogoAbbrev = 0;  	// 0=name, 1=icon, 2=logo, 3=abbrev, 4=icon_name, 5=logo_name
var numDivisionTeams = 1;           	// Set to 1 for only one division winner per division
var numWildCardTeams = 0;           	// Set the total number of wildcard teams (if league uses conferences then this is by conference not total)
var divisionTieBreaker = [1,4,9,0]; 	// Tiebreaker array for division winners (SEE FULL TIEBREAKER LIST BELOW)
var wildCardTieBreaker = [1,4,9,0]; 	// Tiebreaker array for wildcard winners (SEE FULL TIEBREAKER LIST BELOW)
var displayColumns = [6,8];         	// Columns to display  (SEE FULL COLUMNS LIST BELOW)
var useSweepRule = false;           	// For 3 or more head to head tiebreaker team must sweep opponents or be swept by opponents to advance or be eliminated (NFL Rule for wildcard tiebreaker) 
var useWinPctRule = 1;              	// For head to head 0 - use only for 2 teams tied; 1 - MFL Default; 2 - 1 game minimum req'd; 3 - Must have played all the tied teams at least once
var useStartOverRule = false;       	// Start back to the first tiebreaker after a team advances or eliminated from the tiebreaker process (NFL Rule)
var useDivisionBestRule = false;    	// When assigning wildcard tiebreakers always compare best remaining team by division (NFL Rule)
var useDivisionIcon = false;        	// If set to true will include a coloured square to identify divisions
var specialSeed = new Array();      	// List special seed tiebreakers if any to assign additional wildcard spot(s)
var specialSeedTeams = 1;               // List the number of teams to assign special seed.  Only applicable if specialSeed is set.
var numByeTeams = 0;                 	// Set the total number of teams with a bye to create a separate table for those teams
var mergeNonByeTeams = true;            // If bye teams have been set this will merge all non bye teams that qualified for playoffs into one table 
var commonGameMinGP = 4;
var scoringDecimals = 2;

// Caption title for each playoff table
var titleDivisionWinner    = "Projected Division Winners";
var titleDivisionWinnerTwo = "Projected Division Winners 2";
var titleByeTeams          = "Projected Teams with Bye";
var titleWildCardWinner    = "Projected Wildcard Winners";
var titleNonPlayoffTeam    = "Projected Out of the Playoffs";
var titlePlayoffTeam       = "Projected Playoff Teams";

// FULL TIEBREAKER LIST
// 0:by default
// 1:Overall Win %
// 2:Div. Win %
// 3:Div. PF
// 4:Overall PF
// 5:Victory Points
// 6:Power Rank
// 7:All-Play Win %
// 8:Head-to-Head
// 9:Coin Flip
// 10:Non-Div. Win %
// 11:Non-Div. PF
// 12:Reverse PA
// 13:Conf. Win %
// 14:Conf. PF
// 15:Non-Conf. Win%
// 16:Non-Conf. PF
// 17:Common Games Win%
// 18:Head-to-Head PF
// 19:Strength of Schedule
// 20:Strength of Victory
// 21:Potential Points
// 22:Offensive Points
// 23:Defensive Points
// 24:Custom 1
// 25:Custom 2
// 26:Custom 3
// 27:Best Ball Win%
// 28:Best Ball PF
// 29:Best Ball PA

//FULL COLUMNS LIST
// 3:W
// 4:L
// 5:T
// 6:Record
// 7:Win %
// 8:PF
// 9:PA
// 10:Div-W
// 11:Div-L
// 12:Div-T
// 13:Div-Record
// 14:Div-Win %
// 15:Div-PF
// 16:Power
// 17:VP
// 18:AllPlay-W
// 19:AllPlay-L
// 20:AllPlay-T
// 21:AllPlay-Record
// 22:AllPlay-Win %
// 23:NonDiv-W
// 24:NonDiv-L
// 25:NonDiv-T
// 26:NonDiv-Record
// 27:NonDiv-Win %
// 28:NonDiv-PF
// 29:Conf-W
// 30:Conf-L
// 31:Conf-T
// 32:Conf-Record
// 33Conf-Win %
// 34:Conf-PF
// 35:NonConf-W
// 36:NonConf-L
// 37:NonConf-T
// 38:NonConf-Record
// 39:NonConf-Win %
// 40:NonConf-PF
// 41:Head-to-Head Win %
// 42:SOS-Record
// 43:SOS-Win %
// 44:SOV-Record
// 45:SOV-Win %
// 46:PP
// 47:OP
// 48:DP
// 49:Custom Title 1
// 50:Custom Title 2
// 51:Custom Title 3
// 52:BB-W
// 53:BB-L
// 54:BB-T
// 55:BB-Record
// 56:BB-Win %
// 57:BB-PF
// 58:BB-PA

//RARELY USED USER DEFINED VARS
var numDivisionTeamsTwo = 0;         		// You can set a secondary team to advance per division; you would set this value to the additional number of division teams and set the divisionTeamsTwo tiebreaker array
var divisionTiebreakerTwo = new Array(); 	// Tiebreaker array for numDivisionTeamsTwo
var hideDivision = false;              		// Some reports other than playoff report may require to hide division winners
var hideDivisionTwo = false;          		// Some reports other than playoff report may require to hide division winners two 
var hideWildcard = false;             		// Some reports other than playoff report may require to hide wildcard winners
var hidePlayoff = false;              		// Some reports other than playoff report may require to hide playoff teams
var hideNonPlayoff = false;           		// Some reports other than playoff report may require to hide non-playoff teams
var genericTable = false;             		// Used for reports other than playoff
var showScores = false;                		// Used for reports other than playoff (probably needs some html tweaking)
var showSteps = false;                  	// Used in conjunction with generic table and includes explanation for seeding if set to true
var bypassSameDivisionRule = false;          	// Var added by request to apply division tiebreaker even if not from same division
var outOfPlayoffsTiebreaker    = new Array();	// Used for reports other than playoff
var outOfPlayoffsReverseSort   = false; 	// Used for reports other than playoff
var conferenceLikeDivision = false;   		// Treat divisions like conferences
var custom1 = new Array();                 	// Custom tiebreaker eg custom1['0001'] = "string or number";
var custom2 = new Array();                	// Custom tiebreaker eg custom2['0001'] = "string or number";
var custom3 = new Array();                  	// Custom tiebreaker eg custom3['0001'] = "string or number";
var custom1Title = "";                        	// Column title for custom tiebreaker 1 
var custom2Title = "";                         	// Column title for custom tiebreaker 2
var custom3Title = "";                         	// Column title for custom tiebreaker 3
var countPtsScoredOncePerWeek = false;
var reverseTheOrder = false;                    // Reverses order for all sorting; typically used for waiver wire order
var reverseTheOrderByCategory = new Array();    // Reverses order for a specific category Example By Default Reverse Points Allowed(12) is sorted low to high to sort that category in reverse order apply reverseTheOrderByCategory = [12]; For any additional separate by comma
var iconColors = ['FF0000','0000FF','008000','FFFF00','FF00FF','00FF00','00FFFF','C0C0C0'];  // Set colors for division circles
</script>

<!-- PLAYOFF SEEDINGS JS FILE -->
<script src="https://www.mflscripts.com/mfl-apps/playoffs/script.js"></script>