{"version":3,"sources":["disclaimerBanner.js"],"names":["$","fn","setFooterBottomMargin","footer","bannerHeight","this","css","window","load","resize","resizeBounce","debounce"],"mappings":"AACAA,EAAEC,GAAGC,sBAAwB,SAASC,GAClC,IAAIC,EAAeJ,EAAEK,MAAMC,IAAK,UAChCN,EAAEG,GAAQG,IAAI,gBAAiBF,IAInCJ,EAAEO,QAAQC,KAAK,WACXR,EAAE,sBAAsBE,sBAAsB,+BAIlDF,EAAGO,QAASE,OAAO,WACfC,iBAGJ,IAAIA,aAAeC,SAAS,WACrBX,EAAE,sBAAsBM,IAAI,WAAcN,EAAE,6BAA6BM,IAAI,kBAChFN,EAAE,sBAAsBE,sBAAsB,8BAC/C","file":"disclaimerBanner.min.js","sourcesContent":["// This adds margin bottom to the footer if the \"risk warning\" banner is set to fixed on the homepage.\r\n$.fn.setFooterBottomMargin = function(footer) {\r\n var bannerHeight = $(this).css( \"height\" );\r\n $(footer).css('margin-bottom', bannerHeight);\r\n}\r\n\r\n// Gets the height of the banner and applies that amount of space to the bottom margin of the footer\r\n$(window).load(function () {\r\n $('.disclaimer-sticky').setFooterBottomMargin('.sticky-disclaimer-margin');\r\n})\r\n\r\n// Whenever the window is resized we check the size of the banner again\r\n$( window ).resize(function() {\r\n resizeBounce();\r\n});\r\n\r\nvar resizeBounce = debounce(function() {\r\n if($('.disclaimer-sticky').css(\"height\") != ($('.sticky-disclaimer-margin').css(\"margin-bottom\")))\r\n $('.disclaimer-sticky').setFooterBottomMargin('.sticky-disclaimer-margin');\r\n}, 200);\r\n//# sourceMappingURL=disclaimerBanner.js.map\r\n"]}