aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-11 23:32:18 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-11 23:32:18 +0100
commit6a01c5d93fada82cbbf6c00863fa8f73fb89681c (patch)
tree8b82a543f02184ad38802cf318b46f3d9447f2d1
parenta95a351c62d7227100adc19a96edc2138908a58e (diff)
Display result in browser demo
-rw-r--r--index.html8
1 files changed, 5 insertions, 3 deletions
diff --git a/index.html b/index.html
index b3bc2e0..5ee7e61 100644
--- a/index.html
+++ b/index.html
@@ -2,8 +2,8 @@
<html>
<head>
<title>Mammoth</title>
- <link rel="stylesheet" type="text/css" href="/static/bootstrap/css/bootstrap.min.css">
- <link rel="stylesheet" type="text/css" href="/static/style.css">
+ <link rel="stylesheet" type="text/css" href="static/bootstrap/css/bootstrap.min.css">
+ <link rel="stylesheet" type="text/css" href="static/style.css">
</head>
<body>
<div class="banner">
@@ -13,6 +13,8 @@
</div>
<div class="container">
<input id="document" type="file" />
+ <div id="output">
+ </div>
</div>
<script src="static/jszip/jszip.js"></script>
@@ -38,7 +40,7 @@
var arrayBuffer = loadEvent.target.result;
converter.convertToHtml({file: openFile(arrayBuffer)})
.then(function(result) {
- console.log(result);
+ document.getElementById("output").innerHTML = result.html;
})
.done();
};