theme
This commit is contained in:
@@ -10,10 +10,24 @@
|
||||
<link rel="icon" type="image/png" href="/favicon@2x.png" size="128x128">
|
||||
<link rel="icon" type="image/png" href="/favicon@3x.png" size="192x192">
|
||||
</head>
|
||||
<body>
|
||||
<body class="dark">
|
||||
<h1>{title}</h1>
|
||||
<div class="main">
|
||||
<div class="text">{extra}{body}</div>
|
||||
<div class="theme">
|
||||
<select onchange="setTheme(event)">
|
||||
<option value="darker">Light-on-Black</option>
|
||||
<option value="dark" selected>Light-on-Dark</option>
|
||||
<option value="light">Dark-on-White</option>
|
||||
</select>
|
||||
</div>
|
||||
<div class="main">
|
||||
<div class="text">
|
||||
{body}
|
||||
</div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
function setTheme(e) {{
|
||||
document.body.className = e.currentTarget.value;
|
||||
}}
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user