Git Product home page Git Product logo

Comments (6)

c00kie123 avatar c00kie123 commented on August 23, 2024

hey can give more info? What does it look like currently and what do you want it to look like?

from typing-test.

arpitghura avatar arpitghura commented on August 23, 2024

hey can give more info? What does it look like currently and what do you want it to look like?

Currently, the button look like
image

I want the button should be like below:

  1. For light mode
    image

  2. For Dark mode
    image

from typing-test.

c00kie123 avatar c00kie123 commented on August 23, 2024

I dont seem to find the button anywhere on the live website. Where it is?

from typing-test.

arpitghura avatar arpitghura commented on August 23, 2024

Hey @c00kie123 You can view the button of darkMode on all pages other than index.html

from typing-test.

chikkibum avatar chikkibum commented on August 23, 2024

@arpitghura hey i have solved this issue. Can you assign it to me. I'd like to make a pull request.

i added <i id="icon1" onlick="change('icon1')" onclick="toggleLightDarkMode()" class="bx bx-moon dark-btn" style="font-size: x-large;"></i> in practice.html.

practice

similarly, I added <i id="icon1" onlick="change('icon1')" onclick="toggleLightDarkMode()" class="bx bx-moon dark-btn" style="font-size: x-large;"></i> to about and profile page also.

Then i added js to change the icon from moon to sun using
function change (iconID){ if(document.getElementById(iconID).className=="bx bx-moon dark-btn"){ document.getElementById(iconID).className = "bx bx-sun dark-btn"; } else{ document.getElementById(iconID).className = "bx bx-moon dark-btn"; } }

icon

and called it whenever needed.

here is a video attached to show that its working:

VID_20230130_021354.mp4

from typing-test.

arpitghura avatar arpitghura commented on August 23, 2024

Hey @chikkibum Welcome to the community. You have done a good job. I will assigned the task to you. You can now create a PR.

from typing-test.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.