increment () {
if ((this.value + 1) > max) {
return;
}
this.value += 1
}
$arr = '[{
"currentPos": 2,
"isSelected": false,
"text": 4
},
{
"currentPos": 1,
"isSelected": true,
"text": 3
},
{
"currentPos": 3,
"isSelected": true,
"text": 1
}
]';
$arr = json_decode($arr);
$result = true;
foreach ($arr as $val) {
if (!$val["isSelected"]) {
$result = false;
break;
}
}
$(document).ready(function(){
setTimeout(function () {
$('.slider').slick({
dots: true,
infinite: true,
speed: 400,
slidesToShow: 1,
autoplay: true,
autoplaySpeed: 6000,
arrows: false,
pauseOnFocus: false,
pauseOnHover: false,
dotsClass: 'slick-dots-custom',
});
}, 1000);
});
$('.f_look').click(function() {
$(this).parents('.card').find('.big_item').arcticmodal();
return false;
});