Here's a simple calculator built using HTML, CSS and obviously, JavaScript.
This calculator also has dark mode which looks really good. And here's...
For further actions, you may consider blocking this person and/or reporting abuse
Great web-app with great UI! I surely learned something about dark-mode implementation.
Although, may I suggest you to add the
readonly
attribute to the text input for result, since you're using the notoriouseval()
function? I'm aware that it's a 'simple' calculator but I'm just suggesting.Great project, though!😄
Yeah sure. I was more focussed on the UI so I didn't put that little extra effort to look into that. Thanks for the suggestion tho. Glad you learned something!😁
Here you go so you don't have to use eval.
Great. Thanks for the explanation!😄
Totally forgot to mention! Looks really great the design is super nice.
Thank you!😇
It would be cool if you could add something with local storage so it saves the dark mode/light mode toggle the user has, so it doesn't automatically change light mode when the screen is reloaded! I came across this blog, thought it could be helpful 😊 joshwcomeau.com/gatsby/dark-mode/
Congrats! It's a good design and project!
Thank you!😊
Year 2020: If there is not dark mode, it doesn't count xdd
Yess it doesn't count!😂
The UI looks astonishing 😍
And as per the code, I have the same suggestion as @Abhijit.
Thanks a lot for sharing. #Kudos
Thank you!😄 Yeah I've considered that suggestion.
Impressive Ui/design I loved it. Especially the transition between the light and the dark theme.
Thank you. I'm glad you liked it!😄
good job mohammad ...
Thank you!😇
I like that this is just plain Javascript. Good job :)
Thank you!😄
This looks amazing. Great work.
I made a calculator a while ago but its design was not good and had some flaws. Will try to create another one like yours which supports dark mode.
Thank you!😄 Yeah sure. Feel free to check how I implemented things and don't forget to add your own design to it. Good luck.
All I have to do is change the GitHub link at the end.😏
Just kidding.😂😂 Will just look at the implementation and make my own.
Hahah sure. You can do that too xD.😜
Thumbs up for the design. Did you notice that evaluating 0.2 multiplied by 6 or 0.2 multiplied by 3 is giving a funny answer, or this just happens to be one of the disadvantages of the eval function.