优化页面

This commit is contained in:
涵曦 2024-05-19 15:18:28 +00:00
parent 9291676543
commit 59cfbb06a4
4 changed files with 21 additions and 1 deletions

View File

@ -32,5 +32,9 @@
<div class="container">
<div id="playering-music" class="text"></div>
</div>
<footer>
<p>Powered by <a href="https://github.com/hanxi/xiaomusic" target="_blank">xiaomusic</a></p>
</footer>
</body>
</html>

View File

@ -26,5 +26,9 @@
<hr>
<button onclick="location.href='/';">返回首页</button>
<button id="save">保存</button>
<footer>
<p>Powered by <a href="https://github.com/hanxi/xiaomusic" target="_blank">xiaomusic</a></p>
</footer>
</body>
</html>

View File

@ -1,4 +1,10 @@
$(function(){
// 拉取版本
$.get("/getversion", function(data, status) {
console.log(data, status, data["version"]);
$("#version").text(`(${data.version})`);
});
// 拉取现有配置
$.get("/getsetting", function(data, status) {
console.log(data, status);

View File

@ -61,4 +61,10 @@ input,select {
margin-right: 20px;
}
footer {
position: fixed;
bottom: 0;
width: 100%;
text-align: center;
padding: 10px 0;
}