We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
While change page, site theme reset to light
The text was updated successfully, but these errors were encountered:
Do you have your settings set to block cookies?
Sorry, something went wrong.
cookies allow for "pyga.me". "document.cookie" is empty
Chrome, Win 10
document.addEventListener('DOMContentLoaded', () => { const search_buttons = document.querySelectorAll('.searchbar-button'); const search_submit = document.querySelector('.searchbar-submit'); // When the icon is clicked, submit the search form search_buttons.forEach((button) => { button.addEventListener('click', () => { search_submit.click(); }); }); const theme_icons = document.querySelectorAll('.theme-icon'); theme_icons.forEach((icon) => { icon.addEventListener('click', () => { const theme = icon.getAttribute('data-theme'); htmlElement.classList.add('light-theme', 'dark-theme'); htmlElement.classList.remove(theme); localStorage.setItem('theme', htmlElement.classList[0]); }); }); });
htmlElement.classList[0] in my case, it turned out to be "...-translated"
No branches or pull requests
While change page, site theme reset to light
The text was updated successfully, but these errors were encountered: