RLG-Web client: some visual improvements.

Hide the debugging messages by default.
This commit is contained in:
John "Elwin" Edwards 2012-06-20 14:11:57 -07:00
parent 2d9c8bd011
commit b34eeb2de8
3 changed files with 14 additions and 1 deletions

View file

@ -115,8 +115,8 @@
</div>
</div>
</div>
<div class="rfloat"><span class="ibutton" onclick="toggledebug()">Messages</span></div>
<div id="debug">
<p>Debugging Output</p>
</div>
</body>
</html>

View file

@ -731,6 +731,13 @@ function setmode(mode, ev) {
}
}
function toggledebug() {
if (document.getElementById("debug").style.display != "block")
document.getElementById("debug").style.display = "block";
else
document.getElementById("debug").style.display = "none";
}
function debug(level, msg) {
if (level < debugSuppress)
return;

View file

@ -62,5 +62,11 @@ div#register div.formtable span.ibutton {
div#nogames {
display: none;
margin-top: 2em;
font-weight: bold;
text-align: center;
}
div#debug {
display: none;
}