Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Modified Basic Calculator and Multiplication Table Calculator #577

Merged
merged 5 commits into from
Feb 15, 2024
Merged

Modified Basic Calculator and Multiplication Table Calculator #577

merged 5 commits into from
Feb 15, 2024

Conversation

Yuvraj960
Copy link
Contributor

Fixes Issue🛠️

Closes #498

Description👨‍💻

Basic Calculator:
-> Refreshed with all new design
-> Added Dark and Light Modes

Multiplication Table Calculator:
-> Some changes in the basic design of calculator
-> All new way to display table without cropping the content -> Responsiveness added

Type of change📄

  • Bug fix (In both calculators)
  • New feature (Dark light mode in Basic Calculator)

How this has been tested✅

Checklist✅

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added demonstration in the form of image file
  • I am an Open Source Contributor

Screenshots/GIF📷

image
image

Basic Calculator:
-> Refreshed with all new design
-> Added Dark and Light Modes

Multiplication Table Calculator:
-> Some changes in the basic design of calculator
-> All new way to display table without cropping the content
-> Responsiveness added
Copy link

netlify bot commented Feb 11, 2024

Deploy Preview for calcdiverse ready!

Name Link
🔨 Latest commit dfdf589
🔍 Latest deploy log https://app.netlify.com/sites/calcdiverse/deploys/65c9f1a7542ff800075c054c
😎 Deploy Preview https://deploy-preview-577--calcdiverse.netlify.app/calculators/basic-calculator
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @Yuvraj960, Welcome to the project CalcDiverse! 🎊
Thanks for your contribution! Your effort makes this project better. Keep it up! 🙌
Please wait for the PR to be reviewed. Happy Coding!! ✨

@Rakesh9100
Copy link
Owner

Add the backspace button to clear a single digit, remove comma button in Basic Calculator.

Place the code in index.html file only instead of main.html file @Yuvraj960

@Rakesh9100 Rakesh9100 added the question 🤔 Further information is requested label Feb 11, 2024
@Yuvraj960
Copy link
Contributor Author

Yuvraj960 commented Feb 11, 2024

@Rakesh9100 removing the comma isn't possible as some functions like power(^) don't work without a comma.
For the file name thing, I will do it

@Rakesh9100
Copy link
Owner

Ohkk, but we need a backspace button as well @Yuvraj960

More functions added to basic calculator
-> Exponential function
-> logarithmic function (natural log)
-> Added CE button for erasing single letter from the display
Added screenshots of new UI of Calculator in the README file.
@Yuvraj960
Copy link
Contributor Author

@Rakesh9100, please review the code again, necessary changes done in the calculator.

@Rakesh9100
Copy link
Owner

Pls check the Log function as it is not giving the correct result.

And previously, calculator was working with the keyboard numpad or buttons as well but I suppose you have deleted script.js file, so fix it!!

@Yuvraj960
Copy link
Contributor Author

Yuvraj960 commented Feb 11, 2024

@Rakesh9100, I didn't understand why you are not getting accurate results in log.
I have compared and verified atleast 20-30 times and I am having accurate results each time.
Here's live demonstration of what my calculator gives vs google results:

Recording.2024-02-11.212125.mp4

image

And secondly I have removed the functionality of keypress events record because in browsers like firefox, every keypress on page is toggling the "find" feature. Here you can see the example:
image

But if it the bug from my browser settings, please let me know.
And if you want the keypress event record anyway please let me know that also.

@Rakesh9100
Copy link
Owner

You have implemented ln(e) and has written log, which means log base 10 but calculating log base e. So prefer to change the calculation to base 10!!

And about the keypress events, I have checked the previous calculator on chrome and Edge browsers where it is working fine as expected. So prefer keeping this functionality @Yuvraj960

Added the functionality of listening to the keypress events and appending values to display of the calculator
@Yuvraj960
Copy link
Contributor Author

@Rakesh9100, added keypress event also, Please check for any other bug if there. Otherwise it is ready to be merged!

@Rakesh9100
Copy link
Owner

Pls fix the log one as mentioned in above comment to base 10 instead of base e @Yuvraj960

Changed the base of Log function from 'e' (natural log) to 10.
@Yuvraj960
Copy link
Contributor Author

Done @Rakesh9100

@Yuvraj960
Copy link
Contributor Author

Should we proceed merging this PR? @Rakesh9100

@Rakesh9100
Copy link
Owner

Looks nice, Merged!! 🥳🎉 @Yuvraj960

@Rakesh9100 Rakesh9100 merged commit 41f8673 into Rakesh9100:main Feb 15, 2024
4 checks passed
@Rakesh9100 Rakesh9100 added Completed 🥳 PR successfully merged and issue resolved on completion SWOC S4 SWOC Open Source Program Medium IWOC2k24 (30 Points) ✨, JWOC2k24 (3 Points) 🎉, SWOC2k24 Level-2 (30 Points) 💫 and removed question 🤔 Further information is requested labels Feb 15, 2024
@Yuvraj960 Yuvraj960 deleted the FixesInCalc branch February 15, 2024 09:26
@Rakesh9100 Rakesh9100 changed the title Modified Basic and Multiplication Table Calculator Modified Basic Calculator and Multiplication Table Calculator Feb 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Completed 🥳 PR successfully merged and issue resolved on completion Medium IWOC2k24 (30 Points) ✨, JWOC2k24 (3 Points) 🎉, SWOC2k24 Level-2 (30 Points) 💫 SWOC S4 SWOC Open Source Program
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Style] Enhance Basic Calculator and Multiplication Table Calculator
2 participants