comparison rlgterm.js @ 67:b6a3b26fe0dc

RLG-Web client: some visual improvements. Hide the debugging messages by default.
author John "Elwin" Edwards <elwin@sdf.org>
date Wed, 20 Jun 2012 14:11:57 -0700
parents 57bf0dcd080e
children d7eb63cd7a16
comparison
equal deleted inserted replaced
66:57bf0dcd080e 67:b6a3b26fe0dc
729 document.getElementById("register").style.display = "block"; 729 document.getElementById("register").style.display = "block";
730 document.getElementById("current").style.display = "none"; 730 document.getElementById("current").style.display = "none";
731 } 731 }
732 } 732 }
733 733
734 function toggledebug() {
735 if (document.getElementById("debug").style.display != "block")
736 document.getElementById("debug").style.display = "block";
737 else
738 document.getElementById("debug").style.display = "none";
739 }
740
734 function debug(level, msg) { 741 function debug(level, msg) {
735 if (level < debugSuppress) 742 if (level < debugSuppress)
736 return; 743 return;
737 var msgdiv = document.createElement("div"); 744 var msgdiv = document.createElement("div");
738 var msgtext = document.createTextNode(msg); 745 var msgtext = document.createTextNode(msg);