Timed js modal not popping up, but a similar one does?
Permalink
I am having an issue with js running inside an HTML module. I looked online for documentation on js but everything points to jquery, and I assume I can rely on browser support, which should be around for a while.
Anyway, I have basically scraped a modal window script and jammed it in a single HTML module. It works fine.
>
And then I found a different approach, and decided to try this out as well.
>
The page it is failing to load for me is here:
>
Both seem to work in codepen across platforms and browsers, but the second script refuses to run when embedded as an HTML object into a page.
If I open a browser inspector and manually remove the display: none; in three places, it shows, so I can infer the data is getting parsed, and its not a caching issue. (attached is a screencap of the intended effect.)
thank you in advance,
Tim
Anyway, I have basically scraped a modal window script and jammed it in a single HTML module. It works fine.
>
https://codepen.io/timnetworks/pen/dEBWXo
And then I found a different approach, and decided to try this out as well.
>
https://codepen.io/timnetworks/pen/NZbYZJ
The page it is failing to load for me is here:
>
https://test.changeforkids.org/index.php?cID=219
Both seem to work in codepen across platforms and browsers, but the second script refuses to run when embedded as an HTML object into a page.
If I open a browser inspector and manually remove the display: none; in three places, it shows, so I can infer the data is getting parsed, and its not a caching issue. (attached is a screencap of the intended effect.)
thank you in advance,
Tim