diff --git a/expertWires.js b/expertWires.js index 3cf1155..087be7e 100644 --- a/expertWires.js +++ b/expertWires.js @@ -52,7 +52,7 @@ var drawlayers = [true, true, true, true, true, true]; // some modes and parameters which can be passed in from the URL query var moveHereFirst; -var expertMode=false +var expertMode=true; var animateChipLayout = true; var userCode=[]; var userResetLow; @@ -82,7 +82,7 @@ function setup_part2(){ setupNodes(); setupTransistors(); setupParams(); - updateExpertMode(expertMode); + setupExpertMode(); detectOldBrowser(); setStatus('loading graphics...'); setTimeout(setup_part3, 0); @@ -154,8 +154,6 @@ function setupParams(){ updateLoglevel(value); } else if(name=="logmore" && value!=""){ updateLogList(value); - } else if(name=="expert" && value.indexOf("t")==0){ - updateExpertMode(true); } else if(name=="headlesssteps" && parseInt(value)!=NaN){ headlessSteps=parseInt(value); } else if(name=="graphics" && value.indexOf("f")==0){ @@ -346,8 +344,7 @@ function updateLoglevel(value){ initLogbox(logThese); } -function updateExpertMode(isOn){ - expertMode=true +function setupExpertMode(isOn){ document.getElementById('expertControlPanel').style.display = 'block'; if(loglevel==0) updateLoglevel(1); @@ -367,8 +364,7 @@ function updateChipLayoutVisibility(isOn){ // replace the Show Chip button with the chip graphics chipsurround=document.getElementById('chipsurround'); chipsurround.style.display = 'block'; - if(expertMode) - document.getElementById('layoutControlPanel').style.display = 'block'; + document.getElementById('layoutControlPanel').style.display = 'block'; document.getElementById('nochip').style.display = 'none'; // allow the browser to respond while we load the graphics setStatus('loading graphics...'); diff --git a/macros.js b/macros.js index 9a76b55..8b922e0 100644 --- a/macros.js +++ b/macros.js @@ -157,7 +157,8 @@ function initChip(){ refresh(); cycle = 0; trace = Array(); - updateLogList(); + if(typeof expertMode != "undefined") + updateLogList(); chipStatus(); if(ctrace)console.log('initChip done after', now()-start); } @@ -187,7 +188,6 @@ function updateLogList(names){ if(typeof busToString(names[i]) != "undefined") logThese.push(names[i]); } -console.log(logThese); initLogbox(logThese); }