Bug with a website's Site Code

If I enter any function on the website’s site code it makes the elements which are pinned & hidden by default on the page visible.

This has occurred on 2 different sites now