let num = '01230';
if ( num[0] === '0' && num[1] !== '.' ) {
num = num.replace( '0', '' );
}
console.log( num );
// 1230
<div class="list-item-with-circle card-other-resource__item">
<span class="list-item-with-circle__product">Lorem ipsum dolor sit amet, consectetur adipiscing elit</span>
<div class="list-item-with-circle__links-wrapper">
<a href="# " class="link link_sm link_normal">
Установка
</a>
<a href="# " class="link link_sm link_normal">
Активация
</a>
<a href="# " class="link link_sm link_normal">
Обновление
</a>
</div >
</div >
.list-item-with-circle__links-wrapper{
display:flex;
align-items:center;
flex-wrap:wrap;
}
.header {
background: #fff;
&::after {
content: "";
background: #000;
}
&:hover{
background: #000;
&::after{
background: #fff;
}
.header__box{
background: #fff;
}
}
&__box{
background: red;
}
}
now.getDate()
now.getDate() + 8 - day
соответственно, тоже убрать