109 lines
3.6 KiB
HTML
109 lines
3.6 KiB
HTML
<!doctype html>
|
|
<html lang="zh-CN" class="mdui-theme-auto">
|
|
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, shrink-to-fit=no" />
|
|
<meta name="renderer" content="webkit" />
|
|
|
|
<!-- UI -->
|
|
<script src="https://unpkg.com/mdui@2/mdui.global.js">
|
|
</script>
|
|
<link rel="icon" href="icon.ico" />
|
|
<link rel="stylesheet" href="https://unpkg.com/mdui@2/mdui.css" />
|
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
|
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons+Outlined" rel="stylesheet" />
|
|
<script src="https://unpkg.com/split.js/dist/split.min.js"></script>
|
|
|
|
|
|
<script src="https://unpkg.com/react@18/umd/react.development.js"></script>
|
|
<script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js"></script>
|
|
<script src="https://code.jquery.com/jquery-3.7.1.min.js"></script>
|
|
|
|
<title>TheWhiteSilk</title>
|
|
|
|
<style>
|
|
/* 滑条*/
|
|
.no-scroll-bar::-webkit-scrollbar {
|
|
width: 0px !important;
|
|
}
|
|
|
|
/* https://blog.csdn.net/qq_39347364/article/details/111996581*/
|
|
*::-webkit-scrollbar {
|
|
width: 7px;
|
|
height: 10px;
|
|
}
|
|
|
|
*::-webkit-scrollbar-track {
|
|
width: 6px;
|
|
background: rgba(#101F1C, 0.1);
|
|
-webkit-border-radius: 2em;
|
|
-moz-border-radius: 2em;
|
|
border-radius: 2em;
|
|
}
|
|
|
|
*::-webkit-scrollbar-thumb {
|
|
background-color: rgba(144, 147, 153, .5);
|
|
background-clip: padding-box;
|
|
min-height: 28px;
|
|
-webkit-border-radius: 2em;
|
|
-moz-border-radius: 2em;
|
|
border-radius: 2em;
|
|
transition: background-color .3s;
|
|
cursor: pointer;
|
|
}
|
|
|
|
*::-webkit-scrollbar-thumb:hover {
|
|
background-color: rgba(144, 147, 153, .3);
|
|
}
|
|
|
|
/* 使用系统字体 在部分系统表现很好*/
|
|
/* 我们至今仍未能知道桌面端浏览器字体的秘密*/
|
|
*:not(.material-icons, .mdui-icon, mdui-icon, .fa, .google-symbols) {
|
|
font-family: -apple-system, system-ui, -webkit-system-font !important;
|
|
}
|
|
|
|
body {
|
|
display: flex;
|
|
margin: 0 0 0 0;
|
|
height: 100%;
|
|
}
|
|
|
|
html {
|
|
margin: 0 0 0 0;
|
|
height: 100%;
|
|
}
|
|
|
|
/* 防止小尺寸图片模糊*/
|
|
* {
|
|
image-rendering: -moz-crisp-edges;
|
|
image-rendering: -o-crisp-edges;
|
|
image-rendering: -webkit-optimize-contrast;
|
|
image-rendering: crisp-edges;
|
|
-ms-interpolation-mode: nearest-neighbor;
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
<div id="app"></div>
|
|
|
|
<script nomodule>
|
|
alert('很抱歉, 此应用无法在较旧的浏览器运行, 请使用基于 Chromium 89+ 的浏览器(内核)使用 :(')
|
|
</script>
|
|
<script type="module">
|
|
import App from './ui/App.js'
|
|
ReactDOM.createRoot(document.getElementById('app')).render(React.createElement(App, null))
|
|
|
|
let onResize = () => {
|
|
document.body.style.setProperty('--whitesilk-widget-message-maxwidth', mdui.breakpoint().down('md') ? "80%" : "70%")
|
|
document.body.style.setProperty('--whitesilk-window-width', window.innerWidth + 'px')
|
|
document.body.style.setProperty('--whitesilk-window-height', window.innerHeight + 'px')
|
|
}
|
|
window.addEventListener('resize', onResize)
|
|
onResize()
|
|
|
|
</script>
|
|
</body>
|
|
|
|
</html> |