'; jQuery('body').append( content ); } else if ( ! navigator.userAgent.match(/iPhone/) && ! dd_banner_cookie ) { content = ''; jQuery('body').append( content ); var $hide = jQuery( document.getElementById( 'hide-dd-banner' ) ); $hide.on( 'click', function( event ) { event.preventDefault(); var $ddBanner = jQuery( document.getElementById( 'daily-deal-banner' ) ), date = new Date(); date.setDate(date.getDate() + 10); // add 10 days to today to expire the cookie. var value = "true; expires=" + date.toUTCString() + "; path=/"; document.cookie = "hide-dd-banner=" + value; $ddBanner.animate( {left:'-50px'} ); }); }
No comments:
Post a Comment