early dark mode support using #dark
This commit is contained in:
parent
7dc7c10f61
commit
596065b7c8
@ -35,6 +35,11 @@ textarea {
|
|||||||
border-width: 0;
|
border-width: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textarea.dark {
|
||||||
|
background-color: #222;
|
||||||
|
color: #ddd;
|
||||||
|
}
|
||||||
|
|
||||||
#saved-indicator {
|
#saved-indicator {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: -40px;
|
bottom: -40px;
|
||||||
|
@ -22,6 +22,11 @@
|
|||||||
|
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
|
// set dark mode
|
||||||
|
if (window.location.hash == '#dark') {
|
||||||
|
$('textarea').addClass('dark');
|
||||||
|
}
|
||||||
|
|
||||||
var timer = null;
|
var timer = null;
|
||||||
let ignoredKeyCodes = [17, 18, 20, 27, 37, 38, 39, 40, 91];
|
let ignoredKeyCodes = [17, 18, 20, 27, 37, 38, 39, 40, 91];
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user