Skip to content

Commit

Permalink
提交html js更新
Browse files Browse the repository at this point in the history
  • Loading branch information
HisAtri committed Sep 17, 2023
1 parent 93f544a commit 61a677b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@
<h1>LrcApi已启动</h1>
<div class="blurry-box">
<h4>歌词API地址:</h4>
<code>http://localhost/lyrics</code>
<code id="api_url">http://localhost/lyrics</code>
<h4>更多内容</h4>
<p>请参考<a href="https://github.com/HisAtri/LrcApi/blob/main/README.md">Github Readme Page</a></p>
<h4>服务器状态</h4>
Expand All @@ -119,6 +119,9 @@ <h4>服务器状态</h4>
</a>
</div>
<script>
var cDomain = window.location.protocol + '//' + window.location.hostname + '/lyrics';
var api_location = document.getElementById("api_url");
api_location.innerHTML = cDomain;
function testServerStatus() {
var statusElement = document.getElementById('status');
var url = '/';
Expand Down

0 comments on commit 61a677b

Please sign in to comment.