Files
Streaming/templates/admin.html
2023-06-12 21:53:16 +02:00

99 lines
3.3 KiB
HTML
Executable File

<!DOCTYPE html>
<html data-theme="dark">
<head>
<script data-website-id="ec75bcbd-29d7-471c-a1a8-c20cb688f2b6" src="https://umami.brn.systems/script.js"></script>
<script src=assets/jquery.js> </script>
<script>
__LOCALIZATION_LANGSELECT_SCRIPT__
function deleteit(indexik){
$.post("index.php?admin=1&deletechatmsg=1",
{
deletechatmsg: indexik
},
function(data, status){
updateTable();
});
}
$(function() {
function Ping() {
$.get("index.php?admin=1&keepalive=1", function(data, status){
});
}
Ping();
setInterval(function(){ Ping(); }, 60000);
function updateDashboard(){
$.get("index.php?admin=1&admin_dash_api=1", function(data, status){
var parsedData = JSON.parse(data);
$("#chattablicka").html(parsedData.chatadm);
$("#connections").html(parsedData.connadm);
});
}
setInterval(updateDashboard, 5000);
updateDashboard();
$("#send").click(function(){
data = $("#ins").val();
if(data != ""){
try{
umami.trackEvent('Admin send chat message', { type: 'chatadminmessage', code: kod});
} catch(e) {}
$.post("index.php?chat=1&send=1",
{
text: data
},
function(data2, status){
});
}
$("#ins").val("");
});
$("#ins").keyup(function(event) {
if (event.keyCode === 13) {
$("#send").click();
}
});
});
</script>
<meta charset="UTF-8">
<link rel="stylesheet" href="assets/pico.css">
<title>__LOCALIZATION_ADMIN_LINK__</title>
<style>
table, th, td {
border: 2px solid;
border-collapse: collapse;
}
.headingac {
font-size: 64px;
}
</style>
</head>
<body>
__LOCALIZATION_LANGSELECT__
<p class="headingac">__LOCALIZATION_PLAYER_TITLE__</p>
<audio controls src="__VLOZ_URL_AUDIA__" id="audioplayer" type="__VLOZ_TYP_AUDIA__" preload="none"></audio>
<br>
<a href="index.php?logout=1">
<p>__LOCALIZATION_LOGOUT__</p>
</a>
<a href="__VLOZ_URL_AUDIA__.m3u" download target="_blank">
<p>__LOCALIZATION_PLAYLIST_DOWNLOAD__</p>
</a>
<a href="index.php">
<p>__LOCALIZATION_NORMAL_LINK__</p>
</a>
<p class="headingac">__LOCALIZATION_CONNECTIONS__</p>
<div id="connections"></div>
<br>
<p class="headingac">__LOCALIZATION_CHAT_ADMIN__</p>
<button onclick="deleteit('*')">__LOCALIZATION_CHAT_ADMIN_DELETE_ALL__</button>
<br>
<div id="chattablicka"></div><br>
<input id="ins"></input>
<button id="send">__LOCALIZATION_CHAT_SEND__</button>
<br>
<p>© BRN Systems __VLOZ_ROK__</p>
</body>
</html>