106 lines
2.5 KiB
HTML
106 lines
2.5 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
|
|
<head>
|
|
<title>Servo</title>
|
|
</head>
|
|
|
|
<body>
|
|
<div class="container">
|
|
<div class="buts">
|
|
<div class="header">
|
|
<button class="but" id="up">↑</button>
|
|
</div>
|
|
<div class="center">
|
|
<button class="but" id="left">←</button>
|
|
<button class="but" id="down">↓</button>
|
|
<button class="but" id="right">→</button>
|
|
</div>
|
|
<div class="footer">
|
|
<button class="but" id="turn">顺时针</button>
|
|
<button class="but" id="reset">复位</button>
|
|
<button class="but" id="aturn">逆时针</button>
|
|
</div>
|
|
</div>
|
|
<div class="senors">
|
|
<div class="senor">
|
|
<p id="ip">当前IP: 0.0.0.0</p>
|
|
</div>
|
|
<div class="senor">
|
|
<p id="bt">蓝牙未连接</p>
|
|
</div>
|
|
<div class="senor">
|
|
<p id="temp">当前温度: 0.00℃</p>
|
|
</div>
|
|
<div class="senor">
|
|
<p id="xa">X轴加速度: 0.0000000000</p>
|
|
<p id="ya">Y轴加速度: 0.0000000000</p>
|
|
<p id="za">Z轴加速度: 0.0000000000</p>
|
|
</div>
|
|
<div class="senor angle">
|
|
<p id="anglex">X轴角度: 0.00</p>
|
|
<p id="angley">Y轴角度: 0.00</p>
|
|
<p id="anglez">Z轴角度: 0.00</p>
|
|
</div>
|
|
<div class="senor">
|
|
<p id="bz">当前前方 <strong>无</strong> 障碍物</p>
|
|
</div>
|
|
<p class="copy">by 第 6 小组</p>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
|
|
<style>
|
|
body {
|
|
padding-top: 20px;
|
|
background-color: black;
|
|
color: white;
|
|
}
|
|
|
|
div {
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.center,
|
|
.angle,
|
|
.footer {
|
|
flex-direction: row;
|
|
}
|
|
|
|
.but {
|
|
width: 128px;
|
|
height: 128px;
|
|
font-size: xx-large;
|
|
border-radius: 2px;
|
|
background-color: seashell;
|
|
}
|
|
|
|
.cc {
|
|
width: 128px;
|
|
height: 128px;
|
|
}
|
|
|
|
.senors {
|
|
margin-top: 20px;
|
|
font-size: xx-large;
|
|
}
|
|
|
|
.senor {
|
|
margin: 10px;
|
|
border: 1px solid white;
|
|
width: 500px;
|
|
padding: 15px;
|
|
border-radius: 0.5em;
|
|
}
|
|
|
|
p {
|
|
margin: 0;
|
|
}
|
|
|
|
.copy {
|
|
align-self: flex-end;
|
|
}
|
|
</style> |