<div id="alert-container">
<div class="alert alert-success shadow-md mb-4">
<svg xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24" fill="none" class="w-6 h-6 stroke-success-content"><path d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path></svg><span>Configuration saved successfully!</span> </div>
<script>
// Clear any existing timeout
if (window.alertTimeout) {
clearTimeout(window.alertTimeout);
clearTimeout(window.alertFadeTimeout);
}
// Remove any existing alert immediately
var existingAlert = document.getElementById('alert-container');
if (existingAlert && existingAlert !== document.currentScript.parentElement) {
existingAlert.remove();
}
// Set new timeout for this alert
window.alertTimeout = setTimeout(function() {
var alertEl = document.getElementById('alert-container');
if (alertEl) {
alertEl.style.transition = 'opacity 0.5s';
alertEl.style.opacity = '0';
window.alertFadeTimeout = setTimeout(function() {
if (alertEl) {
alertEl.remove();
}
}, 500);
}
}, 3000);
</script></div>