Server : Apache System : Linux ls31.server.ly 3.10.0-962.3.2.lve1.5.68.el7.x86_64 #1 SMP Wed Apr 6 11:12:23 UTC 2022 x86_64 User : medchoco ( 2906) PHP Version : 8.3.16 Disable Function : mail Directory : /home/medchoco/www/wp-content/plugins/yith-woocommerce-compare/plugin-fw/assets/js/ |
Upload File : |
(function ($) { $(document).on('click', '.notice-dismiss', function () { var t = $(this), promo_wrapper = t.parent('div.yith-notice-is-dismissible'), promo_id = promo_wrapper.attr('id'); if (typeof promo_id != 'undefined') { var cname = 'hide_' + promo_id, cvalue = 'yes', expiry = promo_wrapper.data('expiry'), expiry_date = new Date(expiry); expiry_date.setUTCHours( 23 ); expiry_date.setUTCMinutes( 59 ); expiry_date.setUTCSeconds( 59 ); document.cookie = cname + "=" + cvalue + ";" + 'expires=' + expiry_date.toUTCString() + ";path=/"; } }); })(jQuery);