rebuilding site Wed Nov 17 03:53:59 PM CST 2021

This commit is contained in:
James Feng Cao 2021-11-17 15:53:59 +08:00
parent ab181535c2
commit c9ab8009d4
5 changed files with 19 additions and 10 deletions

View File

@ -126,7 +126,9 @@ crontab例子内容如下
<pubDate>Wed, 30 Dec 2020 00:00:00 +0000</pubDate>
<guid>https://jamesfengcao.gitee.io/uwebzh/links/</guid>
<description>uweb浏览器中长按书签按钮可弹出常用链接菜单这些链接定义在文件&amp;quot;default.link&amp;quot;中,改动过的文件清后台重启动后生效。每行格式如下:
<description>点击以下链接可安装至常用链接
酷安扫描
uweb浏览器中长按书签按钮可弹出常用链接菜单这些链接定义在文件&amp;quot;default.link&amp;quot;中,改动过的文件清后台重启动后生效。每行格式如下:
[菜单名]:[url][空格][javascript脚本]
其中空格及之后的脚本为可选项。url及之后的脚本支持&amp;quot;%u&amp;quot;,&amp;quot;%s&amp;quot;等替换。
脚本将在链接访问结束时自动执行。
@ -160,8 +162,7 @@ socks代理
点击安装酷安扫描至常用链接
i:18[extended mimetype]:[range]:[url]
读取url部分数据并使用指定mimetype强制处理。
:格式同http header。譬如&amp;quot;500-1000,-300&amp;quot;
:可以为标准的mimetype。也可以在标准mimetype后面添加&amp;quot;.&amp;lt;文件名&amp;gt;&amp;quot;此时uweb配置目录下的文件“&amp;lt;文件名&amp;gt;”内容会附在url部分数据后面一起显示。</description>
:格式同http header。譬如&amp;quot;500-1000,-300&amp;quot;</description>
</item>
<item>

View File

@ -1,7 +1,7 @@
<!doctype html>
<html>
<head>
<meta name="generator" content="Hugo 0.89.2" />
<meta name="generator" content="Hugo 0.89.3" />
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />

View File

@ -126,7 +126,9 @@ crontab例子内容如下
<pubDate>Wed, 30 Dec 2020 00:00:00 +0000</pubDate>
<guid>https://jamesfengcao.gitee.io/uwebzh/links/</guid>
<description>uweb浏览器中长按书签按钮可弹出常用链接菜单这些链接定义在文件&amp;quot;default.link&amp;quot;中,改动过的文件清后台重启动后生效。每行格式如下:
<description>点击以下链接可安装至常用链接
酷安扫描
uweb浏览器中长按书签按钮可弹出常用链接菜单这些链接定义在文件&amp;quot;default.link&amp;quot;中,改动过的文件清后台重启动后生效。每行格式如下:
[菜单名]:[url][空格][javascript脚本]
其中空格及之后的脚本为可选项。url及之后的脚本支持&amp;quot;%u&amp;quot;,&amp;quot;%s&amp;quot;等替换。
脚本将在链接访问结束时自动执行。
@ -160,8 +162,7 @@ socks代理
点击安装酷安扫描至常用链接
i:18[extended mimetype]:[range]:[url]
读取url部分数据并使用指定mimetype强制处理。
:格式同http header。譬如&amp;quot;500-1000,-300&amp;quot;
:可以为标准的mimetype。也可以在标准mimetype后面添加&amp;quot;.&amp;lt;文件名&amp;gt;&amp;quot;此时uweb配置目录下的文件“&amp;lt;文件名&amp;gt;”内容会附在url部分数据后面一起显示。</description>
:格式同http header。譬如&amp;quot;500-1000,-300&amp;quot;</description>
</item>
<item>

View File

@ -23,7 +23,9 @@
<ul class="tags">
</ul>
<p><a href="..">uweb浏览器</a>中长按书签按钮可弹出常用链接菜单,这些链接定义在文件&quot;default.link&quot;中,改动过的文件清后台重启动后生效。每行格式如下:<br>
<p>点击以下链接可安装至常用链接<br>
<a href="i:53i:16uweb:android.intent.action.VIEW:com.coolapk.market:com.coolapk.market.view.photo.QRCodeActivity">酷安扫描</a></p>
<p><a href="..">uweb浏览器</a>中长按书签按钮可弹出常用链接菜单,这些链接定义在文件&quot;default.link&quot;中,改动过的文件清后台重启动后生效。每行格式如下:<br>
[菜单名]:[url][空格][javascript脚本]<br>
其中空格及之后的脚本为可选项。url及之后的脚本支持<a href="../cmd">&quot;%u&quot;,&quot;%s&quot;等替换</a><br>
脚本将在链接访问结束时自动执行。</p>

View File

@ -1,4 +1,5 @@
<head>
<base>
<script src="https://cdn.jsdelivr.net/npm/marked@3.0.7/marked.min.js"></script>
<script>
function absFile(url) {
@ -24,6 +25,7 @@
function loadSlice(){
function render(u8array){
document.body.innerHTML = marked(new TextDecoder().decode(u8array));
scroll(0,0);
}
function setPageUrl(pageurl){
let a = document.createElement('a');
@ -31,7 +33,6 @@
a.click();
}
var url;
var page = 1;
var extrasize = blocksize; //extrasize should <= blocksize
let lhash = location.hash;
@ -82,7 +83,11 @@
}
//?url=#offset=&[len]&page=
file = new absFile(location.search.substring(5));
{
let url = location.search.substring(5);
file = new absFile(url);
document.getElementsByTagName('base')[0].href=url;
}
window.addEventListener('hashchange',loadSlice);
</script>
</head>