function lightUp(n)
{
	for (var i = 1; i <= 26; i++) {
	  // Wipe all previous lights - make font colour grey
	  document.getElementById('l_'+ENIGMA.plaintext.charAt(i)).setAttribute('class', 'led_off');
	}

	// Light up the outout letter - make font colour yellow
	document.getElementById('l_'+n).setAttribute('class', 'led_on'); 
}
/* FUNCTION --------------------------------------------------------
	Light up the output letter!
	Unnecessary (but cute) imitation of the real Enigma machines
   ----------------------------------------------------------------- */
FUNCTION
Light up the output letter.
Unnecessary (but cute) imitation of the real Enigma machines
FUNCTION Light up the output letter . Unnecessary ( but cute ) imitation of the real Enigma machines
function lightUp(n)
{
	for (var i = 1; i <= 26; i++) {
	  document.getElementById('l_'+ENIGMA.plaintext.charAt(i)).setAttribute('class', 'led_off');
	}
	document.getElementById('l_'+n).setAttribute('class', 'led_on'); 
}
function lightUp ( n ) { for ( var i = 1 ; i <= 26 ; i ++ ) { document . getElementById ( 'l_' + ENIGMA . plaintext . charAt ( i ) ) . setAttribute ( 'class' , 'led_off' ) ; } document . getElementById ( 'l_' + n ) . setAttribute ( 'class' , 'led_on' ) ; }
FUNCTION
Light up the output letter!
FUNCTION Light up the output letter!
// Wipe all previous lights - make font colour grey // Light up the outout letter - make font colour yellow