Skip to content

A follow up of The Odin Project course on the creation of a calculator software.

License

Notifications You must be signed in to change notification settings

keithowino/top-calculator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

T-O-P CALCULATOR

This is a follow up of The Odin Project course, target attempt to create a calculator Web Page.

Take Backs...

  1. I learned more about event listeners for instance how to make it listen to specific targeted node, check this snippet.

    e.target.innerHTML = 'AC';
  2. Learned more about the onclick="" event listener.

  3. I don't get why querySelector() does not work in an instance like this where the .value syntax is used but instead it works with getElementById().

    const element = document.querySelector('.node');
    const action = () => {
        element.value = 'placeholder';
    };

Love this work? Buy me a coffee...

Technologies Used

css3 html5 javascript bootstrap sass

Development

Want to contribute? Great!

To fix a bug or enhance an existing module, follow these steps:

  1. Fork the repository

    https://github.com/keithowino/top-calculator/fork
    
  2. Create a new branch

    git checkout -b improve-feature
    
  3. Make the appropriate changes in the files

  4. Add changes to reflect the changes made

  5. Commit your changes

    git commit -am 'Improve 1, 2... feature'
    
  6. Push to the branch

    git push origin improve-feature
    
  7. Create a Pull Request

Setup/ Installation Requirements

  • To clone this repository to your machine do this in the root directory of where you would like to save the project. Before using this be sure which url link you should use, is it for HTTP or SHH.

    git clone https://github.com/freestyletear/top-calculator
    
  • Open the repository.

    cd top-calculator
    
  • Navigate to index.html and open it on your favorite browser Your browser must be JavaScript enabled for this to work

Installation Medium

  1. Steady Network.
  2. Weblink
  3. Github account.

Bug / Feature Request

  • If you find a bug (the website couldn't handle the query and / or gave undesired results), kindly open an issue here...

    https://github.com/keithowino/top-calculator/fork
    

Future Update

  • The Odin Project suggests that using eval() as a means to evaluate a string of code is a bad idea, thus let's learn more about it and do the necessary changes.
  • I will add the functionality that allows a user to enter specific keyboard arguments i.e. Enter, Numbers, Backspace and more. event.preventDefault is a link from TOP for further assistance.
  • I will add the functionality that disables the possibility of adding a decimal if there's already one.

About

A follow up of The Odin Project course on the creation of a calculator software.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published