mirror of https://github.com/torappinfo/uweb
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
643 B
HTML
24 lines
643 B
HTML
<!DOCTYPE html><html>
|
|
<title>docx2html</title>
|
|
<head>
|
|
<script src="https://fastly.jsdelivr.net/gh/lalalic/docx2html/docs/index.js"></script>
|
|
<script>
|
|
function convert(input){
|
|
require("docx2html")
|
|
(input.files[0],
|
|
{container:document.querySelector("#container")})
|
|
.then(html=>{input.value="";});
|
|
}
|
|
</script>
|
|
</head>
|
|
<body>
|
|
<div>
|
|
<center>
|
|
<h2>select a docx to convert to html</h2>
|
|
<input type="file" onchange="convert(this)"/>
|
|
</center>
|
|
<div id="container" style="margin:10px;padding:10px;border:1px solid; text-align:left; min-height:1000px;"></div>
|
|
</div>
|
|
</body>
|
|
</html>
|