Adding javascript to a html block
PermalinkThe way the graphic works on a static HTML site is that it calls in the resources using this code:
<div id="lamelladevelopment_hype_container" style="position:relative;overflow:hidden;width:1024px;height:500px;"> <script type="text/javascript" src="Lamella%20Development_Resources/lamelladevelopment_hype_generated_script.js?3792"></script></div>
The resources folder is positioned in the main directory in this instance.
When I moved it to the C5 platform I thought changing the code to this would work:
<div id="lamelladevelopment_hype_container" style="position:relative;overflow:hidden;width:1024px;height:500px;"> <script type="text/javascript" src="<?=$this->getThemePath()?>Lamella%20Development_Resources/lamelladevelopment_hype_generated_script.js?3792"></script></div>
The resources folder is now positioned in the theme directory.
I'm at a loss as to what to try next, any help is appreciated.