aboutsummaryrefslogtreecommitdiff
path: root/browser-demo
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2013-04-18 19:52:05 +0100
committerMichael Williamson <mike@zwobble.org>2013-04-18 19:52:05 +0100
commit285e6f01314880f782cedb2770c26c5cf0c0b490 (patch)
tree491b66bc6c68b9da61c6703afd0914edeadf7627 /browser-demo
parentaaafc2f7cb97617536fdb54b3f8d41ba94e9cc36 (diff)
Split out demo-specific code from lib/browser.js
Diffstat (limited to 'browser-demo')
-rw-r--r--browser-demo/demo.js8
-rw-r--r--browser-demo/index.html1
2 files changed, 9 insertions, 0 deletions
diff --git a/browser-demo/demo.js b/browser-demo/demo.js
new file mode 100644
index 0000000..079fbfc
--- /dev/null
+++ b/browser-demo/demo.js
@@ -0,0 +1,8 @@
+(function() {
+ mammoth.fileInput(
+ document.getElementById("document"),
+ function(result) {
+ document.getElementById("output").innerHTML = result.html;
+ }
+ );
+})();
diff --git a/browser-demo/index.html b/browser-demo/index.html
index 6f5d360..6056c19 100644
--- a/browser-demo/index.html
+++ b/browser-demo/index.html
@@ -18,6 +18,7 @@
</div>
<script src="bundle.js"></script>
+ <script src="demo.js"></script>
</body>
</html>