-
Closed
-
I’m at Theme Options’ “add code to space before the </body> tag”.
I’m trying to add a piece of javascript:
<script 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>However after I refresh the page (cleared cache, Cloudflare in development mode, etc.), the javascript doesn’t get added.
I tested with some other html script: e.g. <div>test</div> and again nothing got added.
Is it broken?
Chris
The topic Is “add code to space before the </body> tag” broken? is closed to new replies