This is one of there repositories for a full mobile and web development project. The project was submitted for assessment during UCL masters course and was awarded distinction.
Please check the README file of the Server Repository first, Before reading this file.
This application is designed to run both on phones through the PhoneGap application and on PCs through web browsers. Therefore no additional requirements are needed if the ones mentioned in the server repository are satisfied
Please refer to the README file of the Server Repository
The repository contains several files and folders, most of which are created by the phoneGap application automatically. Yet a few files are created or modified by the developer. These files are hosted in the directory GeoQuiz-web-app/ucesmmh/www/
, and the following is a list of these files:
File name | File Role |
---|---|
index | The main application file which contains the basic material design elements, the map and the HTML DIVs which hosts all the items of the application |
help | An identical copy of the HTML code compressed in the help.js file. The purpose of this file is test the help page on the computer before publishing it to the phone. |
File name | File Role |
---|---|
MostDifficult.js | Send request to the server to get the five most difficult questions and then add it to the index page in a table format |
PastWeekRate.js | Send request to the server to get the participation rates of the all the users or a specific user based on the choice clicked in the menu, and then receive the data from the server and display it in a graph. |
formtFunctions.js | Collects the input from the add questions form and send it to the server to be added in the database |
help.js | Pushing the compressed HTML page to be displayed in the help DIV on the index page |
index.js | Added by PhoneGap |
lastWeek.js | Collects the questions added last week from the server and display them on the map. |
leaflet.awesome-markers.js | Display awesome markers which are used throughout the application |
leaflet.js | Hosts the basic layer display of the map |
leafletFunctions.js | Hosts the display function of the default view of showing the questions added by the user |
startup.js | Listen to the page and loads the map once the page is loaded |
utilities.js | Gets the port number |
File name | File Role |
---|---|
index.css | Added by phoneGap |
ionicons.min.css | Getting Ion Icons |
leaflet.awesome-markers.css | Style for the Awesome markers |
styles.css | Style for material design |
File name | File Role |
---|---|
config.xml | Handling phoneGap extension |
port.xml | Hosted at GeoQuiz-web-app/ucesmmh/www/res/ to get the port id |
Source | Used in |
---|---|
Web and Mobile Module Practical | All the JS and HTML files |
Group bar chart with tooltip on 23/03/2019 | Draw the graphs in PastWeekRate.js |
d3.js | Draw the graphs in PastWeekRate.js |
Material Design | In the index.html |
Leaflet | In All JS files dealing with the map and the index.html file |