| Server IP : 213.159.210.37 / Your IP : 216.73.216.164 Web Server : nginx/1.18.0 System : Linux palich.ru 5.10.0-43-amd64 #1 SMP Debian 5.10.251-5 (2026-05-15) x86_64 User : ( 600) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /var/www/custom-site/blinchiki.palich.ru/js/ |
Upload File : |
$(document).ready(function(){
/* COOKIE INFO */
const cookiesInfoNew = document.querySelector('[data-cookies]');
const cookiesInfoPopup = document.querySelector('[data-cookies-popup]');
if (cookiesInfoNew && cookiesInfoPopup) {
const cookiesBtnSelect = cookiesInfoNew.querySelector('[data-cookies-select-btn]');
cookiesBtnSelect.addEventListener('click', function() {
cookiesInfoPopup.classList.add('active');
})
}
$('.slick-slider').slick();
$('.slick-product-slider').slick({slidesToShow: 4,
responsive: [
{
breakpoint: 1100,
settings: {
slidesToShow: 3
}
},{
breakpoint: 850,
settings: {
slidesToShow: 2
}
},{
breakpoint: 601,
settings: {
slidesToShow: 4
}
}]
}); //4
/* responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 3
}
}]*/
$(".product-slider__dots span").click(function(){
let el = $(this)
el.parent().find("span").removeClass("active")
el.addClass("active")
let img = el.closest(".product-slider__item").find("img")
img.removeClass("active")
$(img[el.index()]).addClass("active").hide().fadeIn(300)
return false;
})
/* if ($(window).width() < 600)
$(".header .container").css("min-height", $(window).height())*/
$(".header .arrow").click(function(){
$('html, body').animate({ scrollTop: $(".video__title").offset().top-15}, 350)
})
$(".video .arrow").click(function(){
$('html, body').animate({ scrollTop: $(".slider__title:first").offset().top}, 350)
})
$('.js-city-button').click(function() {
$('#city_input').val($(this).html());
$('#city_form').submit();
});
if ($('#popup-town-choose').length)
{
$("#popup-town-choose_opener").fancybox({
modal:true,
});
$("#popup-town-choose_opener").click();
}
})
$(document).ready(function() {
$('.cookies-form_all').on("click", function() {
$('.cookies-form__input').each(function() {
$(this).prop("checked", "checked");
});
$('#cookies-form_submit').click();
});
});