/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
$(document).ready(function ()
{
var navbar_height = $('header').height();
$('.sec_main__scroll').click(function ()
{
$('html, body').animate({
scrollTop: $(".sec_examples").offset().top - navbar_height
}, 1500);
});
});
$(document).ready(function ()
{
$('#slider_products').slick({
dots: true,
infinite: true,
speed: 600,
slidesToShow: 1,
adaptiveHeight: true,
prevArrow: '',
nextArrow: '',
vertical: true,
customPaging: function (slider, i)
{
var numeration = (i + 1);
if (numeration < 10)
{
numeration = '0' + numeration;
}
return '';
},
responsive: [
{
breakpoint: 1024,
settings: {
vertical: false
}
},
{
breakpoint: 799,
settings: {
dots: false,
arrows: false,
vertical: false
}
}
]
});
});
$(document).ready(function ()
{
$("a.product__item-link").fancybox({
width: 800,
autoSize: false,
href: 'product.php',
type: 'ajax',
ajax: {
type: "POST",
data: {
temp: "tada"
}
},
afterLoad: function (instance, current)
{
$('a[data-scroll]').click(function (e)
{
$.fancybox.close();
e.preventDefault();
var scroll_to_id = $(this).attr('data-scroll');
scroll_to_div(scroll_to_id);
});
setTimeout(
function ()
{
$('#product-fancy-slide').slick({
dots: true,
infinite: true,
speed: 600,
slidesToShow: 1,
adaptiveHeight: true,
prevArrow: '',
nextArrow: ''
});
$("#product-fancy-slide").animate({
opacity: 1,
},300);
},300);
}
});
$("a.regulamin").fancybox({
width: 800,
autoSize: false,
href: 'regulamin.php',
type: 'ajax',
ajax: {
type: "POST",
data: {
temp: "tada"
}
}
});
});