Javascript reflection.js only works in edit mode or after edit mode

Permalink
I have added the JavaScript reflection.js to my concrete5 install to get automatic reflections under images with the class="reflect"!

And it also is working once I am in edit mode or after I exit edit mode and have a url like index.php?cID=99.
But I does not work on my basic pretty url! (the one every visitor would see!!!!!)

I added this code to header.php

(code)<script type="text/javascript" src="js/reflection.js"></script>(/code)

and put the js file in the js folder inside concrete5.

I also tried turning pretty urls off!

any ideas? I guess/hope there is an easy fix!

billabong
 
Mnkras replied on at Permalink Best Answer Reply
Mnkras
the code tag use [ and ]

also, you are sticking this in your themes folder? if so you would use

<script type="text/javascript" src="<?=$this->getThemePath()?>/js/reflection.js"></script>
billabong replied on at Permalink Reply
billabong
Thanks so much! works perfect!
I put it in the themes folder and used your link!
ScottC replied on at Permalink Reply
ScottC
cool, this profile picture by any chance taken in Hanalei Bay Hawaii?
billabong replied on at Permalink Reply
billabong
I wish, just a nice lake close to the alps in bavaria/germany with cold water!