mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
rebuilding site Sun Aug 7 09:20:50 AM CST 2022
This commit is contained in:
parent
0460249b84
commit
eb59eb477e
2 changed files with 24 additions and 1 deletions
|
@ -88,7 +88,7 @@
|
|||
<h4 id="mdict-dictionary-lookup-search-engine">mdict dictionary lookup search engine:</h4>
|
||||
<p>i:5ihttps://uweb-zh.vercel.app/zh/searchurl/txt/mdict.html?file=./mdict/xxx.mdx,./mdict/xxx.mdd#word=</p>
|
||||
<p>The dictionary files (mdx, mdd) must locate in the "app" subfolder under the configuration folder. In above example, the files "xxx.mdx" and "xxx.mdd" locate in the folder ".../app/mdict".</p>
|
||||
<p><a href="i:15d:text/plain:cd /data/data/info.torapp.uweb/files/app/mdict;for i in *.mdx; do b=`basename ${i} .mdx`;fs=%22./mdict/${i}%22;if [ -f ${b}.mdd ];then fs=${fs}%22,./mdict/${b}.mdd%22;fi;echo i:5ihttps://uweb-zh.vercel.app/zh/searchurl/txt/mdict.html?file=${fs}#word= >>../../home5.search;done:">Clip to paste commands to the address bar</a>, the commands scan mdx/mdd files under app/mdict and add search engines to home screen.</p>
|
||||
<p><a href="i:15d:text/plain:cd /data/data/info.torapp.uweb/files/app/mdict;for i in *.mdx; do b=`basename ${i} .mdx`;fs=%22./mdict/${i}%22;if [ -f ${b}.mdd ];then fs=${fs}%22,./mdict/${b}.mdd%22;fi;echo ${b}:i:5ihttps://uweb-zh.vercel.app/zh/searchurl/txt/mdict.html?file=${fs}#word= >>../../home5.search;done:">Clip to paste commands to the address bar</a>, the commands scan mdx/mdd files under app/mdict and add search engines to home screen.</p>
|
||||
<p>After pasting the command to the address bar, press home screen button, then press "enter" on the address bar to execute the command.</p>
|
||||
|
||||
</div>
|
||||
|
|
23
en/searchurl/txt/docx2html.html
Normal file
23
en/searchurl/txt/docx2html.html
Normal file
|
@ -0,0 +1,23 @@
|
|||
<!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>
|
Loading…
Reference in a new issue