<script>
$(document).ready(function(){
//Кол-во рабочих дней
let workDay=7;
let date = new Date();
let attrDate = 0;
Month = date.getMonth()+1;
Year = date.getFullYear();
$('input[name="Date"]').attr('readonly','readonly');
$("form").on('DOMSubtreeModified', ".t-input-block_inited-date-picker", function() {
if($('.t_datepicker__today').length){
attrDate = $('.t_datepicker__today').attr('data-picker');
};
//Опрееляем диапазон рабочих дней
if(attrDate){
for (i=1; i<=workDay;i++){
let arr = attrDate.split('-');
let setAttrDate = new Date(arr[0],arr[1]-1,arr[2]);
setAttrDate.setDate(setAttrDate.getDate()+i);
let findDate = `${setAttrDate.getFullYear()}-${ Number(setAttrDate.getMonth())+1 }-${setAttrDate.getDate()}`
$('td[data-picker="'+findDate+'"]').addClass('workday');
};
};
});
});
</script>
<style>
td.t_datepicker__day-cell {
opacity: 0.2;
pointer-events:none;
}
td.t_datepicker__day-cell.workday {
opacity: 1;
background-color: #cdffc9;
pointer-events:auto;
}
.t_datepicker__current-month:active:before, .t_datepicker__next-month:active:before, .t_datepicker__previous-month:active:before, .t_datepicker__selected-day:before {
border-radius: 0;
background-color: rgb(0 0 0 / 50%)!important;
}
</style>
<style>
.js-store-grid-cont .t-store__card__textwrapper {
padding: 0;
position: absolute;
top: 0px;
left: 20px;
z-index: 10;
height: 100%;
display: flex;
flex-direction: column;
width: 100%;
}
.js-store-grid-cont .js-product.t-store__card>a {
position: relative;
z-index: 0;
}
.js-store-grid-cont .js-store-prod-descr.t-store__card__descr {
margin-top: -8px;
}
.js-store-grid-cont .js-store-prod-name.js-product-name.t-store__card__title {
margin-top: 80px;
}
.js-store-grid-cont .js-store-price-wrapper.t-store__card__price-wrapper {
margin-top: auto;
margin-bottom: 60px;
}
a.t-store__prod-popup__btn {
background-color: #000 !important;
color: #fff !important;
}
.js-store-grid-cont .t-store__card__price.t-store__card__price-item:before {
content: "от ";
display: inline-block;
transform: translateY(4px);
margin-right: 10px;
}
.js-store-grid-cont .t-store__card__btns-wrapper.js-store-buttons-wrapper {
margin: 0;
justify-content: flex-end;
padding-right: 25px;
margin-top: -100px;
}
.js-store-grid-cont a.js-store-prod-btn.t-store__card__btn {
font-size: 20px;
}
.js-store-grid-cont a.js-store-prod-btn.t-store__card__btn {
font-size: 20px;
background: #fff;
mix-blend-mode: screen;
}
.js-store-grid-cont .js-product.t-store__card{
position: relative;
}
.js-store-grid-cont .t-store__card__sku.t-descr {
display: block !important;
position: absolute;
bottom: 30px;
width: 100%;
}
.js-store-grid-cont span.js-store-prod-sku.js-product-sku {
font-size: 14px;
}
.js-store-grid-cont .t-store__card__sku {
font-size: 0;
}
@media screen and (max-width:1200px){
.js-store-grid-cont .t-store__card__btns-wrapper.js-store-buttons-wrapper {
justify-content: flex-start;
padding-left: 20px;
}
.js-store-grid-cont .js-store-price-wrapper.t-store__card__price-wrapper {
margin-bottom: 115px;
}
}
</style>