clay : init

This commit is contained in:
邓洁
2023-04-21 00:14:40 +08:00
commit daff2b9ff8
28 changed files with 14733 additions and 0 deletions

BIN
public/favicon.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

38
public/index.html Normal file
View File

@@ -0,0 +1,38 @@
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>favicon.ico">
<title>西南交通大学 保卫处</title>
<script>
fnResize();
window.onresize = function() {
fnResize();
}
function fnResize() {
let deviceWidth = document.documentElement.clientWidth || window.innerWidth;
// let deviceWidth = document.documentElement.clientHeight || window.innerHeight;
if (deviceWidth >= 750) {
deviceWidth = 750;
}
if (deviceWidth <= 320) {
deviceWidth = 320;
}
document.documentElement.style.fontSize = (deviceWidth / 75) + 'px';
// document.documentElement.style.width = (deviceWidth / 75) + 'px';
// document.documentElement.style.height = (deviceWidth / 75) + 'px';
}
</script>
</head>
<body>
<noscript>
<strong>We're sorry but <%= htmlWebpackPlugin.options.title %> doesn't work properly without JavaScript enabled. Please enable it to continue.</strong>
</noscript>
<div id="app"></div>
<!-- built files will be auto injected -->
</body>
</html>