mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
refactor: change testimonial rotation to random selection
This commit is contained in:
parent
8bf168da47
commit
41c3b59755
1 changed files with 4 additions and 7 deletions
|
@ -700,14 +700,11 @@ aider --model gpt-4o --api-key openai=your-key-goes-here</pre>
|
||||||
document.addEventListener('DOMContentLoaded', function() {
|
document.addEventListener('DOMContentLoaded', function() {
|
||||||
initializeTestimonials();
|
initializeTestimonials();
|
||||||
|
|
||||||
let currentIndex = 0;
|
// Rotate one testimonial at a time, randomly selecting which one to change
|
||||||
|
|
||||||
// Rotate one testimonial at a time
|
|
||||||
setInterval(function() {
|
setInterval(function() {
|
||||||
updateSingleTestimonial(currentIndex);
|
// Randomly select which testimonial to update
|
||||||
|
const randomIndex = Math.floor(Math.random() * displayCount);
|
||||||
// Move to the next index
|
updateSingleTestimonial(randomIndex);
|
||||||
currentIndex = (currentIndex + 1) % displayCount;
|
|
||||||
}, 3000);
|
}, 3000);
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue