Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/brodycj/cordova-dialogs-bootstrap-starter-app
https://github.com/brodycj/cordova-dialogs-bootstrap-starter-app
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/brodycj/cordova-dialogs-bootstrap-starter-app
- Owner: brodycj
- Created: 2017-03-08T23:14:21.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2020-04-02T19:48:29.000Z (almost 5 years ago)
- Last Synced: 2024-07-31T00:17:14.877Z (5 months ago)
- Language: HTML
- Size: 194 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Cordova dialogs bootstrap test app
Template to play with Cordova dialogs. May be used as a starter project.
**AUTHOR:** [@brodybits (Christopher J. Brody aka Chris Brody)](https://github.com/brodybits)
**LICENSE:** [CC0 1.0 (public domain)](https://creativecommons.org/publicdomain/zero/1.0/)
**NOTE:** This project includes JQuery (2.2.4) and Bootstrap (3.3.6) under the MIT license. Otherwise there is no code copied from other sources.
**IMPORTANT:** Whitelist and intent items are omitted from this test app.
**NOTICE:** This test does not work on macOS ("osx") since it is not supported by `cordova-plugin-dialogs`.
## Dependencies
- Bootstrap (3.3.6) - included (MIT license)
- JQuery (2.2.4) - included (MIT license)
- `cordova-plugin-dialogs` - specified in `config.xml`NOTE: `cordova-plugin-dialogs` was added using the `--save` flag to ensure that this plugin would be automatically installed. It is recommended to use the `--save` flags to add any other plugins rather than adding such plugins to git.
## To add another plugin
```shell
cordova plugin add my-plugin-id --save
```## How to run
**Step 1:** Add the desired platform(s), for example:
```shell
cordova platform add android
```**Step 2 (optional):** Do `cordova prepare` (may not be necessary but good to be on the safe side):
```shell
cordova prepare
```**Step 3:** Run it on your mobile emulator or device, for example:
```shell
cordova run android
```## Functionality
- Native alert dialog test
- Native confirm dialog test with 2 choices (labels BROKEN on browser)
- Native confirm dialog test with 3 choices (BROKEN on browser & Windows Mobile)
- Native prompt dialog test with 2 choices (PARTIALLY BROKEN on browser)
- Native prompt dialog test with 3 choices (PARTIALLY BROKEN on browser & Windows Mobile)
- Location reload
- Follow link to page 2
- Change window.location to page 2## Multi-page test
It is possible to switch between two pages using "follow link" buttons. The main page also has a button to go to page 2 by changing `window.location`. There is also a button on both pages to try `location.reload()`.