modified: opserver.exe

modified:   opserver_linux_amd64
	modified:   static/index.html
	modified:   static/vod.html
This commit is contained in:
eatfishfish 2024-07-02 15:53:24 +08:00
parent 513711a901
commit 93778de278
4 changed files with 30 additions and 4 deletions

Binary file not shown.

Binary file not shown.

View File

@ -28,10 +28,11 @@
<link rel="stylesheet" href="css/form.min.css"/> <link rel="stylesheet" href="css/form.min.css"/>
<style> <style>
.button { .button {
background-color: #4CAF50; /* Green */ background-color: #6c9e1d; /* Green */
border: none; border: none;
color: white; color: white;
padding: 25px 40px; height: 45px;
width: 78px;
text-align: center; text-align: center;
text-decoration: none; text-decoration: none;
display: inline-block; display: inline-block;
@ -94,6 +95,7 @@
localStorage.setItem("dongleId", input_text); localStorage.setItem("dongleId", input_text);
document.forms["formDongleId"].style.display="none"; document.forms["formDongleId"].style.display="none";
document.getElementById('btnlist').style.display=""; document.getElementById('btnlist').style.display="";
lastActive()
}else { }else {
alert("Dongle Id error."); alert("Dongle Id error.");
} }
@ -104,6 +106,29 @@
return false; return false;
} }
function lastActive() {
var input_text = document.forms["formDongleId"]["input_text"].value;
uri = '/lastActive/'+input_text
const xhr = new XMLHttpRequest();
xhr.open('GET', uri, true);
xhr.onload = function() {
if (this.status === 200) {
console.log(this.responseText);
if (this.responseText.length > 0)
{
element = document.getElementById('lastActive')
element.innerText = "Last active " + this.responseText;
element.style.display="";
}
}
};
xhr.send();
setTimeout("lastActive()", 1500);
}
function showNavigation() { function showNavigation() {
dongleId = localStorage.getItem("dongleId"); dongleId = localStorage.getItem("dongleId");
document.getElementById('nav_home').style.display=""; document.getElementById('nav_home').style.display="";
@ -151,7 +176,7 @@
function showSentry() { function showSentry() {
did = localStorage.getItem("dongleId"); did = localStorage.getItem("dongleId");
url = "FRP_SVR/"+String(did) url = "http://192.168.1.113:10201/"+String(did)
console.log(url) console.log(url)
window.location = url; window.location = url;
} }
@ -216,6 +241,7 @@
</div> </div>
</br></br></br></br> </br></br></br></br>
<div style="text-align:center"><label style="display: none;" id="lastActive" > </label ></div>
</body> </body>

View File

@ -97,7 +97,7 @@
var arr_url; var arr_url;
dongleid = localStorage.getItem("dongleId"); dongleid = localStorage.getItem("dongleId");
uri = "/vod/"+dongleid uri = "/vod/"+dongleid+"/NUMBER_VIDEO"
getVodUrl(); getVodUrl();
var int=self.setInterval("clock()",10000); var int=self.setInterval("clock()",10000);