From 2f3eee32c272ea59e30a56ce4da7043da5593c60 Mon Sep 17 00:00:00 2001
From: James Feng Cao
Date: Sun, 2 Oct 2022 14:55:36 +0800
Subject: [PATCH] html5 application to support file urls by appending '?app='
---
en/_posts/index.xml | 4 ++--
en/html5/index.html | 3 ++-
en/index.xml | 38 +++++++++++++++++++-------------------
en/sitemap.xml | 38 +++++++++++++++++++-------------------
index.html | 11 +----------
sitemap.xml | 2 +-
zh/_posts/index.xml | 3 +--
zh/index.xml | 3 +--
zh/links/index.html | 1 +
zh/tags/tdict/index.xml | 2 --
zh/tags/termux/index.xml | 2 --
zh/tags/tools/index.xml | 2 --
zh/tools/index.html | 2 --
13 files changed, 47 insertions(+), 64 deletions(-)
diff --git a/en/_posts/index.xml b/en/_posts/index.xml
index f5ca4eb8..eca2dc97 100644
--- a/en/_posts/index.xml
+++ b/en/_posts/index.xml
@@ -5,11 +5,11 @@
/en/_posts/
Recent content in _posts on uweb browserHugo -- gohugo.io
- Tue, 02 Aug 2022 00:00:00 +0000
+ Sun, 02 Oct 2022 00:00:00 +0000Html5 applications
/en/html5/
- Tue, 02 Aug 2022 00:00:00 +0000
+ Sun, 02 Oct 2022 00:00:00 +0000/en/html5/This page is for uweb browser.
diff --git a/en/html5/index.html b/en/html5/index.html
index acb3258d..bf8bf394 100644
--- a/en/html5/index.html
+++ b/en/html5/index.html
@@ -62,8 +62,9 @@ Click to install the following html5 apps:
All html5 applications locating in a subfolder whose name begins with "app" (such as "appPDF") are allowed to read local files. Use url "https://local/sdcard/..." for a local file.
All files under the subfolder "app" can be automatically choosed as file objects by any web page.
+
Local files (including binary files) can be processed by appending "?app=[html5 app url] to the file urls. Ex. "file:///..../xx.md?app=https://...../app.html" loads "app.html" first, then "app.html" processes the local file.
-
With the first approach, the html5 application is installed locally and can read any file allowed by the OS; while in the second approach, the html5 application can be either local or remote, and only files under the subfolder "app" can be accessed.
+
With the first approach, the html5 application is installed locally and can read any file allowed by the OS; while in the second approach, the html5 application can be either local or remote, and only files under the subfolder "app" can be accessed; The third approach allows easy access of other external resources (ex. local media).