hello,
I'm trying to put this code on my front page of my website, and yet it doesn't work.
any suggestions?
$w.onReady(function () { < script src = "https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js" > < /script> < script > $(document).ready(function () { $(document).on("scroll", function () { var pixels = $(document).scrollTop() if (pixels > 200) { $("body").addClass("scrolled") } else { $("body").removeClass("scrolled") } }) }) </script> });