$w . onReady ( **function** () {
**let** btn2hasBeenClicked = local . getItem ( "btn2Clicked" )
**if** ( btn2hasBeenClicked ) {
$w ( "#button2" ). hide
} **else** {
$w ( "#button2" ). show ()
}
});
export function button2_click ( event ) {
local . setItem ( "btn2Clicked" , "clicked" )
$w ( "#button2" ). enable
setTimeout ( **function** () {
$w ( "#button2" ). show ( "fade" );
}, 10000 );
}
```
I tried this on a test page, how would I implement onReady function, and storage module into my first posted code.
Is the code snippet above properly structured?