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.

ID question

Home Forums General Questions ID question

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6208
    rezman
    Customer

    Is it possible to target a class rather than an ID with the “event” puzzle?

    #6214

    Not yet, need to think about it ;-)
    Still I like to see how HTML puzzles are getting popular. :)

    Chief 3D Verger | LinkedIn | Twitter

    #6999
    vlado
    Customer

    Hey Yuri,
    it would be good if we can pass HTML object ( ref to object ) instead of ID.

    for example:

    
    const app = new v3d.App($('#myElement'), ctxSettings, preloader);
    

    www.hivecpq.com

    #7004

    Hi vlado,
    Yes, this is a good idea to be able to pass the element itself, especially if it doesn’t have ID at all. I think, we’ll implement this in the near future.

    PS: if you use jQuery it will probably be like this:

    
    const app = new v3d.App($('#myElement')[0], ctxSettings, preloader);
    

    – that is using the native HTMLElement instead of a jQuery object.

    Co-founder and lead developer at Soft8Soft.

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