Hiding a div outside of Hype

(Todd) #1

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 id="divToHide"> something here</div>

(Jonathan Deutsch) #2

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

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

(Todd) #3

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

(Todd) #4

For some reason it worked this time???

(Hans-Gerd Claßen) #5

may be of interest too :

(Jonathan Deutsch) #6

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:.