From 02aab93c084d63d31de61b51344018fc8c25da18 Mon Sep 17 00:00:00 2001 From: Matthew Grove Date: Fri, 23 Nov 2018 13:24:19 +0000 Subject: [PATCH] Animate bottom of page rather than non-existant element --- assets/global.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/global.js b/assets/global.js index c5d88e9..a795f7e 100644 --- a/assets/global.js +++ b/assets/global.js @@ -50,12 +50,12 @@ $(document).ready(function(){ $("#cookies").load("/page-inserts/cookie-notice.html", function(){ $("#cookies").show(); $("#cookies").animate({bottom: "0px"}, 1000); - $(".source-code-link").animate({bottom: "100px"}, 1000); + $("footer").animate({marginBottom: "115px"}, 1000); $("#close-cookies").click(function(){ event.preventDefault(); $("#cookies").animate({bottom: "-100px"}, 1000); setTimeout(function(){$("#cookies").hide()},1000); - $(".source-code-link").animate({bottom: "15px"}, 1000); + $("footer").animate({marginBottom: "15px"}, 1000); Cookies.set("reading-school-bbc-young-reporter-cookies-accepted", "true", {expires: 30}); }); });