@@ 45,21 45,30 @@ SOFTWARE.
// shortcuts
function up(w, i, append=false)
{
+ try {
if (append)
document.getElementById(w).innerHTML += i;
else
document.getElementById(w).innerHTML = i;
+ } catch(e) {
+ console.log(
+ "failed to append/set (" + append + ") " + w + " with " + i);
+ }
}
function sh(w, show=true)
{
+ try {
if (show)
document.getElementById(w).style = "display: block";
else
document.getElementById(w).style = "display: none";
+ } catch(e) { console.log("failed to show/hide (" + show + ") " + w); }
}
function fo(w)
{
+ try {
document.getElementById(w).focus();
+ } catch(e) { console.log("failed to focus " + w); }
}
function sa(w)
{