feat: redirect to newly created certification preparation page for day 5

This commit is contained in:
sebvtl728 2026-06-22 10:17:06 +02:00
parent 6936b37cb0
commit 06b8b87246
5 changed files with 1715 additions and 129 deletions

View File

@ -1303,39 +1303,10 @@
window.location.href = 'mercredi4_mise_en_situation_bilan_parcours.html';
return;
}
const prompts = {
5: "Prépare-moi le cours complet du Mercredi 5 - Évaluation finale et certification"
};
if (typeof sendPrompt === 'function') {
sendPrompt(prompts[num]);
} else {
console.log("Envoi du prompt : " + prompts[num]);
// Fallback option in case it's opened standalone
const toast = document.createElement('div');
toast.style.position = 'fixed';
toast.style.bottom = '24px';
toast.style.left = '50%';
toast.style.transform = 'translateX(-50%)';
toast.style.background = 'var(--ink)';
toast.style.color = 'var(--white)';
toast.style.padding = '12px 24px';
toast.style.borderRadius = '30px';
toast.style.fontFamily = 'var(--syne)';
toast.style.fontWeight = '700';
toast.style.fontSize = '13.5px';
toast.style.boxShadow = 'var(--shadow-lg)';
toast.style.zIndex = '1000';
toast.style.opacity = '0';
toast.style.transition = 'all 0.3s ease';
toast.innerText = "🚀 Prompt envoyé : \"" + prompts[num] + "\"";
document.body.appendChild(toast);
setTimeout(() => toast.style.opacity = '1', 10);
setTimeout(() => {
toast.style.opacity = '0';
setTimeout(() => toast.remove(), 300);
}, 3000);
if (num === 5) {
window.location.href = 'mercredi5_preparation_certification_IA.html';
return;
}
}

View File

@ -1555,38 +1555,9 @@
return;
}
const prompts = {
5: "Prépare-moi le cours complet du Mercredi 5 - Évaluation finale et certification"
};
if (typeof sendPrompt === 'function') {
sendPrompt(prompts[num]);
} else {
console.log("Envoi du prompt : " + prompts[num]);
// Fallback option in case it's opened standalone
const toast = document.createElement('div');
toast.style.position = 'fixed';
toast.style.bottom = '24px';
toast.style.left = '50%';
toast.style.transform = 'translateX(-50%)';
toast.style.background = 'var(--ink)';
toast.style.color = 'var(--white)';
toast.style.padding = '12px 24px';
toast.style.borderRadius = '30px';
toast.style.fontFamily = 'var(--syne)';
toast.style.fontWeight = '700';
toast.style.fontSize = '13.5px';
toast.style.boxShadow = 'var(--shadow-lg)';
toast.style.zIndex = '1000';
toast.style.opacity = '0';
toast.style.transition = 'all 0.3s ease';
toast.innerText = "🚀 Prompt envoyé : \"" + prompts[num] + "\"";
document.body.appendChild(toast);
setTimeout(() => toast.style.opacity = '1', 10);
setTimeout(() => {
toast.style.opacity = '0';
setTimeout(() => toast.remove(), 300);
}, 3000);
if (num === 5) {
window.location.href = 'mercredi5_preparation_certification_IA.html';
return;
}
}

View File

@ -1617,38 +1617,9 @@
return;
}
const prompts = {
5: "Prépare-moi le cours complet du Mercredi 5 - Évaluation finale et certification"
};
if (typeof sendPrompt === 'function') {
sendPrompt(prompts[num]);
} else {
console.log("Envoi du prompt : " + prompts[num]);
// Fallback option in case it's opened standalone
const toast = document.createElement('div');
toast.style.position = 'fixed';
toast.style.bottom = '24px';
toast.style.left = '50%';
toast.style.transform = 'translateX(-50%)';
toast.style.background = 'var(--ink)';
toast.style.color = 'var(--white)';
toast.style.padding = '12px 24px';
toast.style.borderRadius = '30px';
toast.style.fontFamily = 'var(--syne)';
toast.style.fontWeight = '700';
toast.style.fontSize = '13.5px';
toast.style.boxShadow = 'var(--shadow-lg)';
toast.style.zIndex = '1000';
toast.style.opacity = '0';
toast.style.transition = 'all 0.3s ease';
toast.innerText = "🚀 Prompt envoyé : \"" + prompts[num] + "\"";
document.body.appendChild(toast);
setTimeout(() => toast.style.opacity = '1', 10);
setTimeout(() => {
toast.style.opacity = '0';
setTimeout(() => toast.remove(), 300);
}, 3000);
if (num === 5) {
window.location.href = 'mercredi5_preparation_certification_IA.html';
return;
}
}

View File

@ -1656,38 +1656,9 @@
return;
}
const prompts = {
5: "Prépare-moi le cours complet du Mercredi 5 - Préparation et entraînement certification IA"
};
if (typeof sendPrompt === 'function') {
sendPrompt(prompts[num]);
} else {
console.log("Envoi du prompt : " + prompts[num]);
// Fallback option in case it's opened standalone
const toast = document.createElement('div');
toast.style.position = 'fixed';
toast.style.bottom = '24px';
toast.style.left = '50%';
toast.style.transform = 'translateX(-50%)';
toast.style.background = 'var(--ink)';
toast.style.color = 'var(--white)';
toast.style.padding = '12px 24px';
toast.style.borderRadius = '30px';
toast.style.fontFamily = 'var(--syne)';
toast.style.fontWeight = '700';
toast.style.fontSize = '13.5px';
toast.style.boxShadow = 'var(--shadow-lg)';
toast.style.zIndex = '1000';
toast.style.opacity = '0';
toast.style.transition = 'all 0.3s ease';
toast.innerText = "🚀 Prompt envoyé : \"" + prompts[num] + "\"";
document.body.appendChild(toast);
setTimeout(() => toast.style.opacity = '1', 10);
setTimeout(() => {
toast.style.opacity = '0';
setTimeout(() => toast.remove(), 300);
}, 3000);
if (num === 5) {
window.location.href = 'mercredi5_preparation_certification_IA.html';
return;
}
}

File diff suppressed because it is too large Load Diff