4x/irrigation-monitor-frontend/index.html

72 lines
1.7 KiB
HTML

<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<!-- <link rel="icon" href="/favicon.ico" /> -->
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<script src="./static/tdtapi.js" type="text/javascript"></script>
<script type="text/javascript"
src="http://lbs.tianditu.gov.cn/api/js4.0/opensource/openlibrary/HeatmapOverlay.js"></script>
<script>
const hostNameList = ['192.168.9.245', '125.77.202.162', 'localhost']
if (!hostNameList.includes(window.location.hostname)) {
window.useWaterPriceData = true
}
</script>
<title>引汤灌区数字孪生信息化平台</title>
</head>
<body>
<div id="app">
<div class="loader"></div>
</div>
</body>
<!-- <script src="./libs/heatmap.js"></script> -->
<script src="./libs/CesiumHeatmap.js"></script>
<script src="./libs/config.js"></script>
<script type="module" src="/src/main.ts"></script>
<style>
html,
body,
#app {
position: relative;
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
}
.loader {
position: relative;
width: 40px;
aspect-ratio: 0.577;
overflow: hidden;
clip-path: polygon(0 0, 100% 100%, 0 100%, 100% 0);
animation: l19 2s infinite linear;
}
/* 设置全局背景颜色为透明 */
/* :root {
--el-bg-color: transparent;
} */
.loader::before {
position: absolute;
inset: -150%;
content: '';
background: repeating-conic-gradient(from 30deg, #ffabab 0 60deg, #abe4ff 0 120deg, #ff7373 0 180deg);
animation: inherit;
animation-direction: reverse;
}
@keyframes l19 {
100% {
transform: rotate(360deg);
}
}
</style>
</html>