TelegramIndex-Fork/app/templates/footer.html

19 lines
339 B
HTML
Raw Normal View History

2021-05-22 16:00:08 +02:00
</div>
2021-06-22 17:07:07 +02:00
<script>
function toggleTheme() {
var Doc = document.documentElement;
var Class = Array.from(Doc.classList);
if (Class.includes('light')) {
Doc.className = 'dark';
localStorage.theme = 'dark';
} else
if (Class.includes('dark')) {
Doc.className = 'light';
localStorage.theme = 'light';
};
};
</script>
2021-05-22 16:00:08 +02:00
</body>
</html>