mirror of
https://github.com/CopterExpress/clover.git
synced 2026-06-06 09:39:32 +00:00
Compare commits
1 Commits
rtui
...
web-improv
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
9c1d854223 |
@@ -1,5 +1,11 @@
|
||||
<style>
|
||||
body { font-family: sans-serif; }
|
||||
main { max-width: 600px; margin: 50px auto; }
|
||||
</style>
|
||||
|
||||
<title>Clover Drone Kit Tools</title>
|
||||
|
||||
<main>
|
||||
<h1>Clover Drone Kit Tools</h1>
|
||||
|
||||
<ul>
|
||||
@@ -13,6 +19,7 @@
|
||||
</ul>
|
||||
|
||||
<div class="version"></div>
|
||||
</main>
|
||||
|
||||
<script type="text/javascript">
|
||||
document.querySelector("#wvs").href = location.protocol + '//' + location.hostname + ':8080';
|
||||
@@ -22,7 +29,7 @@
|
||||
fetch('clover_version').then(function(response) {
|
||||
if (response.status !== 200) return;
|
||||
response.text().then(function(text) {
|
||||
document.querySelector('.version').innerHTML = 'Version: ' + text;
|
||||
document.querySelector('.version').innerHTML = 'Version: <code>' + text + '</code>';
|
||||
});
|
||||
});
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user