rebuilding site Mon Nov 15 04:58:53 PM CST 2021

This commit is contained in:
James Feng Cao 2021-11-15 16:58:53 +08:00
parent 22e0084e70
commit e31e31fdaf
6 changed files with 33 additions and 26 deletions

View file

@ -361,7 +361,7 @@ pdf:uweb:echo file:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u djvu:uweb:e
<guid>https://jamesfengcao.gitee.io/uwebzh/html5/</guid> <guid>https://jamesfengcao.gitee.io/uwebzh/html5/</guid>
<description>点击安装超大文件阅读器支持txt, html, markdown <description>点击安装超大文件阅读器支持txt, html, markdown
点击安装超大文件阅读器markdeep版, tex, diagram等 点击安装超大文件阅读器markdeep版, latex, diagram,graphviz等)
点击安装plyr视频播放器 点击安装plyr视频播放器
点击安装dplayer视频播放器 点击安装dplayer视频播放器
点击安装pdf阅读器 点击安装pdf阅读器

View file

@ -24,7 +24,7 @@
</ul> </ul>
<p><a target="_self" href="i:0h/sdcard/uweb/app/txtview.html:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/txtview.html">点击安装超大文件阅读器支持txt, html, markdown</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">点击安装超大文件阅读器支持txt, html, markdown</a><br>
<a target="_self" href="i:0h/sdcard/uweb/app/markdeep.html:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/markdeep.html">点击安装超大文件阅读器markdeep版, tex, diagram等</a><br> <a target="_self" href="i:0h/sdcard/uweb/app/markdeep.html:https://cdn.jsdelivr.net/gh/torappinfo/uwebzh/searchurl/txt/markdeep.html">点击安装超大文件阅读器markdeep版, latex, diagram,graphviz等)</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/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>

View file

@ -361,7 +361,7 @@ pdf:uweb:echo file:///sdcard/uweb/app/pdf.js/web/viewer.html?file=%u djvu:uweb:e
<guid>https://jamesfengcao.gitee.io/uwebzh/html5/</guid> <guid>https://jamesfengcao.gitee.io/uwebzh/html5/</guid>
<description>点击安装超大文件阅读器支持txt, html, markdown <description>点击安装超大文件阅读器支持txt, html, markdown
点击安装超大文件阅读器markdeep版, tex, diagram等 点击安装超大文件阅读器markdeep版, latex, diagram,graphviz等)
点击安装plyr视频播放器 点击安装plyr视频播放器
点击安装dplayer视频播放器 点击安装dplayer视频播放器
点击安装pdf阅读器 点击安装pdf阅读器

View file

@ -1,5 +1,6 @@
pdf:uweb:echo file:///sdcard/uweb/app/pdfviewer.html?file=%u pdf:uweb:echo file:///sdcard/uweb/app/pdfviewer.html?file=%u#page=1
djvu:uweb:echo file:///sdcard/uweb/app/djvu.html?url=%u djvu:uweb:echo file:///sdcard/uweb/app/djvu.html?url=%u#page=1
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 txt:uweb:echo file:///sdcard/uweb/app/txtview.html?url=%u#page=1
md.html:uweb:echo file:///sdcard/uweb/app/markdeep.html?url=%u#page=1
py:termux/*:python %f;exit -1 py:termux/*:python %f;exit -1

View file

@ -20,15 +20,20 @@
//return await resp.text(); //return await resp.text();
} }
} }
function render(u8array){
document.body.innerHTML = window.markdeep.format(new TextDecoder().decode(u8array),true);
MathJax.typesetPromise();
}
var file; var file;
var blocksize = 1024; var blocksize = 1024;
function loadSlice(){ function loadSlice(){
function render(u8array){
document.body.innerHTML = window.markdeep.format(new TextDecoder().decode(u8array),true);
MathJax.typesetPromise();
}
function setPageUrl(pageurl){
let a = document.createElement('a');
a.href = "i:5c"+pageurl;
a.click();
}
var url; var url;
var page = 1; var page = 1;
var extrasize = blocksize; //extrasize should <= blocksize var extrasize = blocksize; //extrasize should <= blocksize
@ -41,11 +46,8 @@
{//update urlInc() url {//update urlInc() url
let href = location.href; let href = location.href;
let iHash = href.indexOf('#'); let iHash = href.indexOf('#');
href="i:5c"+href.substring(0,iHash)+"#page="+Math.floor((offset+len)/blocksize); href=href.substring(0,iHash)+"#page="+Math.floor((offset+len)/blocksize);
let d=document; setPageUrl(href);
let a = d.createElement('a');
a.href = href;
a.click();
} }
file.slice(offset,len).then((buffer)=>{ file.slice(offset,len).then((buffer)=>{
let u8 = new Uint8Array(buffer); let u8 = new Uint8Array(buffer);
@ -55,7 +57,8 @@
} }
//#page= //#page=
page = parseInt(lhash.substring(6)); page = parseInt(lhash.substring(6));
} }else
setPageUrl(location.href+"#page=1");
file.slice(blocksize*(page-1),blocksize+extrasize).then((buffer)=>{ file.slice(blocksize*(page-1),blocksize+extrasize).then((buffer)=>{
let u8 = new Uint8Array(buffer); let u8 = new Uint8Array(buffer);
let u8len = u8.length; let u8len = u8.length;

View file

@ -18,14 +18,19 @@
//return await resp.text(); //return await resp.text();
} }
} }
function render(u8array){
document.body.innerHTML = marked(new TextDecoder().decode(u8array));
}
var file; var file;
var blocksize = 1024; var blocksize = 1024;
function loadSlice(){ function loadSlice(){
function render(u8array){
document.body.innerHTML = marked(new TextDecoder().decode(u8array));
}
function setPageUrl(pageurl){
let a = document.createElement('a');
a.href = "i:5c"+pageurl;
a.click();
}
var url; var url;
var page = 1; var page = 1;
var extrasize = blocksize; //extrasize should <= blocksize var extrasize = blocksize; //extrasize should <= blocksize
@ -38,11 +43,8 @@
{//update urlInc() url {//update urlInc() url
let href = location.href; let href = location.href;
let iHash = href.indexOf('#'); let iHash = href.indexOf('#');
href="i:5c"+href.substring(0,iHash)+"#page="+Math.floor((offset+len)/blocksize); href=href.substring(0,iHash)+"#page="+Math.floor((offset+len)/blocksize);
let d=document; setPageUrl(href);
let a = d.createElement('a');
a.href = href;
a.click();
} }
file.slice(offset,len).then((buffer)=>{ file.slice(offset,len).then((buffer)=>{
let u8 = new Uint8Array(buffer); let u8 = new Uint8Array(buffer);
@ -52,7 +54,8 @@
} }
//#page= //#page=
page = parseInt(lhash.substring(6)); page = parseInt(lhash.substring(6));
} }else
setPageUrl(location.href+"#page=1");
file.slice(blocksize*(page-1),blocksize+extrasize).then((buffer)=>{ file.slice(blocksize*(page-1),blocksize+extrasize).then((buffer)=>{
let u8 = new Uint8Array(buffer); let u8 = new Uint8Array(buffer);
let u8len = u8.length; let u8len = u8.length;