MagicMirror Forum
    • Recent
    • Tags
    • Unsolved
    • Solved
    • MagicMirror² Repository
    • Documentation
    • 3rd-Party-Modules
    • Donate
    • Discord
    • Register
    • Login
    1. Home
    2. shre28491193
    3. Posts
    A New Chapter for MagicMirror: The Community Takes the Lead
    Read the statement by Michael Teeuw here.
    S
    Offline
    • Profile
    • Following 1
    • Followers 0
    • Topics 1
    • Posts 13
    • Groups 0

    Posts

    Recent Best Controversial
    • RE: Unable to click a toggle button

      Thank you everyone for helping.

      posted in Troubleshooting
      S
      shre28491193
    • RE: Unable to click a toggle button

      Atlast it did work. I moved it to a different position and it worked.

      posted in Troubleshooting
      S
      shre28491193
    • RE: Unable to click a toggle button

      I set it to 999 and still the same issue.

      No worries , thanks for helping.

      posted in Troubleshooting
      S
      shre28491193
    • RE: Unable to click a toggle button

      @KirAsh4 I did give that a try, still no luck. From my understanding z-index is only valid when you are trying to put your element over all other siblings. I am running that button by just itself.

      posted in Troubleshooting
      S
      shre28491193
    • RE: Unable to click a toggle button

      @strawberry-3-141 It is strange that it works for you. I wonder what i am doing different.

      I am able to see the button on my screen but it does not do anything when clicked on it nor changes the cursor to a pointer.

      posted in Troubleshooting
      S
      shre28491193
    • RE: Unable to click a toggle button

      I removed all unused elements to see if that was hiding anchor tag. Still no luck.

      posted in Troubleshooting
      S
      shre28491193
    • RE: Unable to click a toggle button

      @strawberry-3.141 Button shows up on the mirror , but still click event doesnt work

      posted in Troubleshooting
      S
      shre28491193
    • RE: Unable to click a toggle button

      Button shows up on the mirror , but still click event doesnt work.

      posted in Troubleshooting
      S
      shre28491193
    • RE: Unable to click a toggle button

      @strawberry-3-141 No errors in the console. :-(

      posted in Troubleshooting
      S
      shre28491193
    • RE: Unable to click a toggle button

      Got it. Will try this in a few minutes. I am in a meeting at work now.

      posted in Troubleshooting
      S
      shre28491193
    • RE: Unable to click a toggle button

      @strawberry-3-141 - Sorry, I am not sure how to access the electron console. Could you direct me to it ?

      posted in Troubleshooting
      S
      shre28491193
    • RE: Unable to click a toggle button

      @strawberry-3-141

      Thanks for your suggestion. I replaced the snippet for click part of it.

      regenToggle.addEventListener(‘click’, () => { - I presume this was meant to be ‘regenToggle.addEventListener(“click” , function() {’

      also I changed the width of the HVAC CSS element. I still see the same issue - yet to debug more.

      posted in Troubleshooting
      S
      shre28491193
    • Unable to click a toggle button

      I am building a toggle button , two dials and a slider. I am taking help from the simple music player module and it has been super helpful. I have no experience with JS , node or CSS. I am learning as I am doing it.

      With just as a proof of concept , I started with the toggle button. I prototyped this button on JSFiddle and it works as it should.Now trying to integrate this into Magic Mirror, Toggle button shows on the mirror but, it fails to do two important things.

      • cursor change from default to pointer when hovering over the button

      • Detecting a click event and changing states

      Here is the link to my github repository.

      Also this is how it is supposed to work - fiddle - link

      Please take a look at it and let me know if am doing anything blatantly wrong. I would be happy to learn. Thanks in advance.

      Also , let me know if I should post code for review any differently.

      posted in Troubleshooting
      S
      shre28491193
    • 1 / 1