nextEl: '#twister_next',
prevEl: '#twister_prev'
<div class="arrow" id="twister_prev"><img src="./img/arrow.png" alt=""></div>
<div class="arrow" id="twister_next"><img src="./img/arrow.png" alt=""></div>
twister_prev_1
twister_next_1
twister_prev_2
twister_next_2
function addData(obj) {
data.push(obj)
updateDOM()
data = [];
}
const arrayNumbers = [-5, 0, 5, 10, 15, 20, 25, 30, 35]
const n = 23.45
const buf = arrayNumbers.map(number => { return Math.abs(n - number); });
const res = arrayNumbers[buf.indexOf(Math.min(...buf))];
console.log(res);
let buf = '';
for(let i = 0; i < params.projects.length; i++) {
// Здесь this.archiveProjectCart почему то не выводит
buf += this.archiveProjectCart(params.projects[i])
}
let html = `
<div class="archive-works__wrap">
<p class="archive-works__year">${params.year}</p>
<div class="archive-works__items">${buf}</div>
</div>
`
return html
.partys .slick-prev:before {
content: '<-';
}
.partys .slick-next:before {
content: '->';
}
$('#myModal').on('show.bs.modal', function (e) {
$(e.relatedTarget).closest('table');
})
var x = document.getElementById('block');
function mov () {
x.style.display = 'block';
}
document.getElementById('none').onclick = function () {
x.style.display = 'none';
setTimeout (mov, 3000);
}
woman.husband = man;
man.wife = woman;
function marry(man, woman) {
woman.husband = man;
man.wife = woman;
return {
father: man,
mother: woman
}
}