$( function() { $("#OpenMenuSideBar, #headerMenuCloseButton").click(function(event) { event.preventDefault(); $("#nav").toggleClass("openedSideMenu"); }); }); function displaySpinner() { $(".darkClass").show(); $("#subandlogBlock").hide(); $("#imgSpinner").show(); } function round10(x) { return Math.ceil(x/10)*10; } function getRandomArbitrary(min, max) { return Math.random() * (max - min) + min; } function removeSomething(id) { $("#"+id).remove(); calculateBlockValue(); } function closeBgdBanner(){ $("#bgd-banner").hide(); var expiryDate = new Date(); expiryDate.setMonth(expiryDate.getMonth() + 1) document.cookie = "bgdhide=true; expires=Thu, "+ expiryDate.toGMTString(); }