mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 02:05:00 +00:00
feat: Speed up testimonials rotation and add script tags
This commit is contained in:
parent
761a297903
commit
3c7783585e
1 changed files with 4 additions and 1 deletions
|
@ -242,6 +242,7 @@ from scripts.badges import get_testimonials_js
|
|||
text = get_testimonials_js()
|
||||
cog.out(text)
|
||||
]]]-->
|
||||
<script>
|
||||
const testimonials = [
|
||||
{
|
||||
text: "The best free open source AI coding assistant.",
|
||||
|
@ -384,7 +385,9 @@ const testimonials = [
|
|||
link: "https://x.com/rsweetland/status/1904963807237259586"
|
||||
}
|
||||
];
|
||||
</script>
|
||||
<!--[[[end]]]-->
|
||||
<script>
|
||||
|
||||
// Function to shuffle array
|
||||
function shuffleArray(array) {
|
||||
|
@ -515,7 +518,7 @@ const testimonials = [
|
|||
|
||||
// Store this index as the last flipped
|
||||
lastFlippedIndex = randomIndex;
|
||||
}, 3000);
|
||||
}, 1500);
|
||||
});
|
||||
</script>
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue