dboard - dark/light theme 구현 v2 / v3
V2 <script> function get_current_theme() { let current_theme = localStorage.getItem('theme');
V2 <script> function get_current_theme() { let current_theme = localStorage.getItem('theme');
아무래도 기본적으로 다크모드 정도는 있어줘야 할것 같아서 한시간 후다다닥 구현했다.1. 테마를 어디에 저장해둘까 고민DB 에 저장되는 사용자 정보에 아예 넣을 수도 있겠지만 좀 과한것 같고... 그냥 세션에서만 유지되도록 했다. 사실 쿠키에