Hiding a div outside of Hype

Is it possible to hide a dive outside of Hype?

<div id="thype_container" style="margin:auto;position:relative;width:600px;height:400px;overflow:hidden;">
    <script type="text/javascript" charset="utf-8" src="hyperesources/hype_generated_script.js?92623"> </script>
</div>

<div id="divToHide"> something here</div>

Hype doesn’t know about it, but you can just use vanilla javascript:

document.getElementById("divToHide").style.display = "none";

I actually tried that, but will try it again... Thanks!

For some reason it worked this time???

2 Likes

may be of interest too :

It’d be hard to know why it didn’t work before without seeing that code; could have just been a typo :upside_down_face:.