You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
WebCAD/src/index.html

39 lines
1.4 KiB

<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<script>
fetch("/ver.json").then(res => {
if (!res.ok) return;
res.json().then(v => {
if (res.status)
if (v)
{
let oldVer = sessionStorage.getItem("ver");
sessionStorage.setItem("ver", v);
if (oldVer && oldVer != v)
{
document.body.textContent = "发现新版本,升级中!";
location.reload();
}
}
})
});
</script>
<title>WebCAD</title>
<link href="https://cdn.jsdelivr.net/npm/golden-layout@1.5.9/src/css/goldenlayout-base.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/golden-layout@1.5.9/src/css/goldenlayout-soda-theme.css" rel="stylesheet">
</head>
<body>
<script src="https://cdn.jsdelivr.net/npm/jquery@3.3.1/dist/jquery.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/golden-layout@1.5.9/dist/goldenlayout.min.js"></script>
<script src="https://cdn.jsdelivr.net/gh/imaya/zlib.js/bin/gzip.min.js"></script>
</body>
</html>