diff --git a/.gitignore b/.gitignore index 2997c3d..c1dcee2 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ *.py[cod] +node_modules # C extensions *.so diff --git a/CNAME b/CNAME deleted file mode 100644 index bfd7de5..0000000 --- a/CNAME +++ /dev/null @@ -1 +0,0 @@ -living-wage.co.za diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..e69de29 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 0000000..0e4ad30 --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,38 @@ +To read more about contributing to open source see https://opensource.guide/ + +# Submitting a PR + +**All Pull Requests should be made against dev (even bug fixes).** + +Before submitting a large PR for a new feature or improvement, please create an issue first. This will allow us to discuss the feature before much development effort is put into it. After we've agreed that the feature would fit in the scope of the project, or if the change is small enough to not require an issue, follow these steps to create a PR: + +- Make a new branch + +git checkout -b my-fix dev + +- Make your changes, including test cases if applicable. Make sure to follow the coding guidelines described below. +- Commit your errors with a descriptive message + +git add my-new-file.xyz modified-file.xyz + +git commit + +- Push your changes to Github + +git push origin my-fix + +- Create a new Pull Request +- We will review your PR and request changes if necessary. +- When you make a new commit fixing a requested change, please squash your changes using git rebase. +- Once all requested changes have been made, we will merge your pull request. + + +# Coding Guidelines + +- Wrap lines at 100 characters +- Use spaces not tabs +- New lines should be indented by two spaces +- Never add a trailing comma to multiline lists in JS +- Don't add extra spaces between parenthesis, i.e. do foo(1, 2), not foo( 1, 2 ) +- Always use spaces around binary operators, i.e. $i = 0, not $i=0 +- Use camelCase for variables and PascalCase for class constructors. diff --git a/README.md b/README.md index 1a5cac7..4b5a862 100644 --- a/README.md +++ b/README.md @@ -1,17 +1,35 @@ -Domestic-Workers -================ -This project is meant to create a system which takes inputs from users on how much they pay or think they should pay a domestic worker -and tells them more about what that amount means to the lives of a domestic worker's household. -The user upon learning about the meaning of the payment can then adjust the amount they suggested and should be able to, in real time, -see what that implies. +# Living Wage -Assumptions can be altered, including the costs for health in a month, education, transport, and the cost for getting 2000 calories -per day per person +   [](https://zatech.github.io/) -There will be some core data in the backend including how they compare to minimum wage as well as information on costs for -per person health, per child education, transportation, rent, and communications. -Deployment -========== +This repository contains all user-facing code required to render [living-wage.co.za](http://living-wage.co.za/). Initially developed by [OpenUp](https://openup.org.za/). However, project is now maintained on a volunteer basis by the [Codebridge Newlands community](https://www.facebook.com/codebridge.newlands/). -This project is static HTML and Javascript and is served directly from the gh-pages branch on GitHub. +## Introduction +A wage that is an income that is high enough to maintain a "normal standard of living". A normal standard of living refers to the level of wealth, comfort, material goods, and necessities available to a certain socio-economic class in a certain geographic area, usually a country. +Cost of living is the amount of money needed to sustain a certain level of living, including basic expenses such as housing, food, taxes and health care. A cost-of-living index is a theoretical price index that measures relative cost of living over time or regions. It is an index that measures differences in the price of goods and services, and allows for substitutions with other items as prices vary. + +The purpose of this calculator is to assist the user to determine a realistic wage, initially within the context of a domestic worker, which is influenced by factors such as transport, children, education, food, housing, etc. + + +## Getting Started + +### Local development + +1. Clone this project by running `git clone https://github.com/codebridge-za/living-wage.git`. +2. Make sure you have the latest [NodeJS](https://nodejs.org/en/) installed. +3. Run `npm install` in the root folder of the repository. +4. Run `npm start` to spin up the development server. +5. Open `localhost:8000` in your browser. + +### Testing + +It is recommended to test on an webserver such as Apache. +However, this calculator is so simple you can just test it by opening the index.html. + +### Technologies +1. HTML +2. CSS +3. JavaScript +4. jQuery +5. Bootstrap \ No newline at end of file diff --git a/css/styles.css b/css/styles.css index 2acdad0..ec46a7f 100644 --- a/css/styles.css +++ b/css/styles.css @@ -222,6 +222,10 @@ h1, h2, h3, h4, h5, h6{ } +#outer-pay-amount-week, #outer-pay-amount-month { + display: none; +} + .btn-primary{ background: #059; diff --git a/index.html b/index.html index 8e48958..91d6d1a 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@