├── .vscode
└── settings.json
├── CODE_OF_CONDUCT.md
├── CONTRIBUTING.md
├── README.md
├── css
├── dotBubbles.css
├── dropdown.css
├── soapBubbles.css
├── style.css
└── togglebtn.css
├── digital_font.ttf
├── images
├── calculator.png
└── mockup.jpg
├── index.html
└── js
├── dropdown.js
├── evalutor.js
├── main.js
└── togglebtn.js
/.vscode/settings.json:
--------------------------------------------------------------------------------
1 | {
2 | "liveServer.settings.port": 5503
3 | }
--------------------------------------------------------------------------------
/CODE_OF_CONDUCT.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | We as members, contributors, and leaders pledge to make participation in our
6 | community a harassment-free experience for everyone, regardless of age, body
7 | size, visible or invisible disability, ethnicity, sex characteristics, gender
8 | identity and expression, level of experience, education, socio-economic status,
9 | nationality, personal appearance, race, caste, color, religion, or sexual
10 | identity and orientation.
11 |
12 | We pledge to act and interact in ways that contribute to an open, welcoming,
13 | diverse, inclusive, and healthy community.
14 |
15 | ## Our Standards
16 |
17 | Examples of behavior that contributes to a positive environment for our
18 | community include:
19 |
20 | - Demonstrating empathy and kindness toward other people
21 | - Being respectful of differing opinions, viewpoints, and experiences
22 | - Giving and gracefully accepting constructive feedback
23 | - Accepting responsibility and apologizing to those affected by our mistakes,
24 | and learning from the experience
25 | - Focusing on what is best not just for us as individuals, but for the overall
26 | community
27 |
28 | Examples of unacceptable behavior include:
29 |
30 | - The use of sexualized language or imagery, and sexual attention or advances of
31 | any kind
32 | - Trolling, insulting or derogatory comments, and personal or political attacks
33 | - Public or private harassment
34 | - Publishing others' private information, such as a physical or email address,
35 | without their explicit permission
36 | - Other conduct which could reasonably be considered inappropriate in a
37 | professional setting
38 |
39 | ## Enforcement Responsibilities
40 |
41 | Community leaders are responsible for clarifying and enforcing our standards of
42 | acceptable behavior and will take appropriate and fair corrective action in
43 | response to any behavior that they deem inappropriate, threatening, offensive,
44 | or harmful.
45 |
46 | Community leaders have the right and responsibility to remove, edit, or reject
47 | comments, commits, code, wiki edits, issues, and other contributions that are
48 | not aligned to this Code of Conduct, and will communicate reasons for moderation
49 | decisions when appropriate.
50 |
51 | ## Scope
52 |
53 | This Code of Conduct applies within all community spaces, and also applies when
54 | an individual is officially representing the community in public spaces.
55 | Examples of representing our community include using an official e-mail address,
56 | posting via an official social media account, or acting as an appointed
57 | representative at an online or offline event.
58 |
59 | ## Enforcement
60 |
61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
62 | reported to the community leaders responsible for enforcement.
63 |
64 | All complaints will be reviewed and investigated promptly and fairly.
65 |
66 | All community leaders are obligated to respect the privacy and security of the
67 | reporter of any incident.
68 |
69 | ## Enforcement Guidelines
70 |
71 | Community leaders will follow these Community Impact Guidelines in determining
72 | the consequences for any action they deem in violation of this Code of Conduct:
73 |
74 | ### 1. Correction
75 |
76 | **Community Impact**: Use of inappropriate language or other behavior deemed
77 | unprofessional or unwelcome in the community.
78 |
79 | **Consequence**: A private, written warning from community leaders, providing
80 | clarity around the nature of the violation and an explanation of why the
81 | behavior was inappropriate. A public apology may be requested.
82 |
83 | ### 2. Warning
84 |
85 | **Community Impact**: A violation through a single incident or series of
86 | actions.
87 |
88 | **Consequence**: A warning with consequences for continued behavior. No
89 | interaction with the people involved, including unsolicited interaction with
90 | those enforcing the Code of Conduct, for a specified period of time. This
91 | includes avoiding interactions in community spaces as well as external channels
92 | like social media. Violating these terms may lead to a temporary or permanent
93 | ban.
94 |
95 | ### 3. Temporary Ban
96 |
97 | **Community Impact**: A serious violation of community standards, including
98 | sustained inappropriate behavior.
99 |
100 | **Consequence**: A temporary ban from any sort of interaction or public
101 | communication with the community for a specified period of time. No public or
102 | private interaction with the people involved, including unsolicited interaction
103 | with those enforcing the Code of Conduct, is allowed during this period.
104 | Violating these terms may lead to a permanent ban.
105 |
106 | ### 4. Permanent Ban
107 |
108 | **Community Impact**: Demonstrating a pattern of violation of community
109 | standards, including sustained inappropriate behavior, harassment of an
110 | individual, or aggression toward or disparagement of classes of individuals.
111 |
112 | **Consequence**: A permanent ban from any sort of public interaction within the
113 | community.
114 |
115 | ## Attribution
116 |
117 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
118 | version 2.1, available at
119 | [https://www.contributor-covenant.org/version/2/1/code_of_conduct.html][v2.1].
120 |
121 | Community Impact Guidelines were inspired by
122 | [Mozilla's code of conduct enforcement ladder][mozilla coc].
123 |
124 | For answers to common questions about this code of conduct, see the FAQ at
125 | [https://www.contributor-covenant.org/faq][faq]. Translations are available at
126 | [https://www.contributor-covenant.org/translations][translations].
127 |
128 | [homepage]: https://www.contributor-covenant.org
129 | [v2.1]: https://www.contributor-covenant.org/version/2/1/code_of_conduct.html
130 | [mozilla coc]: https://github.com/mozilla/diversity
131 | [faq]: https://www.contributor-covenant.org/faq
132 | [translations]: https://www.contributor-covenant.org/translations
133 |
--------------------------------------------------------------------------------
/CONTRIBUTING.md:
--------------------------------------------------------------------------------
1 | # Contribution Guideline
2 |
3 |
4 |
5 |
6 |
7 | Are you new to web development? Just learning HTML/CSS/JS and you want to contribute to open source? Follow the steps below!
8 |
9 |
10 |
11 | ## **Here's a quick rundown on how to make a contribution to my project:**
12 |
13 | ---
14 |
15 |
16 |
17 | ### 1. If you have suggestions for how this project could be improved, or want to report a bug, open an issue! We'd love all and any contributions.
18 |
19 | ### 2. Fork this repository .
20 |
21 | Click on fork to create a copy of project to your account. This creates a separate copy for you to workon
22 |
23 | ### 3. Clone the repository to your local machine using:
24 | ```
25 | $ git clone https://github.com//.git
26 | ```
27 | Now you have the project on your local machine
28 |
29 | ### 4. Add the upstream remote:
30 |
31 | ```
32 | cd
33 | $ git remote add upstream https://github.com/Emilance/Javascript-Calculator-App.git
34 | ```
35 |
36 | ### 5. Pull the latest changes from the main repository if you think your fork is behind:
37 | ```
38 | git pull upstream master
39 | ```
40 |
41 | ### 6. Create a new branch and switch to it for your issue fix or feature using:
42 |
43 | ```
44 | git switch -c branch-name-here
45 | ```
46 |
47 | ### 7. Make the appropriate changes for the issue you are trying to address or the feature that you want to add
48 |
49 |
50 |
51 | ### 8. Add the changes to the staging and commit them to the branch you are working on
52 |
53 |
54 |
55 | ### 9. Push the changes to the remote repository using:
56 |
57 | ```
58 | git push origin branch-name-here
59 | ```
60 |
61 | ### 10. Submit a **pull request** to the upstream repository
62 |
63 |
64 |
65 | ### 11. Title the **pull request** with a short description of the changes made
66 |
67 |
68 |
69 | ### 12. Wait for the pull request to be reviewed by a maintainer
70 |
71 |
72 |
73 |
74 |
75 | ### 13. Celebrate your success after your pull request is merged!
76 |
77 | ##
78 |
79 |
80 |
81 | ---
82 |
83 | ## Resources
84 |
85 | - [How to Contribute to Open Source](https://opensource.guide/how-to-contribute/)
86 | - [Using Pull Requests](https://help.github.com/articles/about-pull-requests/)
87 | - [GitHub Help](https://help.github.com)
88 |
89 |
90 |
91 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 |
A calculator app built with JavaScript, HTML and CSS
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 | # A calculator app built with JavaScript, HTML and CSS.
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 | ### 🕹 Live Project:
27 | - https://emmycalculatorapp.netlify.app
28 |
29 | ## Who can contribute
30 | Anyone interested in contributing to open source project can contribute to this, It is a beginner friendly web application built with HTML, CSS, and JavaScript
31 |
32 | This project is made open source to give an opportunity to newbies in web development to contribute to open source project
33 |
34 | Checkout CONTRIBUTING.md for more info on how to contribute to this project
35 |
36 |
37 | ## How to get started with Open Source
38 | Here's a quick rundown on how to get started with open source, first of all, let's know some basic terminologies:
39 | - Git: is a versioning system that lets you store your code and code history on your local computer preventing losses and allowing sharing of that code
40 | - Github: is a server that lets you store the history in a database
41 | - Open Source: A project is said to be open-sourced if you can see the code on GitHub
42 | - Fork: This is a copy that you make of a project on GitHub, it gets added to your repositories
43 | - Repository: A project on GitHub is called a repository
44 | - Pull Request: This is a fix for an issue proposed to be done in a project, this consists of you editing a file in the project.
45 | - Issue: An issue is a change that should be done in a project, can be a bug, a new feature, or a suggestion for a project
46 | - Branch: A branch is a new workspace derived from the default workspace(main or master), it allows you to work on something without affecting the original code
47 |
48 | Now you know some basic terms, let's get into how to get started with some resources to let you understand open source better:
49 | - [Crash Course to Git and Github](https://www.youtube.com/watch?v=apGV9Kg7ics) - Video
50 | - [A complete Guide to Open Source](https://www.youtube.com/watch?v=yzeVMecydCE) - Video
51 | - [Guide to Open Source](https://www.freecodecamp.org/news/how-to-contribute-to-open-source-projects-beginners-guide/) - Article
52 |
53 |
54 |
55 |
56 |
57 |
58 |
59 | [](https://emmycalculatorapp.netlify.app)
60 |
61 |
62 | ## How to contribute:
63 |
64 | - Drop a :star: on the GitHub repository (optional)
65 |
66 | - Before Contribute Please read [CONTRIBUTING.md](https://github.com/Emilance/Javascript-Calculator-App/blob/master/CONTRIBUTING.md) and [CODE_OF_CONDUCT.md](https://github.com/Emilance/Javascript-Calculator-App/blob/master/CODE_OF_CONDUCT.md)
67 |
68 | - Create an issue of the project or a feature you would like to add to the project and get the task assigned for yourself. (Issue can be any bug fixes or any feature you want to add to this project).
69 |
70 | - Fork the repo to your GitHub.
71 |
72 | - Clone the Repo by going to your local Git Client in a particular local folder in your local machine by using this command with your forked repository link in place of the below-given link:
73 | `git clone https://github.com/your-github-username/Javascript-Calculator-App.git`
74 | - Create a branch using the below command.
75 | `git branch `
76 | - Checkout to your branch.
77 | `git checkout `
78 | - Add your code to your local machine folder.
79 | `git add . `
80 | - Commit your changes.
81 | `git commit -m""`
82 | - Push your changes.
83 | `git push --set-upstream origin `
84 |
85 | - Make a pull request! (compare your branch with the owner's main branch)
86 |
87 | ## Contributors :
88 |
89 |