Hello, I am Steve. Just to let you know first, I am completely a layperson in code.
As the title says, will a wix update or a browser update affect some simple code in corvid?
I have found the function I want in youtube which is ‘expand and collapse onclick.’ ( https://www.youtube.com/watch?v=HmTkf5af0NE&t=808s )
The above code is little different to the one in Corvid example ‘collapse.’ ( https://www.wix.com/corvid/example/collapse-elements )
To me, both codes do the same thing but the code from youtube looks simpler than the one in Corvid example.
But since it is from an outside source, I would like to make sure if it is concrete to use it.
I have to create a lot of pages with this function and I would be devastated if it goes south afterwards.
The code I am using is:
export function globe1_click()
{ if ($w(’ #topicBox1 ‘).collapsed)
{ $w(’ #topicBox1 ‘).expand(); }
else $w(’ #topicBox1 ').collapse(); }
Thank you so much for your time.