<a class="next" onclick="plusSlides(1)">❯</a>
timer=setTimeout(function() {
plusSlides(1);
}, 2000);
timer=setInterval(function() {
plusSlides(1);
}, 2000);
makeCounter()()
makeCounter()()
makeCounter()()
$('.main-header__search').attr('disabled', true);
$('.main-header__search').attr('disabled', false);
var simillarAds = [
{
'author': {
'avatar': generateAvatarUrl(1)
},
'offer': {
get address () {
return this.location.x + ', ' + this.location.y;
},
'location': {
'x': randomInteger(X_LOCATION_START, X_LOCATION_END),
'y': randomInteger(Y_LOCATION_START, Y_LOCATION_END)
}
}
}
];
const dict = {
key1: {
nestedKey: "1"
}
}
const str = "key1.nestedKey"
const value = str.split(".").reduce((acc, key) => {
return acc[key] ? acc[key] : null;
}, dict);
console.log(value)
{
options: {
scales: {
xAxes: [{
barPercentage: x,
categoryPercentage: y
}]
}
}
}