<button type="submit" id="save" onclick="func1()">Save</button>
const func1 = () => {
const name = document.getElementById("name").value;
const lastname = document.getElementById("lastname").value;
const link = document.getElementById("link").value;
console.log(`Name: ${name}\nLast Name: ${lastname}\n Link: ${link}`)
}
$('.center').slick({
centerMode: true,
centerPadding: '60px',
slidesToShow: 3,
responsive: [
{
breakpoint: 768,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 3
}
},
{
breakpoint: 480,
settings: {
arrows: false,
centerMode: true,
centerPadding: '40px',
slidesToShow: 1
}
}
]
});