js/index.js
// show the commodity names (called at start of game), and ports across top
show the commodity names (called at start of game), and ports across top
show the commodity names ( called at start of game ) and ports across top
function printlables() {
  document.getElementById("portList").innerHTML = portName.join(" | ");
  for (var i = 1; i <= maxCom; i++){
    if (i < cargoList.length) {
      document.getElementById("ComL"+i).innerHTML = cargoList[i];
    } else {
      document.getElementById("ComL"+i).innerHTML = "";
    }
  }
}
function printlables ( ) { document . getElementById ( "portList" ) . innerHTML = portName . join ( " | " ) ; for ( var i = 1 ; i <= maxCom ; i ++ ) { if ( i < cargoList . length ) { document . getElementById ( "ComL" + i ) . innerHTML = cargoList [ i ] ; } else { document . getElementById ( "ComL" + i ) . innerHTML = "" ; } } }
show the commodity names (called at start of game), and ports across top
show the commodity names ( called at start of game ) and ports across top