first commit
This commit is contained in:
commit
dc9fbfea37
5 changed files with 154 additions and 0 deletions
16
pokemonAPI/js/loader.js
Normal file
16
pokemonAPI/js/loader.js
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
/*var toogle = true;
|
||||
function showLoader() {
|
||||
const loaderDiv = document.querySelector('#loader');
|
||||
if(toogle) {
|
||||
loaderDiv.textContent = "...Chargement"
|
||||
}
|
||||
else {
|
||||
loaderDiv.textContent = "Chargement...";
|
||||
}
|
||||
toogle = !toogle;
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', () => {
|
||||
showLoader();
|
||||
setInterval(showLoader, 1000);
|
||||
});*/
|
||||
Loading…
Add table
Add a link
Reference in a new issue