Theme4Press Forums alora Is “add code to space before the </body> tag” broken? Re: Is “add code to space before the </body> tag” broken?

Roman
Keymaster
Post count: 2601
#9848 |

weird…for me it works…also should define the script as text/javascript:

Code:
<script type=”text/javascript” data-cfasync=”false”>
$(window).scroll(function() {
$(‘#wrapper’).each(function(){
var imagePos = $(this).offset().top;

var topOfWindow = $(window).scrollTop();
if (imagePos < topOfWindow+400) {
$(this).addClass(“divFadeIn”);
}
});
});
</script>