var $ = jQuery.noConflict(); $(document).ready(function(){ $('.smartbanner-close').click(function(){ // Class for the close button $('.smartbanner').slideUp(500); // Hide the CTA div $.cookie('cookie', 'appinstaller', { domain: '', path: '' }); // Set Cookie( 'name', 'value' { expires: null, path '/'}) }); $('.smartbanner-button').click(function(){ // Class for the close button $('.smartbanner').slideUp(500); // Hide the CTA div $.cookie('cookie', 'appinstaller', { domain: '', path: '' }); // Set Cookie( 'name', 'value' { expires: null, path '/'}) }); if (typeof $.cookie('cookie') === 'undefined'){ // Checks to see if the cookie exists $('.smartbanner').removeClass('cookie'); // IF No Cookie } else { $('.smartbanner').addClass('cookie') // IF Cookie } }); $(document).ready(function(){ $('.smartbanner-close').click(function(){ // Class for the close button $('.smartbanner-ios').slideUp(500); // Hide the CTA div $.cookie('cookie', 'appinstaller', { domain: '', path: '' }); // Set Cookie( 'name', 'value' { expires: null, path '/'}) }); if (typeof $.cookie('cookie') === 'undefined'){ // Checks to see if the cookie exists $('.smartbanner-ios').removeClass('cookie'); // IF No Cookie } else { $('.smartbanner-ios').addClass('cookie') // IF Cookie } });