MediaWiki:Gadget-fa-bid-calculator.js: Difference between revisions

Bid to beat must clear the standing bid by 0.2 points
The league is NBA RealGM
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
/**
/**
  * 1TC RealGM — free agency bid calculator.
  * NBA RealGM — free agency bid calculator.
  * Implements the points system on [[NBA:Free Agency]]. If the two ever disagree,
  * Implements the points system on [[NBA:Free Agency]]. If the two ever disagree,
  * the wiki page is the rule and this script is the bug.
  * the wiki page is the rule and this script is the bug.
Line 175: Line 175:
var team = document.createElement( 'input' );
var team = document.createElement( 'input' );
team.type = 'text';
team.type = 'text';
team.placeholder = 'Suns';
team.placeholder = 'Sonics';
team.className = 'tc-calc-wide';
team.className = 'tc-calc-wide';


Line 288: Line 288:


// --- ready-to-paste post ---
// --- ready-to-paste post ---
// "Suns offer Caldwell Jones 2 years @ $500,000 = 3.5 points".
// "Sonics offer Caldwell Jones 2 years @ $500,000 = 3.5 points".
// Whatever of team/player is missing simply drops out.
// Whatever of team/player is missing simply drops out.
var tm = team.value.trim(),
var tm = team.value.trim(),