ascript"> jQuery(document).ready(function($){ if(!catapultReadCookie("catAccCookies")){ // If the cookie has not been set then show the bar $("html").addClass("has-cookie-bar"); $("html").addClass("cookie-bar-top-bar"); $("html").addClass("cookie-bar-bar"); // Wait for the animation on the html to end before recalculating the required top margin $("html").on('webkitTransitionEnd otransitionend oTransitionEnd msTransitionEnd transitionend', function(e) { // code to execute after transition ends var barHeight = $('#catapult-cookie-bar').outerHeight(); $("html").css("margin-top",barHeight); $("body.admin-bar").css("margin-top",barHeight-32); // Push the body down if the admin bar is active }); } });