Skip to content
This repository has been archived by the owner on Jan 4, 2018. It is now read-only.

Codestructure

Roy Meissner edited this page Aug 21, 2015 · 4 revisions

./hooks/, ./platforms/ and ./plugis/

These folders are used by Apache Cordova and are not meant to be edited.

Inside this folder you'll find scripts regarding Docker to build the app for Android. See Build the App for detailed instructions.

Inside this folder you'll find icons and splashscreens in different resolutions. If you are to change filenames or add/remove files, please adjust ./config.xml appropriate.

Jump in

./www/Index.html is the primary file, that is used when the App starts up. It is used as a bugfix and only redirects to the main file ./www/main.html, where all the initialization stuff is done (startup window of the App).

Menu entries

All other html files inside ./www/ are related to the different menu entries of the App (see Picture below).

Menu of the App

Inside these files, you'll find the HTML DOM und some JS Code regarding the menu entry. JS Code, that is used in more then one menu entry has been extracted to files inside ./www/js/.

Inside this folder you'll find some common JS Code, like the files confg.js, where all the configurations stuff is done, and fn.js, where some default functions are defined. Configs and functions inside this folder are only related to the WebApp, not to the platform specific App.

Design files are located inside ./www/css/. The most files here are auto generated by Frameworks. The actual custom Design is done in defaultThemeChanges.css.

./config.xml - App Configuration

All the things that are unrelated to the actual website (or WebApp) can be found in config.xml. This is the config file of Cordova, where the Android Status-bar is styled, where Plugins (like Geolocation) are added and where several other App related configurations are done.