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

50Projects-HTML-CSS-JavaScript : Battery indicator #31

Merged
merged 6 commits into from
Jul 29, 2024

Conversation

tajulafreen
Copy link
Owner

In this Branch, I made the following changes :

  • Implemented dynamic battery level display using the Battery Status API.
    • Fetched battery level and updated the progress bar width accordingly.
    • Displayed the battery percentage as text.
  • Added a dark mode toggle functionality.
    • Implemented a button to switch between light and dark modes.
    • Used CSS class toggling to change the theme.
  • Ensured functionality is initialized upon DOM content load for better user experience.
  • Improved code readability and maintainability with ES6 syntax and proper event handling.

@tajulafreen tajulafreen merged commit 89dde49 into main Jul 29, 2024
5 checks passed
@tajulafreen tajulafreen deleted the Battery_Indicator branch July 29, 2024 16:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant