diff options
Diffstat (limited to 'browser-demo')
| -rw-r--r-- | browser-demo/demo.js | 8 | ||||
| -rw-r--r-- | browser-demo/index.html | 1 |
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> |
