252 Star 2.1K Fork 289

qishibo / AnotherRedisDesktopManager

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
index.html 1002 Bytes
Copy Edit Web IDE Raw Blame History
qishibo authored 2020-03-13 09:12 . dark mode support
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="stylesheet" type="text/css" id="theme-link">
<title>Another Redis DeskTop Manager</title>
</head>
<body>
<!-- this script must be placed here after body -->
<script type="text/javascript">
function globalChangeTheme(theme) {
theme && (localStorage.theme = theme);
!theme && (theme = localStorage.theme);
const themeName = (theme == 'dark' ? 'dark' : 'chalk');
const themeHref = 'static/theme/' + themeName + '/index.css';
document.getElementById('theme-link').href = themeHref;
themeName == 'dark' ? document.body.classList.add('dark-mode') :
document.body.classList.remove('dark-mode');
}
// theme init
globalChangeTheme();
</script>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>

Comment ( 0 )

Sign in for post a comment

JavaScript
1
https://gitee.com/qishibo/AnotherRedisDesktopManager.git
git@gitee.com:qishibo/AnotherRedisDesktopManager.git
qishibo
AnotherRedisDesktopManager
AnotherRedisDesktopManager
master

Search