The language menu is collapsed on load, but I’m not sure how to make it expand once the website loads and the preloader hides.
Here is my code:
import { session } from “wix-storage” ;
let status = session . getItem ( “status” );
$w . onReady (() => {
if ( status ){
$w ( “#columnStrip2” ). collapse ();
} else {
waitForLoading ();
session . setItem ( “status” , “revisit” );
}
})
export function button6_onClick () {
$w ( ‘#columnStrip2’ ). show ();
waitForLoading ();
}
function waitForLoading () {
setTimeout (() => {
$w ( ‘#columnStrip2’ ). hide ( ‘FadeOut’ );
}, 1500 );
}
#columnStrip2 is the preloader and the ID for the language menu is #languageSelector8