diff options
| author | Michael Williamson <mike@zwobble.org> | 2013-04-18 19:52:05 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2013-04-18 19:52:05 +0100 |
| commit | 285e6f01314880f782cedb2770c26c5cf0c0b490 (patch) | |
| tree | 491b66bc6c68b9da61c6703afd0914edeadf7627 /browser-demo | |
| parent | aaafc2f7cb97617536fdb54b3f8d41ba94e9cc36 (diff) | |
Split out demo-specific code from lib/browser.js
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> |
