mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
rebuilding site Sun Oct 31 11:44:04 PM CST 2021
This commit is contained in:
parent
9de97472ca
commit
f3d880d352
7 changed files with 112 additions and 3 deletions
|
@ -17,6 +17,8 @@
|
||||||
PC模式 + 勾选选项"宽屏显示" + 全局脚本"强制缩放"。
|
PC模式 + 勾选选项"宽屏显示" + 全局脚本"强制缩放"。
|
||||||
多主屏:
|
多主屏:
|
||||||
home5.html为自定义主屏,home6.html, home6.search, home7.html ...为多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ...需用户自定义自动往前翻页操作。
|
home5.html为自定义主屏,home6.html, home6.search, home7.html ...为多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ...需用户自定义自动往前翻页操作。
|
||||||
|
自动翻页
|
||||||
|
长按后退按钮自动往前翻页(主屏上长按后退出现-1屏,-2屏...,短按前进按钮+1屏,+2屏...),长按前进按钮弹出系统菜单。
|
||||||
配置临时修改
|
配置临时修改
|
||||||
配置后如果没有正常退出或转入后台的话,超微不会自动保存设置更改,此时如果清后台强制退出,下次启动超微会使用原有配置。
|
配置后如果没有正常退出或转入后台的话,超微不会自动保存设置更改,此时如果清后台强制退出,下次启动超微会使用原有配置。
|
||||||
临时恢复UA (user agent)至android默认浏览器
|
临时恢复UA (user agent)至android默认浏览器
|
||||||
|
@ -358,7 +360,8 @@ pdf:uweb:echo file:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u djvu:uweb:e
|
||||||
<pubDate>Thu, 20 Aug 2020 00:00:00 +0000</pubDate>
|
<pubDate>Thu, 20 Aug 2020 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
<guid>https://jamesfengcao.gitee.io/uwebzh/html5/</guid>
|
<guid>https://jamesfengcao.gitee.io/uwebzh/html5/</guid>
|
||||||
<description>点击安装plyr视频播放器
|
<description>点击安装超大文件阅读器(支持markdown)
|
||||||
|
点击安装plyr视频播放器
|
||||||
点击安装dplayer视频播放器
|
点击安装dplayer视频播放器
|
||||||
点击安装pdf阅读器
|
点击安装pdf阅读器
|
||||||
点击安装epub阅读器(作者:llili)
|
点击安装epub阅读器(作者:llili)
|
||||||
|
|
|
@ -23,7 +23,8 @@
|
||||||
<ul class="tags">
|
<ul class="tags">
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
<p><a target="_self" href="i:0h/sdcard/uweb/app/plyr.html:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/plyr.cfg">点击安装plyr视频播放器</a><br>
|
<p><a target="_self" href="i:0h/sdcard/uweb/app/txtview.html:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/txtview.html">点击安装超大文件阅读器(支持markdown)</a><br>
|
||||||
|
<a target="_self" href="i:0h/sdcard/uweb/app/plyr.html:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/plyr.cfg">点击安装plyr视频播放器</a><br>
|
||||||
<a target="_self" href="i:0h/sdcard/uweb/app/dplayer.html:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/dplayer.html">点击安装dplayer视频播放器</a><br>
|
<a target="_self" href="i:0h/sdcard/uweb/app/dplayer.html:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/dplayer.html">点击安装dplayer视频播放器</a><br>
|
||||||
<a target="_self" href="i:0h/sdcard/uweb/app/pdfviewer.html:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/pdfviewer.html">点击安装pdf阅读器</a><br>
|
<a target="_self" href="i:0h/sdcard/uweb/app/pdfviewer.html:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/pdfviewer.html">点击安装pdf阅读器</a><br>
|
||||||
<a target="_self" href="i:0h/sdcard/uweb/app/epub.html:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/epub.html">点击安装epub阅读器(作者:llili)</a><br>
|
<a target="_self" href="i:0h/sdcard/uweb/app/epub.html:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/epub.html">点击安装epub阅读器(作者:llili)</a><br>
|
||||||
|
|
|
@ -17,6 +17,8 @@
|
||||||
PC模式 + 勾选选项&quot;宽屏显示&quot; + 全局脚本&quot;强制缩放&quot;。
|
PC模式 + 勾选选项&quot;宽屏显示&quot; + 全局脚本&quot;强制缩放&quot;。
|
||||||
多主屏:
|
多主屏:
|
||||||
home5.html为自定义主屏,home6.html, home6.search, home7.html ...为多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ...需用户自定义自动往前翻页操作。
|
home5.html为自定义主屏,home6.html, home6.search, home7.html ...为多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ...需用户自定义自动往前翻页操作。
|
||||||
|
自动翻页
|
||||||
|
长按后退按钮自动往前翻页(主屏上长按后退出现-1屏,-2屏...,短按前进按钮+1屏,+2屏...),长按前进按钮弹出系统菜单。
|
||||||
配置临时修改
|
配置临时修改
|
||||||
配置后如果没有正常退出或转入后台的话,超微不会自动保存设置更改,此时如果清后台强制退出,下次启动超微会使用原有配置。
|
配置后如果没有正常退出或转入后台的话,超微不会自动保存设置更改,此时如果清后台强制退出,下次启动超微会使用原有配置。
|
||||||
临时恢复UA (user agent)至android默认浏览器
|
临时恢复UA (user agent)至android默认浏览器
|
||||||
|
@ -358,7 +360,8 @@ pdf:uweb:echo file:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u djvu:uweb:e
|
||||||
<pubDate>Thu, 20 Aug 2020 00:00:00 +0000</pubDate>
|
<pubDate>Thu, 20 Aug 2020 00:00:00 +0000</pubDate>
|
||||||
|
|
||||||
<guid>https://jamesfengcao.gitee.io/uwebzh/html5/</guid>
|
<guid>https://jamesfengcao.gitee.io/uwebzh/html5/</guid>
|
||||||
<description>点击安装plyr视频播放器
|
<description>点击安装超大文件阅读器(支持markdown)
|
||||||
|
点击安装plyr视频播放器
|
||||||
点击安装dplayer视频播放器
|
点击安装dplayer视频播放器
|
||||||
点击安装pdf阅读器
|
点击安装pdf阅读器
|
||||||
点击安装epub阅读器(作者:llili)
|
点击安装epub阅读器(作者:llili)
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
pdf:uweb:echo file:///sdcard/uweb/app/pdfviewer.html?file=%u
|
pdf:uweb:echo file:///sdcard/uweb/app/pdfviewer.html?file=%u
|
||||||
djvu:uweb:echo file:///sdcard/uweb/app/djvu.html?url=%u
|
djvu:uweb:echo file:///sdcard/uweb/app/djvu.html?url=%u
|
||||||
epub:uweb:echo file:///sdcard/uweb/app/epub.html?u=%u
|
epub:uweb:echo file:///sdcard/uweb/app/epub.html?u=%u
|
||||||
|
txt:uweb:echo file:///sdcard/uweb/app/txtview.html?url=%u#page=1
|
||||||
py:termux/*:python %f;exit -1
|
py:termux/*:python %f;exit -1
|
||||||
|
|
54
searchurl/txt/txtview.html
Normal file
54
searchurl/txt/txtview.html
Normal file
|
@ -0,0 +1,54 @@
|
||||||
|
<head>
|
||||||
|
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
|
||||||
|
<script>
|
||||||
|
function absFile(url) {
|
||||||
|
this.name=url;
|
||||||
|
this.slice = async(offset, length) =>{
|
||||||
|
const headers = new Headers();
|
||||||
|
headers.append('range', 'bytes=' + offset + '-' + ( offset + length -1).toString());
|
||||||
|
|
||||||
|
const opts = {
|
||||||
|
credentials: 'include',
|
||||||
|
headers : headers
|
||||||
|
};
|
||||||
|
|
||||||
|
const resp = await fetch( this.name, opts );
|
||||||
|
return await resp.arrayBuffer();
|
||||||
|
//alert(JSON.stringify(resp.headers));
|
||||||
|
//return await resp.text();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var url;
|
||||||
|
var page = 1;
|
||||||
|
var blocksize = 1024;
|
||||||
|
var extrasize = 2048;
|
||||||
|
var file;
|
||||||
|
function loadSlice(){
|
||||||
|
let lhash = location.hash;
|
||||||
|
if(lhash)
|
||||||
|
page = parseInt(lhash.substring(6),10);
|
||||||
|
file.slice(blocksize*(page-1),blocksize+extrasize).then((buffer)=>{
|
||||||
|
let u8 = new Uint8Array(buffer);
|
||||||
|
let iStart = 0;
|
||||||
|
if(1!=page){
|
||||||
|
while(10!=u8[iStart]) iStart++;
|
||||||
|
}
|
||||||
|
let iEnd = u8.indexOf(10,blocksize);//fine newline(10)
|
||||||
|
if(-1==iEnd) iEnd = blocksize;
|
||||||
|
iEnd++;
|
||||||
|
document.body.innerHTML = marked(new TextDecoder().decode(u8.slice(iStart,iEnd)));
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
window.addEventListener('hashchange',loadSlice);
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script>
|
||||||
|
//?url=#page=
|
||||||
|
file = new absFile(location.search.substring(5));
|
||||||
|
//let viewElement = document.querySelector("#viewer");
|
||||||
|
loadSlice();
|
||||||
|
</script>
|
||||||
|
<body>
|
45
searchurl/txt/txtview.html~
Normal file
45
searchurl/txt/txtview.html~
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
<head>
|
||||||
|
<script>
|
||||||
|
function absFile(url) {
|
||||||
|
this.name=url;
|
||||||
|
this.slice = async(offset, length) =>{
|
||||||
|
const headers = new Headers();
|
||||||
|
headers.append('range', 'bytes=' + offset + '-' + ( offset + length -1).toString());
|
||||||
|
|
||||||
|
const opts = {
|
||||||
|
credentials: 'include',
|
||||||
|
headers : headers
|
||||||
|
};
|
||||||
|
|
||||||
|
const resp = await fetch( this.name, opts );
|
||||||
|
//return await resp.arrayBuffer();
|
||||||
|
alert(JSON.stringify(resp.headers));
|
||||||
|
return await resp.text();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
var url;
|
||||||
|
var page = 1;
|
||||||
|
var blocksize = 1024;
|
||||||
|
var extrasize = 0;
|
||||||
|
var file;
|
||||||
|
function loadSlice(){
|
||||||
|
let lhash = location.hash;
|
||||||
|
if(lhash)
|
||||||
|
page = parseInt(lhash.substring(6),10);
|
||||||
|
file.slice(blocksize*(page-1),blocksize+extrasize).then((result)=>{
|
||||||
|
document.body.innerHTML = result;
|
||||||
|
});
|
||||||
|
|
||||||
|
}
|
||||||
|
window.addEventListener('hashchange',loadSlice);
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<script>
|
||||||
|
//?url=#page=
|
||||||
|
file = new absFile(location.search.substring(5));
|
||||||
|
//let viewElement = document.querySelector("#viewer");
|
||||||
|
loadSlice();
|
||||||
|
</script>
|
||||||
|
<body>
|
|
@ -27,6 +27,8 @@
|
||||||
PC模式 + 勾选选项"宽屏显示" + 全局脚本"强制缩放"。</p>
|
PC模式 + 勾选选项"宽屏显示" + 全局脚本"强制缩放"。</p>
|
||||||
<p><strong>多主屏</strong>:<br>
|
<p><strong>多主屏</strong>:<br>
|
||||||
home5.html为自定义主屏,home6.html, home6.search, home7.html ...为多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ...需用户自定义自动往前翻页操作。</p>
|
home5.html为自定义主屏,home6.html, home6.search, home7.html ...为多主屏(前进按钮可进)。同前缀文件中.html文件优先于.search文件。home4.html, home3.html ...需用户自定义自动往前翻页操作。</p>
|
||||||
|
<p><strong>自动翻页</strong><br>
|
||||||
|
长按后退按钮自动往前翻页(主屏上长按后退出现-1屏,-2屏...,短按前进按钮+1屏,+2屏...),长按前进按钮弹出系统菜单。</p>
|
||||||
<p><strong>配置临时修改</strong><br>
|
<p><strong>配置临时修改</strong><br>
|
||||||
配置后如果没有正常退出或转入后台的话,超微不会自动保存设置更改,此时如果清后台强制退出,下次启动超微会使用原有配置。</p>
|
配置后如果没有正常退出或转入后台的话,超微不会自动保存设置更改,此时如果清后台强制退出,下次启动超微会使用原有配置。</p>
|
||||||
<p><strong>临时恢复UA (user agent)至android默认浏览器</strong><br>
|
<p><strong>临时恢复UA (user agent)至android默认浏览器</strong><br>
|
||||||
|
|
Loading…
Reference in a new issue