F diff --git a/css/style.css b/css/style.css --- a/css/style.css +++ b/css/style.cssbackground: white;}+ .filecontents {+ font-family: monospace;+ }+.filecontents.imgview {background-color: black;background-repeat: no-repeat;}.filecontents {- padding: 0.8rem;- font-size: 1.1rem;+ overflow-y: scroll;+ }+ [contenteditable] {+ outline: 0px solid transparent;+ }++ pre {+ font-size: 1.3rem;+ min-height: 100%;+ margin: 0.3rem;+ box-sizing: border-box;}.window h3,F diff --git a/loggedin.js b/loggedin.js --- a/loggedin.js +++ b/loggedin.jsxhr.responseType = 'arraybuffer';xhr.onload = function () {let b = `data:image/png;base64,${base64ArrayBuffer(xhr.response)}`;--focus.filecontents.style.backgroundImage = `url('${b}')`;focus.filecontents.classList.add('imgview');focus.filecontents.innerText = "asdf";focus.filecontents.classList.remove('imgview');focus.filecontents.style.backgroundImage = "unset";+ var pre = mk(focus.filecontents, 'pre');+xhr.onload = function () {- focus.filecontents.innerText = xhr.responseText;+ pre.innerText = xhr.responseText;+ pre.contentEditable = "true";};}