broadway: Add debug logging framework for js

This commit is contained in:
Alexander Larsson 2011-03-14 10:05:24 +01:00
parent e2f8215751
commit c2ce462486

View File

@ -1,3 +1,16 @@
/* Helper functions for debugging */
var logDiv = null;
function log(str) {
if (!logDiv) {
logDiv = document.createElement('div');
document.body.appendChild(logDiv);
logDiv.style["position"] = "absolute";
logDiv.style["right"] = "0px";
}
logDiv.appendChild(document.createTextNode(str));
logDiv.appendChild(document.createElement('br'));
}
var base64_val = [
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,
255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,255,