├── .gitignore
├── LICENSE.md
├── README.md
├── config.xml
├── package.json
├── res
└── icon.png
├── state_machine.svg
└── www
├── css
└── index.css
├── img
└── logo.png
├── index.html
└── js
├── index.js
├── lodash.custom.js
├── machina.js
├── polyfill.js
└── util.js
/.gitignore:
--------------------------------------------------------------------------------
1 | # system and tools
2 | npm-debug.log
3 | /node_modules
4 | .DS_Store
5 | .gradle
6 | .metadata
7 | Thumbs.db
8 | Desktop.ini
9 | *.tmp
10 | *.bak
11 | *.sw?
12 | *.class
13 | *.jar
14 | default.properties
15 | local.properties
16 | gen
17 |
18 | # cordova
19 | /platforms
20 | /plugins
21 |
--------------------------------------------------------------------------------
/LICENSE.md:
--------------------------------------------------------------------------------
1 | Apache License
2 | ==============
3 |
4 | _Version 2.0, January 2004_
5 | _<>_
6 |
7 | ### Terms and Conditions for use, reproduction, and distribution
8 |
9 | #### 1. Definitions
10 |
11 | “License” shall mean the terms and conditions for use, reproduction, and
12 | distribution as defined by Sections 1 through 9 of this document.
13 |
14 | “Licensor” shall mean the copyright owner or entity authorized by the copyright
15 | owner that is granting the License.
16 |
17 | “Legal Entity” shall mean the union of the acting entity and all other entities
18 | that control, are controlled by, or are under common control with that entity.
19 | For the purposes of this definition, “control” means **(i)** the power, direct or
20 | indirect, to cause the direction or management of such entity, whether by
21 | contract or otherwise, or **(ii)** ownership of fifty percent (50%) or more of the
22 | outstanding shares, or **(iii)** beneficial ownership of such entity.
23 |
24 | “You” (or “Your”) shall mean an individual or Legal Entity exercising
25 | permissions granted by this License.
26 |
27 | “Source” form shall mean the preferred form for making modifications, including
28 | but not limited to software source code, documentation source, and configuration
29 | files.
30 |
31 | “Object” form shall mean any form resulting from mechanical transformation or
32 | translation of a Source form, including but not limited to compiled object code,
33 | generated documentation, and conversions to other media types.
34 |
35 | “Work” shall mean the work of authorship, whether in Source or Object form, made
36 | available under the License, as indicated by a copyright notice that is included
37 | in or attached to the work (an example is provided in the Appendix below).
38 |
39 | “Derivative Works” shall mean any work, whether in Source or Object form, that
40 | is based on (or derived from) the Work and for which the editorial revisions,
41 | annotations, elaborations, or other modifications represent, as a whole, an
42 | original work of authorship. For the purposes of this License, Derivative Works
43 | shall not include works that remain separable from, or merely link (or bind by
44 | name) to the interfaces of, the Work and Derivative Works thereof.
45 |
46 | “Contribution” shall mean any work of authorship, including the original version
47 | of the Work and any modifications or additions to that Work or Derivative Works
48 | thereof, that is intentionally submitted to Licensor for inclusion in the Work
49 | by the copyright owner or by an individual or Legal Entity authorized to submit
50 | on behalf of the copyright owner. For the purposes of this definition,
51 | “submitted” means any form of electronic, verbal, or written communication sent
52 | to the Licensor or its representatives, including but not limited to
53 | communication on electronic mailing lists, source code control systems, and
54 | issue tracking systems that are managed by, or on behalf of, the Licensor for
55 | the purpose of discussing and improving the Work, but excluding communication
56 | that is conspicuously marked or otherwise designated in writing by the copyright
57 | owner as “Not a Contribution.”
58 |
59 | “Contributor” shall mean Licensor and any individual or Legal Entity on behalf
60 | of whom a Contribution has been received by Licensor and subsequently
61 | incorporated within the Work.
62 |
63 | #### 2. Grant of Copyright License
64 |
65 | Subject to the terms and conditions of this License, each Contributor hereby
66 | grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
67 | irrevocable copyright license to reproduce, prepare Derivative Works of,
68 | publicly display, publicly perform, sublicense, and distribute the Work and such
69 | Derivative Works in Source or Object form.
70 |
71 | #### 3. Grant of Patent License
72 |
73 | Subject to the terms and conditions of this License, each Contributor hereby
74 | grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free,
75 | irrevocable (except as stated in this section) patent license to make, have
76 | made, use, offer to sell, sell, import, and otherwise transfer the Work, where
77 | such license applies only to those patent claims licensable by such Contributor
78 | that are necessarily infringed by their Contribution(s) alone or by combination
79 | of their Contribution(s) with the Work to which such Contribution(s) was
80 | submitted. If You institute patent litigation against any entity (including a
81 | cross-claim or counterclaim in a lawsuit) alleging that the Work or a
82 | Contribution incorporated within the Work constitutes direct or contributory
83 | patent infringement, then any patent licenses granted to You under this License
84 | for that Work shall terminate as of the date such litigation is filed.
85 |
86 | #### 4. Redistribution
87 |
88 | You may reproduce and distribute copies of the Work or Derivative Works thereof
89 | in any medium, with or without modifications, and in Source or Object form,
90 | provided that You meet the following conditions:
91 |
92 | * **(a)** You must give any other recipients of the Work or Derivative Works a copy of
93 | this License; and
94 | * **(b)** You must cause any modified files to carry prominent notices stating that You
95 | changed the files; and
96 | * **(c)** You must retain, in the Source form of any Derivative Works that You distribute,
97 | all copyright, patent, trademark, and attribution notices from the Source form
98 | of the Work, excluding those notices that do not pertain to any part of the
99 | Derivative Works; and
100 | * **(d)** If the Work includes a “NOTICE” text file as part of its distribution, then any
101 | Derivative Works that You distribute must include a readable copy of the
102 | attribution notices contained within such NOTICE file, excluding those notices
103 | that do not pertain to any part of the Derivative Works, in at least one of the
104 | following places: within a NOTICE text file distributed as part of the
105 | Derivative Works; within the Source form or documentation, if provided along
106 | with the Derivative Works; or, within a display generated by the Derivative
107 | Works, if and wherever such third-party notices normally appear. The contents of
108 | the NOTICE file are for informational purposes only and do not modify the
109 | License. You may add Your own attribution notices within Derivative Works that
110 | You distribute, alongside or as an addendum to the NOTICE text from the Work,
111 | provided that such additional attribution notices cannot be construed as
112 | modifying the License.
113 |
114 | You may add Your own copyright statement to Your modifications and may provide
115 | additional or different license terms and conditions for use, reproduction, or
116 | distribution of Your modifications, or for any such Derivative Works as a whole,
117 | provided Your use, reproduction, and distribution of the Work otherwise complies
118 | with the conditions stated in this License.
119 |
120 | #### 5. Submission of Contributions
121 |
122 | Unless You explicitly state otherwise, any Contribution intentionally submitted
123 | for inclusion in the Work by You to the Licensor shall be under the terms and
124 | conditions of this License, without any additional terms or conditions.
125 | Notwithstanding the above, nothing herein shall supersede or modify the terms of
126 | any separate license agreement you may have executed with Licensor regarding
127 | such Contributions.
128 |
129 | #### 6. Trademarks
130 |
131 | This License does not grant permission to use the trade names, trademarks,
132 | service marks, or product names of the Licensor, except as required for
133 | reasonable and customary use in describing the origin of the Work and
134 | reproducing the content of the NOTICE file.
135 |
136 | #### 7. Disclaimer of Warranty
137 |
138 | Unless required by applicable law or agreed to in writing, Licensor provides the
139 | Work (and each Contributor provides its Contributions) on an “AS IS” BASIS,
140 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied,
141 | including, without limitation, any warranties or conditions of TITLE,
142 | NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are
143 | solely responsible for determining the appropriateness of using or
144 | redistributing the Work and assume any risks associated with Your exercise of
145 | permissions under this License.
146 |
147 | #### 8. Limitation of Liability
148 |
149 | In no event and under no legal theory, whether in tort (including negligence),
150 | contract, or otherwise, unless required by applicable law (such as deliberate
151 | and grossly negligent acts) or agreed to in writing, shall any Contributor be
152 | liable to You for damages, including any direct, indirect, special, incidental,
153 | or consequential damages of any character arising as a result of this License or
154 | out of the use or inability to use the Work (including but not limited to
155 | damages for loss of goodwill, work stoppage, computer failure or malfunction, or
156 | any and all other commercial damages or losses), even if such Contributor has
157 | been advised of the possibility of such damages.
158 |
159 | #### 9. Accepting Warranty or Additional Liability
160 |
161 | While redistributing the Work or Derivative Works thereof, You may choose to
162 | offer, and charge a fee for, acceptance of support, warranty, indemnity, or
163 | other liability obligations and/or rights consistent with this License. However,
164 | in accepting such obligations, You may act only on Your own behalf and on Your
165 | sole responsibility, not on behalf of any other Contributor, and only if You
166 | agree to indemnify, defend, and hold each Contributor harmless for any liability
167 | incurred by, or claims asserted against, such Contributor by reason of your
168 | accepting any such warranty or additional liability.
169 |
170 | _END OF TERMS AND CONDITIONS_
171 |
172 | ### APPENDIX: How to apply the Apache License to your work
173 |
174 | To apply the Apache License to your work, attach the following boilerplate
175 | notice, with the fields enclosed by brackets `[]` replaced with your own
176 | identifying information. (Don't include the brackets!) The text should be
177 | enclosed in the appropriate comment syntax for the file format. We also
178 | recommend that a file or class name and description of purpose be included on
179 | the same “printed page” as the copyright notice for easier identification within
180 | third-party archives.
181 |
182 | Copyright [yyyy] [name of copyright owner]
183 |
184 | Licensed under the Apache License, Version 2.0 (the "License");
185 | you may not use this file except in compliance with the License.
186 | You may obtain a copy of the License at
187 |
188 | http://www.apache.org/licenses/LICENSE-2.0
189 |
190 | Unless required by applicable law or agreed to in writing, software
191 | distributed under the License is distributed on an "AS IS" BASIS,
192 | WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
193 | See the License for the specific language governing permissions and
194 | limitations under the License.
195 |
196 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | # Cordova Web Wrap
2 |
3 | This app is a light-weight [Cordova](http://cordova.apache.org/) wrapper around a
4 | mobile website. It can be useful to add functionality that only works in apps, like
5 | barcode scanning, to a mobile website. While Cordova does a lot to make this possible,
6 | a polished, well-working app is not yet trivial. This project simplifies that.
7 |
8 | Note that it's best to create a [single page application](https://en.wikipedia.org/wiki/Single-page_application),
9 | so that the website code only needs to be loaded once. This allows the user to have
10 | fast interaction with the app.
11 |
12 | Features:
13 |
14 | - Loads the website in an app, safely (inAppBrowser).
15 | - Meant for [single page applications](https://en.wikipedia.org/wiki/Single-page_application).
16 | - Works when online, a notice is shown when offline (with a state-machine to track state).
17 | - Opens external links in the system web browser, internal links in the app.
18 | - Website can indicate which links to open in the app.
19 | - Allows scanning a barcode, initiated from the website.
20 | - Works on Android and iOS.
21 |
22 | ## Build
23 |
24 | 1. [Install Cordova](http://cordova.apache.org/docs/en/latest/guide/cli/index.html): `npm install -g cordova`
25 | 2. [Add platforms](https://cordova.apache.org/docs/en/latest/guide/cli/index.html#add-platforms): `cordova platform add android` and/or `cordova platform add ios`.
26 | 3. [Check (and install) requirements](https://cordova.apache.org/docs/en/latest/guide/cli/index.html#install-pre-requisites-for-building): `cordova requirements`
27 | 4. [Build](https://cordova.apache.org/docs/en/latest/guide/cli/index.html#build-the-app): `cordova build`
28 |
29 | ### iOS
30 |
31 | On iOS `cordova build ios` may not be enough. After running this, you can open the folder `platforms/ios` in Xcode.
32 | In the warnings shown there are two items about updating build settings. Accept the modifications (ignoring the warning
33 | about uncommited changes), and build it from Xcode.
34 |
35 | ## Configure
36 |
37 | - Change `LANDING_URL` in [`www/js/index.js`](www/js/index.js#L21) to point to your mobile website.
38 | - Update `id`, `name`, `description` and `author` in [`config.xml`](config.xml) ([reference](https://cordova.apache.org/docs/en/latest/config_ref/)).
39 | - Modify `name`, `displayName`, `description` and `author` in [`package.json`](package.json).
40 | - Edit `title`, `h1` and other texts in [`www/index.html`](www/index.html).
41 |
42 | Then build and install.
43 | If you want more beautiful icons (recommended), run
44 |
45 | npm install cordova-icon
46 | node_modules/.bin/cordova-icon --icon=res/icon.png
47 |
48 | To use your own icons, update [`res/icon.png`](res/icon.png) and [`www/img/logo.png`](www/img/logo.png) before doing so.
49 |
50 | ## State machine
51 |
52 | This app uses a state machine ([machina](https://github.com/ifandelse/machina.js)) to keep track of
53 | connection and loading state. The state diagram is as follows:
54 |
55 | 
56 |
57 | ## Opening external links
58 |
59 | External links are opened in the system web browser, internal links in the app.
60 | Which links are internal is determined by `LOCAL_URLS` in [index.js](www/js/index.js#L26),
61 | which is a space-separated list of URLs. All listed links are considered to be internal.
62 | Full URLs are allowed (to allow multiple hosts), as are URLs relative to the
63 | host (and protocol) of `LANDING_URL`, with leading slash. Query string and hash are
64 | not part of the comparison.
65 |
66 | For example, if you have a mobile website where you want to open the index, an about
67 | page, and product pages, you could use `/ /about /products/*`. All other
68 | links on your website would be opened in the system web browser.
69 |
70 | This attribute can also be set by the website by any element with a `data-app-local-urls`
71 | attribute (so the website can evolve without having to update this setting in the app).
72 |
73 | ## Barcode scanner
74 |
75 | The website can initiate a barcode scan by pointing to the custom url `app://mobile-scan`.
76 | When this link is followed, the barcode scanner is opened. On successful scan, it will return
77 | to the page indicated by the `ret` query string parameter passed that triggered opening the
78 | scanner. This is a [URL template](https://en.wikipedia.org/wiki/URL_Template) where `{CODE}` is
79 | replaced by the scanned barcode. Links can be relative or absolute.
80 |
81 | An example. When following the link in the HTML shown below, a barcode scanner will
82 | be opened, and when barcode `12345` is scanned, the link `http://x.test/scan/12345`
83 | will be opened in the app.
84 |
85 | ```html
86 |
87 | Scan
88 |
89 | ```
90 |
91 | ## Adapating a website for the app
92 |
93 | This app shows a mobile website. Most of it would also work in a regular web browser, but
94 | certain features may only make sense when embedded in the app. The barcode-scan feature
95 | comes to mind, and it may be desirable to hide large documentation pages from navigation.
96 |
97 | This can easily be done in two ways:
98 | 1. _User-Agent_ - the `AppendUserAgent` preference in `config.xml` can be used to modify
99 | the user-agent. The website can show and hide certain elements based on this.
100 | 2. `LANDING_URL` - the app's landing page could include a query parameter or be a specific
101 | page for the app. It can be useful to pass through the query parameter to links, so that
102 | any modified navigation remains so in the app.
103 |
104 | ## Testing on the emulator
105 |
106 | To test the barcode scanner with the Android emulator, you can use the following
107 | procedure on Linux (based on [this](https://stackoverflow.com/a/35526103/2866660)).
108 |
109 | ```sh
110 | # Check which video devices are available. Use the next number for 'video_nr' and in 'device'.
111 | $ ls /dev/video*
112 | /dev/video0
113 | # Load the loopback video device
114 | $ sudo modprobe v4l2loopback video_nr=1 card_label="mockcam"
115 | # Create virtual webcam out of the image, substitute 'image.png' with your picture.
116 | $ gst-launch-1.0 filesrc location=image.png ! pngdec ! imagefreeze ! v4l2sink device=/dev/video1
117 | ```
118 |
119 | Then launch the emulator with the additional argument `-camera-back webcam1` (use same number
120 | as above). You may want to scale the image to 800x600 if you have a large one. One online
121 | barcode generator is [this one](https://floms.github.io/Open-Barcode/).
122 |
123 | ## Lodash
124 |
125 | The state machine requires [lodash](https://lodash.com/), and to reduce the footprint we
126 | use a custom build (527K to 132K for version 4.17.5). The methods included are just those used
127 | in the [state machine code](www/js/machina.js) plus `debounce` (so if you get missing functions
128 | there after a machina upgrade, check if a missing method is used):
129 |
130 | npm install -g lodash-cli
131 | lodash -d -o www/js/lodash.custom.js include=apply,defaults,cloneDeep,debounce,difference,each,extend,filter,isPlainObject,merge,transform,without
132 |
133 | ## Notes
134 |
135 | - If the inAppBrowser would support opening external links without messing up the internal inAppBrowser, the
136 | app-launcher plugin could be removed (see also [CB-13198](https://issues.apache.org/jira/browse/CB-13198)).
137 | - On iOS, opening the barcode scanner briefly shows a _opening barcode scanner_ screen because of
138 | [this issue](https://github.com/phonegap/phonegap-plugin-barcodescanner/issues/570) (marked _wontfix_).
139 |
140 | ## Links
141 |
142 | * [Going Mobile: Wrapping an existing web application in Cordova/Phonegap](https://medium.com/code-divoire/going-mobile-wrapping-an-existing-web-application-in-cordova-phonegap-106d8b60bb9a)
143 | * [HTML-5 Cordova webapp](https://github.com/krisrak/html5-cordova-webapp/)
144 | * [Is This Thing On?](https://www.telerik.com/blogs/is-this-thing-on-(part-1)), on state management for connection status
145 | * [Cordova documentation](https://cordova.apache.org/docs/en/latest/)
146 |
147 | ## License
148 |
149 | This project is licensed under the [Apache 2.0](LICENSE.md) license.
150 |
--------------------------------------------------------------------------------
/config.xml:
--------------------------------------------------------------------------------
1 |
2 |
3 | Example
4 | An example Cordova app wrapping a mobile website.
5 | wvengen
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 | To scan barcodes
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
--------------------------------------------------------------------------------
/package.json:
--------------------------------------------------------------------------------
1 | {
2 | "name": "com.example.webwrap",
3 | "displayName": "Example",
4 | "version": "1.0.0",
5 | "description": "An example Cordova app wrapping a mobile website.",
6 | "homepage": "https://github.com/q-m/cordova-web-wrap",
7 | "license": "Apache-2.0",
8 | "main": "index.js",
9 | "scripts": {
10 | "test": "echo \"Error: no test specified\" && exit 1"
11 | },
12 | "author": "wvengen",
13 | "dependencies": {
14 | "cordova-plugin-app-launcher": "^0.4.0",
15 | "cordova-plugin-inappbrowser": "git+https://github.com/apache/cordova-plugin-inappbrowser.git#94fec84d5c81e64b89b4c216d02938d58ba61dbc",
16 | "cordova-plugin-network-information": "^2.0.1",
17 | "cordova-plugin-whitelist": "^1.3.3",
18 | "phonegap-plugin-barcodescanner": "^7.1.2"
19 | },
20 | "cordova": {
21 | "plugins": {
22 | "cordova-plugin-whitelist": {},
23 | "cordova-plugin-inappbrowser": {},
24 | "cordova-plugin-network-information": {},
25 | "phonegap-plugin-barcodescanner": {
26 | "ANDROID_SUPPORT_V4_VERSION": "27.+"
27 | },
28 | "cordova-plugin-app-launcher": {}
29 | },
30 | "platforms": []
31 | }
32 | }
33 |
--------------------------------------------------------------------------------
/res/icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/q-m/cordova-web-wrap/08cdf404d7d3ecdd4710da24251f5aacd2eadaac/res/icon.png
--------------------------------------------------------------------------------
/state_machine.svg:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
1106 |
--------------------------------------------------------------------------------
/www/css/index.css:
--------------------------------------------------------------------------------
1 | /*
2 | * Licensed to the Apache Software Foundation (ASF) under one
3 | * or more contributor license agreements. See the NOTICE file
4 | * distributed with this work for additional information
5 | * regarding copyright ownership. The ASF licenses this file
6 | * to you under the Apache License, Version 2.0 (the
7 | * "License"); you may not use this file except in compliance
8 | * with the License. You may obtain a copy of the License at
9 | *
10 | * http://www.apache.org/licenses/LICENSE-2.0
11 | *
12 | * Unless required by applicable law or agreed to in writing,
13 | * software distributed under the License is distributed on an
14 | * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15 | * KIND, either express or implied. See the License for the
16 | * specific language governing permissions and limitations
17 | * under the License.
18 | */
19 | * {
20 | -webkit-tap-highlight-color: rgba(0,0,0,0); /* make transparent link selection, adjust last value opacity 0 to 1.0 */
21 | }
22 |
23 | body {
24 | -webkit-touch-callout: none; /* prevent callout to copy image, etc when tap to hold */
25 | -webkit-text-size-adjust: none; /* prevent webkit from resizing text to fit */
26 | -webkit-user-select: none; /* prevent copy paste, to allow, change 'none' to 'text' */
27 | background-color: white;
28 | font-family: 'HelveticaNeue-Light', 'HelveticaNeue', Helvetica, Arial, sans-serif;
29 | font-size: 14px;
30 | margin: 0;
31 | padding: 0;
32 | width: 100%;
33 | height: 100%;
34 | }
35 |
36 | /* Portrait layout (default) */
37 | .app {
38 | background:url(../img/logo.png) no-repeat center top; /* 128px x 128px */
39 | position: absolute; /* position in the center of the screen */
40 | left: 50%;
41 | top: 50%;
42 | height: 180px; /* text area height */
43 | width: 250px; /* text area width */
44 | text-align: center;
45 | padding: 128px 0 0 0; /* image height is 128px */
46 | margin: -154px 0 0 -124px; /* offset vertical: half of image height and text area height */
47 | /* offset horizontal: half of text area width */
48 | }
49 |
50 | /* Landscape layout (with min-width) */
51 | @media screen and (min-aspect-ratio: 1/1) and (min-width: 400px) {
52 | .app {
53 | background-position: left center;
54 | padding: 0px 0px 0px 128px; /* give space to image on the left */
55 | margin:-90px 0px 0px -189px; /* offset vertical: half of text height */
56 | /* offset horizontal: half of image width and text area width */
57 | }
58 | }
59 |
60 | .btn {
61 | border: 1px solid #888;
62 | border-radius: 5px;
63 | padding: 6px 8px;
64 | background: #fff;
65 | color: #000;
66 | transition: all .4s ease;
67 | }
68 |
69 | .btn:hover, .btn:active {
70 | background: #ddd;
71 | color: #000;
72 | }
73 |
74 | .event {
75 | border-radius: 4px;
76 | -webkit-border-radius: 4px;
77 | font-size: 14px;
78 | margin: 0px 30px;
79 | padding: 2px 0px;
80 | display: none; /* hide by default */
81 | }
82 | .event-default {
83 | display: block;
84 | }
85 |
86 | @keyframes fade {
87 | from { opacity: 1.0; }
88 | 50% { opacity: 0.25; }
89 | to { opacity: 1.0; }
90 | }
91 |
92 | @-webkit-keyframes fade {
93 | from { opacity: 1.0; }
94 | 50% { opacity: 0.25; }
95 | to { opacity: 1.0; }
96 | }
97 |
98 | .blink {
99 | animation:fade 3000ms infinite;
100 | -webkit-animation:fade 3000ms infinite;
101 | }
102 |
--------------------------------------------------------------------------------
/www/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/q-m/cordova-web-wrap/08cdf404d7d3ecdd4710da24251f5aacd2eadaac/www/img/logo.png
--------------------------------------------------------------------------------
/www/index.html:
--------------------------------------------------------------------------------
1 |
2 |
20 |
21 |