Code not working

Hi I have got all my code set up for a disappearing menu it works on my preview but not when I publish it.
Here is the code

1 Like