aboutsummaryrefslogtreecommitdiff
path: root/static/main.html
diff options
context:
space:
mode:
authorKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-08-18 00:26:02 -0300
committerKushBlazingJudah <59340248+KushBlazingJudah@users.noreply.github.com>2021-08-18 00:26:02 -0300
commit9e782ba01620997becc3118433e3d1961a88b2c3 (patch)
tree14219adaa719d6c6fb913dd9a2cf73ba3a09df71 /static/main.html
parent17e54854794dacac8409cd10ffb77005d74b8dbe (diff)
rudimentary theme switching
Diffstat (limited to 'static/main.html')
-rw-r--r--static/main.html13
1 files changed, 11 insertions, 2 deletions
diff --git a/static/main.html b/static/main.html
index 3fa1b66..9a88afc 100644
--- a/static/main.html
+++ b/static/main.html
@@ -8,8 +8,10 @@
<meta property="og:locale" content="en_US" />
<meta property="og:type" content="website" />
<link rel="icon" type="image/png" href="/static/favicon.png">
- <link rel="stylesheet" type="text/css" href="/static/css/style.css" title="default">
- <link rel="alternate stylesheet" type="text/css" href="/static/css/gruvbox.css" title="gruvbox">
+ <link rel="stylesheet" type="text/css" href="/static/css/themes/default.css" title="default">
+ {{ range .Themes }}
+ <link rel="alternate stylesheet" type="text/css" href="/static/css/themes/{{.}}.css" title="{{.}}">
+ {{ end }}
{{ template "header" . }}
</head>
<body {{ if not .Board.Restricted }}class="nsfw"{{ end }} onload="applyTheme()">
@@ -38,6 +40,13 @@
{{ template "content" . }}
{{ template "bottom" . }}
+
+ <select onchange="setTheme(this.options[this.selectedIndex].value)">
+ {{ range .Themes }}
+ <option value="{{.}}">{{.}}</option>
+ {{ end }}
+ </select>
+
<div align="center" style="width: 500px; margin:0 auto; margin-top: 50px;">
<a href="/">[Home]</a><a href="/static/rules.html">[Rules]</a><a href="/static/faq.html">[FAQ]</a>
<p>All trademarks and copyrights on this page are owned by their respective parties.</p>