fix bug
parent
0ecad3a423
commit
2a96afa4ab
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en" class="dark">
|
||||
<html lang="zh-CN" class="light">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
|
@ -143,7 +143,7 @@
|
|||
<path id="themeIconPath" stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M20.354 15.354A9 9 0 018.646 3.646 9.003 9.003 0 0012 21a9.003 9.003 0 008.354-5.646z"></path>
|
||||
</svg>
|
||||
</button>
|
||||
<a href="https://github.com/journey-ad/gemini-watermark-remover" target="_blank" class="hover:text-primary transition-colors">GitHub</a>
|
||||
<a href="http://git.unissense.tech/mula/gemini_watermark_cleaner" target="_blank" class="hover:text-primary transition-colors">GitHub</a>
|
||||
<button id="langSwitch" class="px-3 py-1 border border-border rounded hover:bg-surface text-primary transition-colors">EN</button>
|
||||
</nav>
|
||||
</header>
|
||||
|
|
@ -260,7 +260,7 @@
|
|||
</div>
|
||||
<div class="flex gap-6">
|
||||
<a href="terms.html" class="hover:text-primary transition-colors" data-i18n="footer.terms">Terms</a>
|
||||
<a href="https://github.com/journey-ad/gemini-watermark-remover" target="_blank" class="hover:text-primary transition-colors">GitHub</a>
|
||||
<a href="http://git.unissense.tech/mula/gemini_watermark_cleaner" target="_blank" class="hover:text-primary transition-colors">GitHub</a>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
||||
|
|
|
|||
|
|
@ -90,10 +90,10 @@ function setupThemeToggle() {
|
|||
|
||||
// Load from storage
|
||||
const savedTheme = localStorage.getItem('theme');
|
||||
if (savedTheme === 'light') {
|
||||
html.classList.remove('dark');
|
||||
html.classList.add('light');
|
||||
iconPath.setAttribute('d', moonPath);
|
||||
if (savedTheme === 'dark') {
|
||||
html.classList.remove('light');
|
||||
html.classList.add('dark');
|
||||
iconPath.setAttribute('d', sunPath);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
const i18n = {
|
||||
locale: localStorage.getItem('locale') || (navigator.language.startsWith('zh') ? 'zh-CN' : 'en-US'),
|
||||
locale: localStorage.getItem('locale') || 'zh-CN',
|
||||
translations: {},
|
||||
|
||||
async init() {
|
||||
|
|
|
|||
Loading…
Reference in New Issue