www/js/client.js
// Maybe the user wants other colors? Here we go.
Maybe the user wants other colors. Here we go.
Maybe the user wants other colors . Here we go .
function processQueryParams() {
  var queryParams=parseQuery(document.location.search);
  var debugGMCP = queryParams['debug'];
  if (debugGMCP=='true') debug_GMCP = true;
  var bgColor = queryParams['bg'];
  if(bgColor!=null) { $(document).get(0).body.style.backgroundColor='#'+bgColor; }
  var fgColor = queryParams['fg'];
  if(fgColor!=null){ $(document).get(0).body.style.color='#'+fgColor; }
  var infoBgColor = queryParams['ibg'];
  if(infoBgColor!=null) { $('div#info').get(0).style.backgroundColor='#'+infoBgColor; }
  var infoFgColor = queryParams['ifg'];
  if(infoFgColor!=null) { 
    $('div#info').get(0).style.color='#'+infoFgColor; 
    $('div#info').get(0).style.borderColor='#'+infoFgColor; 
  }
  var infoBorderColor = queryParams['ibc'];
  if(infoBorderColor!=null) { $('div#info').get(0).style.borderColor='#'+infoBorderColor; }
  var infoPanel = queryParams['infopanel'];
  if (infoPanel==null || infoPanel!='hidden') 
    $('div#info').get(0).style.visibility = 'visible'
  else
    $('div#info').get(0).style.visibility = 'hidden'
  console.log('infoPanel = ' + infoPanel);
}
function processQueryParams ( ) { var queryParams = parseQuery ( document . location . search ) ; var debugGMCP = queryParams [ 'debug' ] ; if ( debugGMCP == 'true' ) debug_GMCP = true ; var bgColor = queryParams [ 'bg' ] ; if ( bgColor != null ) { $ ( document ) . get ( 0 ) . body . style . backgroundColor = '#' + bgColor ; } var fgColor = queryParams [ 'fg' ] ; if ( fgColor != null ) { $ ( document ) . get ( 0 ) . body . style . color = '#' + fgColor ; } var infoBgColor = queryParams [ 'ibg' ] ; if ( infoBgColor != null ) { $ ( 'div#info' ) . get ( 0 ) . style . backgroundColor = '#' + infoBgColor ; } var infoFgColor = queryParams [ 'ifg' ] ; if ( infoFgColor != null ) { $ ( 'div#info' ) . get ( 0 ) . style . color = '#' + infoFgColor ; $ ( 'div#info' ) . get ( 0 ) . style . borderColor = '#' + infoFgColor ; } var infoBorderColor = queryParams [ 'ibc' ] ; if ( infoBorderColor != null ) { $ ( 'div#info' ) . get ( 0 ) . style . borderColor = '#' + infoBorderColor ; } var infoPanel = queryParams [ 'infopanel' ] ; if ( infoPanel == null || infoPanel != 'hidden' ) $ ( 'div#info' ) . get ( 0 ) . style . visibility = 'visible' else $ ( 'div#info' ) . get ( 0 ) . style . visibility = 'hidden' console . log ( 'infoPanel = ' + infoPanel ) ; }
Maybe the user wants other colors?
Maybe the user wants other colors?