|
|
@@ -1,6 +1,6 @@
|
|
|
<?php if (!defined('HTMLY')) die('HTMLy'); ?>
|
|
|
<!DOCTYPE html>
|
|
|
-<html lang="<?php echo blog_language();?>" class="__variable_space scroll-smooth light" id="html-id">
|
|
|
+<html lang="<?php echo blog_language();?>" class="__variable_space scroll-smooth dark">
|
|
|
<head>
|
|
|
<?php echo head_contents();?>
|
|
|
<?php echo $metatags;?>
|
|
|
@@ -11,16 +11,6 @@
|
|
|
<body class="bg-white pl-[calc(100vw-100%)] text-black antialiased dark:bg-gray-950 dark:text-white">
|
|
|
<?php if (facebook()) { echo facebook(); } ?>
|
|
|
<?php if (login()) { toolbar(); } ?>
|
|
|
-<script>
|
|
|
- var html = document.getElementById("html-id");
|
|
|
- if (localStorage.getItem("tw-theme") === "dark") {
|
|
|
- html.classList.remove('light');
|
|
|
- html.classList.add('dark');
|
|
|
- } else if (localStorage.getItem("tw-theme") === "light") {
|
|
|
- html.classList.remove('dark');
|
|
|
- html.classList.add('light');
|
|
|
- }
|
|
|
-</script>
|
|
|
<section class="mx-auto max-w-3xl px-4 sm:px-6 xl:max-w-5xl xl:px-0">
|
|
|
<div class="flex h-screen flex-col justify-between font-sans">
|
|
|
<header class="flex items-center justify-between py-10">
|
|
|
@@ -41,17 +31,6 @@
|
|
|
<path stroke-linecap="round" stroke-linejoin="round" d="M21 21l-5.197-5.197m0 0A7.5 7.5 0 105.196 5.196a7.5 7.5 0 0010.607 10.607z"></path>
|
|
|
</svg>
|
|
|
</button>
|
|
|
- <div class="mr-5">
|
|
|
- <div class="relative inline-block text-left">
|
|
|
- <div>
|
|
|
- <button id="theme-toggle" type="button" aria-label="Theme Mode" aria-haspopup="menu" aria-expanded="false">
|
|
|
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="h-6 w-6 text-gray-900 dark:text-gray-100">
|
|
|
- <path d="M17.293 13.293A8 8 0 016.707 2.707a8.001 8.001 0 1010.586 10.586z"></path>
|
|
|
- </svg>
|
|
|
- </button>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
- </div>
|
|
|
<button aria-label="Toggle Menu" class="sm:hidden menu-open" id="menu-toggle">
|
|
|
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" class="h-8 w-8 text-gray-900 dark:text-gray-100">
|
|
|
<path fill-rule="evenodd" d="M3 5a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 10a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1zM3 15a1 1 0 011-1h12a1 1 0 110 2H4a1 1 0 01-1-1z" clip-rule="evenodd"></path>
|
|
|
@@ -140,21 +119,6 @@
|
|
|
}
|
|
|
};
|
|
|
</script>
|
|
|
- <script>
|
|
|
- var html = document.getElementById("html-id");
|
|
|
- document.getElementById("theme-toggle").addEventListener("click", () => {
|
|
|
- if (html.className.includes("dark")) {
|
|
|
- html.classList.remove('dark');
|
|
|
- html.classList.add('light');
|
|
|
- localStorage.setItem("tw-theme", 'light');
|
|
|
- } else {
|
|
|
- html.classList.remove('light');
|
|
|
- html.classList.add('dark');
|
|
|
- localStorage.setItem("tw-theme", 'dark');
|
|
|
- }
|
|
|
- })
|
|
|
-
|
|
|
- </script>
|
|
|
<script src="<?php echo theme_path();?>js/functions.js"></script>
|
|
|
<?php if (analytics()): ?><?php echo analytics() ?><?php endif; ?>
|
|
|
</body>
|