This repository has been archived on 2024-10-29. You can view files and clone it, but cannot push or open issues or pull requests.
FunctionProject/scripts/pagesJS/home-page.js

16 lines
452 B
JavaScript
Raw Normal View History

import { texteFonctionChange } from '../variables/homeFunctionExample.js';
$(function () {
/* Changement du texte accueil (exemples de fonction) */
let index=-1;
function change() {
if(index === texteFonctionChange.length-1) {
index = 0;
}
else {
index++;
}
document.getElementById("change").innerHTML = texteFonctionChange[index];
}
setInterval(change, 10000);
});