Main Description
2994656
2994656
ΔΩΡΕΑΝ ΣΥΜΒΟΥΛΕΥΤΙΚΗ Αυξήστε Πελάτες & Πωλήσεις με Digital Marketing & AI Μάθετε πώς να αξιοποιήσετε τα πιο σύγχρονα εργαλεία Internet Marketing και Τεχνητής Νοημοσύνης — για να ενισχύσετε την επιχείρησή σας. Δωρεάν Συμβουλευτική →
Vertical Image Area
2994760
2994760
Main Description
3010020
3010020
' + t.text + '
'; h += '' + t.name + '
';
if (t.role) h += '' + t.role + '
';
return h;
}
var longest = testimonials.reduce(function (a, b) { return b.text.length > a.text.length ? b : a; }, testimonials[0]);
var html = '';
if (config.heading) html += '
';
root.innerHTML = html;
var cards = [].slice.call(document.querySelectorAll('#cdim-tst-stage .cdim-tst-card'));
var dots = [], idx = 0, timer = null, animating = false;
if (config.showDots) {
var dw = document.getElementById('cdim-tst-dots');
testimonials.forEach(function (t, i) {
var b = document.createElement('button');
b.className = 'cdim-tst-dot' + (i === 0 ? ' cdim-tst-dot-active' : '');
b.onclick = function () { goTo(i); restart(); };
dw.appendChild(b); dots.push(b);
});
}
function goTo(n) {
if (animating) return;
var target = (n + testimonials.length) % testimonials.length;
if (target === idx) return;
animating = true;
cards[idx].classList.remove('cdim-active');
setTimeout(function () {
cards[target].classList.add('cdim-active');
idx = target;
dots.forEach(function (d, i) { d.className = 'cdim-tst-dot' + (i === idx ? ' cdim-tst-dot-active' : ''); });
animating = false;
}, 520);
}
function next() { goTo(idx + 1); }
function prev_fn() { goTo(idx - 1); }
function start() { if (testimonials.length > 1) timer = setInterval(next, config.autoplaySeconds * 1000); }
function stop() { if (timer) { clearInterval(timer); timer = null; } }
function restart() { stop(); start(); }
if (config.showArrows && testimonials.length > 1) {
document.getElementById('cdim-tst-next').onclick = function () { next(); restart(); };
document.getElementById('cdim-tst-prev').onclick = function () { prev_fn(); restart(); };
}
document.getElementById('cdim-tst-stage').addEventListener('mouseenter', stop);
document.getElementById('cdim-tst-stage').addEventListener('mouseleave', start);
start();
})();
// ]]>