aboutsummaryrefslogtreecommitdiff
path: root/index.html
diff options
context:
space:
mode:
authorÖzgür Kesim <oec@codeblau.de>2018-11-25 13:55:47 +0100
committerÖzgür Kesim <oec@codeblau.de>2018-11-25 13:55:47 +0100
commitab9109b0164daea036d78cd0f643893cdb4d52fd (patch)
tree3b7c4b5087cbaa3961d6e54d2df4d4492c59cb8e /index.html
parent62f1f72f402a83af4a0bf992bc460898883efa98 (diff)
added support for povray
Diffstat (limited to 'index.html')
-rw-r--r--index.html6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.html b/index.html
index f4cd42d..37ab4aa 100644
--- a/index.html
+++ b/index.html
@@ -161,7 +161,11 @@ function run() {
req.onreadystatechange = function() {
switch (req.status) {
case 200:
- output.innerHTML = req.responseText;
+ if (req.getResponseHeader("Content-Type") === "img/png") {
+ output.innerHTML = '<img src="data:image/png;base64,' + req.responseText + '"/>';
+ } else {
+ output.innerHTML = req.responseText;
+ }
break;
case 400:
output.innerHTML = '<pre class="error">'+req.responseText+'</pre>';