ajout du badge publié sur facebook (bootstrap) dans la page accueil blog

This commit is contained in:
ben
2025-12-11 12:02:29 +01:00
parent 9e80b99abe
commit 84d8f1c481
3 changed files with 60 additions and 7 deletions

View File

@@ -19,7 +19,7 @@ form.addEventListener('submit', function(e) {
const fichierImage = imgField.files[0];
const contenu = tinymce.get("articleContent").getContent();
const categorie = categoryField.value;
const published = publishedField.checked; // récupère la case cochée
const published = publishedField.checked; // récupère la case cochée
// Reset messages
errorEmpty.classList.add('d-none');
@@ -92,7 +92,7 @@ form.addEventListener('submit', function(e) {
// Redirection
setTimeout(() => {
window.location.href = "../html/liste_categorie_article.html";
window.location.href = "../html/accueil_blog.html";
}, 1000);
});