# Mobile Web Bible

**A web-based and mobile-friendly Bible reader, Traditional Chinese only.**

## Client-side requirement
Any modern web browser should be able to run this web application. The application has been tested on the latest version of Google Chrome and Mozilla Firefox.

If the web browser has enabled the Service Worker API (almost every modern browser does), the application will try to store the required files in the browser's cache storage, and always fetch the files from the cache storage by default. There is a button on the application's menu to clear the cache storage and also unregister the service worker. You can use this function and then refresh the webpage in order to force the browser to re-download the files, in case if there is any updated release. But sometimes a more effective method to force the re-download, is to clear all of the cached-data and browsing history of the website in the browser.

## Server-side requirement
Since it's in fact a client-only application, there is no strict requirement about the server-side stack (Apache, Nginx, etc.). But you should have the MIME type "application/wasm" added in your HTTP web server.

## Dependencies
This application relied on several libraries/frameworks to run, which is not included in the package:

 - [jQuery](https://jquery.com/)
 - [Bootstrap 4](https://getbootstrap.com/)
 - [sql.js](https://github.com/kripken/sql.js/)
 - [swiped-events](https://github.com/john-doherty/swiped-events)


 If you would like to host the application by yourself, you need to secure the libraries/frameworks mentioned above, and put the required files in the correct directory. You can refer to the source code of `sw.js` to see the details. There is also a script named `start_development_server.py` in the package, which can help you to start a basic HTTP server in the Python-installed environment.

## ChangeLog

20220324:
 - Strip whitespace from the entered keyword.

20200216:
 - Add a message to indicate if the keyword for searching is too short.

20200209:
 - Always scroll to the top when the search process has completed.

20200207:
 - The first release.

#### Author: DarkRanger (https://darkranger.no-ip.org)
#### License: MIT License
