mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-31 01:35:00 +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() {
|
||||
initializeTestimonials();
|
||||
|
||||
let currentIndex = 0;
|
||||
|
||||
// Rotate one testimonial at a time
|
||||
// Rotate one testimonial at a time, randomly selecting which one to change
|
||||
setInterval(function() {
|
||||
updateSingleTestimonial(currentIndex);
|
||||
|
||||
// Move to the next index
|
||||
currentIndex = (currentIndex + 1) % displayCount;
|
||||
// Randomly select which testimonial to update
|
||||
const randomIndex = Math.floor(Math.random() * displayCount);
|
||||
updateSingleTestimonial(randomIndex);
|
||||
}, 3000);
|
||||
});
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue