mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
rebuilding site Thu Aug 11 04:10:43 PM CST 2022
This commit is contained in:
parent
0694165c0a
commit
a31c2f276c
5 changed files with 39 additions and 14 deletions
|
@ -1,4 +1,4 @@
|
|||
### Uweb: Tiny and powerful android browser
|
||||
### Uweb browser for android
|
||||
[中文](README.zh.md)
|
||||
|
||||
[Uweb browser: updates, plugins and tips](https://torappinfo.github.io/uwebzh/en/)
|
||||
|
@ -14,7 +14,7 @@
|
|||
- Tiny: less than 200k
|
||||
- Fast: run fast, even with thousands of user provided css/scripts
|
||||
- Efficient: less touches, one click to reach any number of search engines without repeated input.
|
||||
- Convenient: any book (pdf/djvu)/dictionary/txt/command line/app can be search engine.
|
||||
- Convenient: any book (pdf/djvu)/dictionary (mdict)/txt/command line/app can be search engine.
|
||||
- Customizable: user-defined menus, (new) buttons and gestures for user agents, bookmarklets, url services, shell commands, internal functionality links and text processing etc.
|
||||
- Powerful: enabling html5 applications to work like native; javascript and shell scripting for general processing and more if enhanced by Termux.
|
||||
|
||||
|
|
|
@ -158,11 +158,14 @@ If a new button is defined (file name "20" exists), uweb also
|
|||
|
||||
<guid>/en/termux/</guid>
|
||||
<description>Only the termux versions provided along with uweb browser can work seamlessly.
|
||||
Termux bookmarks Long pressing the following links then either &quot;commands&quot;-&gt;&quot;bookmark&quot; to add bookmarks or &quot;open in new tab&quot; to execute.
|
||||
GNU bc (basic calculator)
|
||||
bc with all extensions
|
||||
Click the following links to install termux configurations: .bashrc
|
||||
.inputrc
|
||||
z.sh
|
||||
commacd.sh
|
||||
Copy existing termux installation to other devices target device: install termux app, then run &quot;apt install openssh&quot; inside the termux. source device: Send the &quot;~/.ssh&quot; folder with uweb browser to the network. target device: Uweb to visit &quot;file://data/data/com.termux/files/home/&quot; to reach the folder, then receive the data sent by the above source device.</description>
|
||||
Copy existing termux installation to other devices Using uweb to copy (Long pressing the following two links and &quot;open in new tab&quot; to send/receive):</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -265,11 +265,14 @@ If a new button is defined (file name &quot;20&quot; exists), uweb also
|
|||
|
||||
<guid>/en/termux/</guid>
|
||||
<description>Only the termux versions provided along with uweb browser can work seamlessly.
|
||||
Termux bookmarks Long pressing the following links then either &quot;commands&quot;-&gt;&quot;bookmark&quot; to add bookmarks or &quot;open in new tab&quot; to execute.
|
||||
GNU bc (basic calculator)
|
||||
bc with all extensions
|
||||
Click the following links to install termux configurations: .bashrc
|
||||
.inputrc
|
||||
z.sh
|
||||
commacd.sh
|
||||
Copy existing termux installation to other devices target device: install termux app, then run &quot;apt install openssh&quot; inside the termux. source device: Send the &quot;~/.ssh&quot; folder with uweb browser to the network. target device: Uweb to visit &quot;file://data/data/com.termux/files/home/&quot; to reach the folder, then receive the data sent by the above source device.</description>
|
||||
Copy existing termux installation to other devices Using uweb to copy (Long pressing the following two links and &quot;open in new tab&quot; to send/receive):</description>
|
||||
</item>
|
||||
|
||||
<item>
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
<!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>
|
||||
<script src="https://fastly.jsdelivr.net/npm/mammoth@1.4.8/mammoth.browser.min.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div>
|
||||
|
@ -17,7 +9,23 @@
|
|||
<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 id="container"></div>
|
||||
</div>
|
||||
<script>
|
||||
var container = document.querySelector("#container");
|
||||
function convert(input){
|
||||
var files = input.files||[];
|
||||
if (!files.length) return;
|
||||
var file = files[0];
|
||||
var reader = new FileReader();
|
||||
reader.onloadend = function(event) {
|
||||
var arrayBuffer = reader.result;
|
||||
mammoth.convertToHtml({arrayBuffer: arrayBuffer}).then(function (resultObject) {
|
||||
container.innerHTML = resultObject.value
|
||||
});
|
||||
}
|
||||
reader.readAsArrayBuffer(file);
|
||||
}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
@ -44,12 +44,23 @@
|
|||
|
||||
</ul>
|
||||
<p>Only the termux versions provided along with uweb browser can work seamlessly.</p>
|
||||
<h4 id="termux-bookmarks">Termux bookmarks</h4>
|
||||
<p>Long pressing the following links then either "commands"->"<a href="../urls/index.html">bookmark</a>" to add bookmarks or "open in new tab" to execute.<br>
|
||||
<a href="c:bc -l">GNU bc (basic calculator)</a><br>
|
||||
<a href="c:bc -l *.bc">bc with all extensions</a></p>
|
||||
<h4 id="click-the-following-links-to-install-termux-configurations">Click the following links to install termux configurations:</h4>
|
||||
<p><a href="i:0h/data/data/com.termux/files/home/.bashrc:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/termux/bashrc">.bashrc</a></p>
|
||||
<p><a href="i:0h/data/data/com.termux/files/home/.inputrc:https://fastly.jsdelivr.net/gh/torappinfo/uwebzh/termux/inputrc">.inputrc</a></p>
|
||||
<p><a href="i:0h/data/data/com.termux/files/home/z.sh:https://fastly.jsdelivr.net/gh/rupa/z/z.sh">z.sh</a></p>
|
||||
<p><a href="i:0h/data/data/com.termux/files/home/commacd.sh:https://fastly.jsdelivr.net/gh/shyiko/commacd/commacd.sh">commacd.sh</a></p>
|
||||
<h4 id="copy-existing-termux-installation-to-other-devices">Copy existing termux installation to other devices</h4>
|
||||
<p>Using uweb to copy (Long pressing the following two links and "open in new tab" to send/receive):</p>
|
||||
<ul>
|
||||
<li>target device: install termux app.</li>
|
||||
<li>source device: <a href="c:cd ..;toybox tar -czf - .|toybox nc -l -p 1500">send termux installation</a></li>
|
||||
<li>target device: <a href="c:cd ..;toybox nc 1500|toybox tar -xzf -">receive termux installation</a></li>
|
||||
</ul>
|
||||
<h5 id="using-ssh-to-copy">Using ssh to copy</h5>
|
||||
<ul>
|
||||
<li>target device: install termux app, then run "apt install openssh" inside the termux.</li>
|
||||
<li>source device: Send the "~/.ssh" folder with uweb browser to the network.</li>
|
||||
|
|
Loading…
Reference in a new issue