Compare commits
2 Commits
7b978cac43
...
649b8a0da4
| Author | SHA1 | Date | |
|---|---|---|---|
| 649b8a0da4 | |||
| 407c995d9f |
@@ -30,7 +30,11 @@
|
||||
-->
|
||||
<title>{{ title }}</title>
|
||||
|
||||
<script>document.documentElement.className = 'js-enabled';</script>
|
||||
<style>
|
||||
.js-enabled .static-content {
|
||||
display: none;
|
||||
}
|
||||
html {
|
||||
overflow-y: scroll;
|
||||
}
|
||||
@@ -41,7 +45,20 @@
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<script>
|
||||
(function() {
|
||||
try {
|
||||
var theme = localStorage.getItem('theme');
|
||||
if (theme === 'dark') {
|
||||
document.body.style.backgroundColor = '#1a1a1a';
|
||||
} else if (theme === 'black' || theme === 'red') {
|
||||
document.body.style.backgroundColor = '#000';
|
||||
}
|
||||
} catch (e) {}
|
||||
})();
|
||||
</script>
|
||||
<div id="root">
|
||||
<div class="static-content">
|
||||
<div class="container menu">
|
||||
<p>
|
||||
<a href="/">QotNews</a>
|
||||
@@ -134,6 +151,7 @@
|
||||
</div>
|
||||
{% endif %}
|
||||
</div>
|
||||
</div>
|
||||
<!--
|
||||
This HTML file is a template.
|
||||
If you open it directly in the browser, you will see an empty page.
|
||||
|
||||
Reference in New Issue
Block a user