2 $('.funding .close').click(function(e) {
\r
4 var fundNode = $(e.target).parent();
\r
5 fundNode.slideUp(function(){fundingHandle.show()});
6 if(Modernizr.localstorage)
7 localStorage['hide-offer-id'] = fundNode.attr('data-offer-id');
\r
11 var fundingTopHeader = $('.funding-top-header');
12 var fundingHandle = $('.funding-handle');
13 if(fundingTopHeader) {
14 var currentOfferId = fundingTopHeader.attr('data-offer-id');
16 if(Modernizr.localstorage) {
17 toggle = localStorage['hide-offer-id'] !== currentOfferId;
19 fundingTopHeader.toggle(toggle);
20 fundingHandle.toggle(!toggle);
22 fundingHandle.click(function(e) {
23 fundingTopHeader.slideDown();
25 localStorage.removeItem('hide-offer-id');