TG
Size: a a a
TG
TG

MK
element.tick = function() {
var isTimeOver = window.localStorage.getItem('isTimeOver');
var timeLeft = isTimeOver ? -1 : Math.floor((date - new Date()) / 1000),
unit;
if (timeLeft < 0) {
clearInterval(element.data('interval'));
window.localStorage.setItem('isTimeOver', true);
const contact = '<a href="/contact/">';
element.find('.etTitle').html(`К
сожалению
для
этого
товара
акция
закончилась, обращайтесь
к ${contact}
менеджеру
!`
).
nextAll(':not(style)').remove()
}
}IK
TG
IK

TG
IK
IK
TG
IK
TG
IK
IK
DS
TG
IK
TG
B
element.tick = function() {
var isTimeOver = window.localStorage.getItem('isTimeOver');
var timeLeft = isTimeOver ? -1 : Math.floor((date - new Date()) / 1000),
unit;
if (timeLeft < 0) {
clearInterval(element.data('interval'));
window.localStorage.setItem('isTimeOver', true);
const contact = '<a href="/contact/">';
element.find('.etTitle').html(`К
сожалению
для
этого
товара
акция
закончилась, обращайтесь
к ${contact}
менеджеру
!`
).
nextAll(':not(style)').remove()
}
}