Likes
Likes

<script>
$( document ).ready(function() {
let stDate = "12/27/2022"; //месяц-число-год
//Коэффициент
let kff = 5;

let  timeZone = +3; 
let  day = new Date();
let  utc = day.getTime() + (day.getTimezoneOffset() * 60000);


let  DateOffset = new Date(utc + (3600000*timeZone));
let  cDate = DateOffset.getDate();
let  hour = DateOffset.getHours();
let  numday = DateOffset.getDay();

let startDate = new Date(stDate); 
milliseconds = startDate.getTime(); 

let days = Math.floor((utc-startDate)/86400000);


//Получаем заданные значения чисел
$('.likes_num .tn-atom').each(function(){
   
   let num = +(($(this).text()).replace(/[^+\d]/g, ''));
   
   //Выводим коррекцию в текст
   $(this).text( num + days*kff );
    
});


});
</script>
Made on
Tilda