Your IP : 216.73.216.219


Current Path : /home/pteabiscqq/www/plugins/system/spcookieconsent/assets/js/
Upload File :
Current File : /home/pteabiscqq/www/plugins/system/spcookieconsent/assets/js/script.js

/**
 * @package SP Cookie Consent
 * @author JoomShaper https://www.joomshaper.com
 * @copyright Copyright (c) 2010 - 2018 JoomShaper
 * @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPLv2 or Later
*/

jQuery(function ($) {
    //  Cookie consent
    $('.sp-cookie-allow').on('click', function(event) {
        event.preventDefault();
        
        var date = new Date();
        date.setTime(date.getTime() + (30 * 24 * 60 * 60 * 1000));
        var expires = "; expires=" + date.toGMTString();               
        document.cookie = "spcookie_status=ok" + expires + "; path=/";

        $(this).closest('#sp-cookie-consent').fadeOut();
    });
});