Skip to content

Commit

Permalink
Theme/Admin: Clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
Nightprince committed Apr 23, 2024
1 parent 58a120a commit 17f13b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion application/themes/admin/login.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@
moon:$("#moon"),sun:$("#sun"),Light:function(){
document.documentElement.classList.remove("dark"),document.documentElement.classList.add("light"),window.localStorage.setItem("mode","light"),Theme.moon.removeClass("-translate-y-1/2").addClass("translate-y-[-150%]").removeClass("opacity-100").addClass("opacity-0"),Theme.sun.removeClass("translate-y-[-150%]").addClass("-translate-y-1/2").removeClass("opacity-0"),theme="light"},Dark:function(){
document.documentElement.classList.remove("light"),document.documentElement.classList.add("dark"),window.localStorage.setItem("mode","dark"),Theme.moon.addClass("-translate-y-1/2").removeClass("translate-y-[-150%]").addClass("opacity-100").removeClass("opacity-0"),Theme.sun.addClass("translate-y-[-150%]").removeClass("-translate-y-1/2").addClass("opacity-0"),theme="dark"}};"dark"==theme?Theme.Dark():Theme.Light();
</script> </div>
</script>
</div>
<div>
<h2 class="font-heading text-3xl font-medium mt-6 text-muted-800 dark:text-white">
Welcome back {$username}.
Expand Down

0 comments on commit 17f13b4

Please sign in to comment.