Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/simon-laux/zhv
ZHV - Zipped HTML Viewer (for https://github.com/adbenitez/simplebot/)
https://github.com/simon-laux/zhv
Last synced: 24 days ago
JSON representation
ZHV - Zipped HTML Viewer (for https://github.com/adbenitez/simplebot/)
- Host: GitHub
- URL: https://github.com/simon-laux/zhv
- Owner: Simon-Laux
- License: gpl-3.0
- Created: 2019-05-29T17:05:40.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-01-01T13:33:41.000Z (almost 2 years ago)
- Last Synced: 2023-03-08T17:56:54.392Z (over 1 year ago)
- Language: HTML
- Homepage:
- Size: 1.43 MB
- Stars: 6
- Watchers: 5
- Forks: 1
- Open Issues: 23
-
Metadata Files:
- Readme: Readme.md
- Changelog: Changelog.md
- License: LICENSE
Awesome Lists containing this project
README
# ZHV - Zipped HTML Viewer
This is an Android app.Opens files with the extention `.html.zip` or `.htmlzip` and displays their content in a webview.
The app can also open plain html and even markdown files.It doesn't allow loading resources from the web. Assets must be inline because it only loads from the index html file for now.
## Zipped HTML format
Has extention `.html.zip`(for backwards compatibility) or `.htmlzip` (that automatic renaming don't break the extention).
It is an zip file with following content:
```
example.html.zip
└── index.html
```## Special JavaScript
The app exposes the global `zhv` object, it can currently be used to check if the site was opened in ZHV and get the version code of ZHV for new functionality that may come in the future.
```ts
zhv : {
getVersion:()=>number
}
```## Note Regarding Localstorage
If you use local storage please prefix your variables with an unique prefix (your webapp name + random uuid should do it) to avoid collision with other web apps.
Also don't use `clear()` as it clears everything for every webapp.## Building ZHV
Debug build:run `./gradlew build` on linux or `gradlew.bat build` on windows