We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.

double function button

Home Forums Puzzles double function button

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #54793
    cralex75
    Customer

    hi, i have a hard problem that i can’t solve.
    I have created a keypad that should have a double use depending on the primary function selected.
    The function that controls multiple materials in the list overrides the second function.
    i would like to solve without duplicating ul buttons.
    Can anyone help me?

    Attachments:
    You must be logged in to view attached files.
    #54799
    kdv
    Participant

    Why do you use timers to register when clicked listeners? In your logic, once started, they do it every second and will never stop.

    Try this

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #54801
    cralex75
    Customer

    Thanks for the reply.
    i changed as you suggested, the problem persists.
    the problem is that both functions have the same link “c1.005 and c1.006” the “_models” function also surpasses that of “_fondo”

    Attachments:
    You must be logged in to view attached files.
    #54803
    kdv
    Participant

    Can you give your files?

    the problem is that both functions have the same link “c1.005 and c1.006”

    It’s not a problem. It should work with no problems…

    https://v3d.net/a3r

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

    #54805
    cralex75
    Customer

    thanks, i made another try, but when i add more material the commands overlap.
    the only solution I have left is to duplicate the buttons and give them different names.
    using the hide and show commands.
    thanks for your patience.

    #54806
    kdv
    Participant

    Well, if you’ve duplicated the buttons, you don’t need to register listeners for them every time you click _models or _fondo. just move them out, leave only hide/show puzzles.

    Puzzles and JS. Fast and expensive.

    If you don’t see the meaning in something it primarily means that you just don’t see it but not the absence of meaning at all.

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.