Hi, I am a bit new to coding and trying to figure it out. I have several multistate boxes with information to display when they are expanded. I want them to expand when clicked and at the same time, close an other ones that might be open.
The code worked perfectly until today. Now it works in preview but not on my published site. I’m sure I have some kind of error. Any help would be appreciated!
The url is: https://www.taikozentrum.de/ute-taiko
Here is my code:
//concept
$w ( ‘#concept’ ). onClick (() => {
$w ( ‘#concept’ ). changeState ( “expand1” );
$w ( ‘#nature’ ). changeState ( “collapse2” );
$w ( ‘#taiko’ ). changeState ( “collapse3” );
$w ( ‘#manti’ ). changeState ( “collapse4” );
})
$w ( '#conceptclose' ). onClick (() => {
$w ( '#concept' ). changeState ( "collapse1" );
})
// nature
$w ( '#nature' ). onClick (() => {
$w ( '#nature' ). changeState ( "expand2" );
$w ( '#concept' ). changeState ( "collapse1" );
$w ( '#taiko' ). changeState ( "collapse3" );
$w ( '#manti' ). changeState ( "collapse4" );
})
$w ( '#natureclose' ). onClick (() => {
$w ( '#nature' ). changeState ( "collapse2" );
})
// taiko
$w ( '#taiko' ). onClick (() => {
$w ( '#taiko' ). changeState ( "expand3" );
$w ( '#concept' ). changeState ( "collapse1" );
$w ( '#nature' ). changeState ( "collapse2" );
$w ( '#manti' ). changeState ( "collapse4" );
})
$w ( '#taikoclose' ). onClick (() => {
$w ( '#taiko' ). changeState ( "collapse3" );
})
// manti
$w ( '#manti' ). onClick (() => {
$w ( '#manti' ). changeState ( "expand4" );
$w ( '#concept' ). changeState ( "collapse1" );
$w ( '#taiko' ). changeState ( "collapse3" );
$w ( '#nature' ). changeState ( "collapse2" );
})
$w ( '#manticlose' ). onClick (() => {
$w ( '#manti' ). changeState ( "collapse4" );
})