diff --git a/cat-tears.svg b/cat-tears.svg new file mode 100644 index 0000000..73ae8d2 --- /dev/null +++ b/cat-tears.svg @@ -0,0 +1,106 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cat-troll.svg b/cat-troll.svg new file mode 100644 index 0000000..ebb496c --- /dev/null +++ b/cat-troll.svg @@ -0,0 +1,76 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/cat.svg b/cat.svg index ebb496c..63a7746 100644 --- a/cat.svg +++ b/cat.svg @@ -1,76 +1,59 @@ - + - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/index.html b/index.html index d64d690..318a679 100644 --- a/index.html +++ b/index.html @@ -7,7 +7,7 @@ Chatβeta* - + @@ -155,6 +155,7 @@ const bouton_fermer = document.getElementById('bouton_fermer'); const bouton_annuler = document.getElementById('bouton_annuler'); const bouton_ok = document.getElementById('bouton_ok'); const footer = document.querySelector('footer'); +const favicon = document.getElementById('favicon'); const langue = document.documentElement.lang; let nb_reponses = 0; @@ -226,6 +227,7 @@ formulaire.addEventListener('submit', async (e) => { setTimeout(() => { const paragraphe = document.createElement('p'); paragraphe.innerHTML = (nb_reponses % 5 ? '😸' : '😹') + ' Voulez-vous que je réponde à une autre question ?'; + favicon.href = (nb_reponses % 5 ? 'cat-troll.svg' : 'cat-tears.svg'); conversation.appendChild(paragraphe); document.scrollingElement.scrollBy({top: window.visualViewport.height, behavior: 'smooth'});