How to use Bootstrap Dark Mode in C# 2025 #programming #developer #csharp #bootstraptutorial

3 days ago

document.getElementById('btn-switch').addEventListener('click', () => {
if (document.documentElement.getAttribute('data-bs-theme') == 'dark'){
document.documentElement.setAttribute('data-bs-theme' , 'light')
}
else
{
document.documentElement.setAttribute('data-bs-theme', 'dark')
}

Loading comments...