98 lines
2.9 KiB
HTML
Executable File
98 lines
2.9 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<script src=assets/jquery.js> </script>
|
|
<script>
|
|
function deleteit(indexik){
|
|
$.post("admin.php?delete=1",
|
|
{
|
|
delete: indexik
|
|
},
|
|
function(data, status){
|
|
updateTable();
|
|
});
|
|
}
|
|
$(function() {
|
|
function Ping() {
|
|
$.get("index.php?keepalive=1", function(data, status){
|
|
});
|
|
}
|
|
|
|
Ping();
|
|
setInterval(function(){ Ping(); }, 60000);
|
|
function updateTable(){
|
|
$.get("admin.php?onlytable=1", function(data, status){
|
|
$("#chattablicka").html(data);
|
|
});
|
|
}
|
|
setInterval(updateTable, 5000);
|
|
updateTable();
|
|
function updateConns(){
|
|
$.get("admin.php?onlyconns=1", function(data, status){
|
|
$("#connections").html(data);
|
|
});
|
|
}
|
|
setInterval(updateConns, 30000);
|
|
updateConns();
|
|
|
|
$("#send").click(function(){
|
|
data = $("#ins").val();
|
|
if(data != ""){
|
|
$.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>Administrácia</title>
|
|
<style>
|
|
table, th, td {
|
|
border: 2px solid;
|
|
border-collapse: collapse;
|
|
}
|
|
.headingac {
|
|
font-size: 64px;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<p class="headingac">Vysielanie</p>
|
|
<audio controls src="__VLOZ_URL_AUDIA__" id="audioplayer" type="__VLOZ_TYP_AUDIA__" preload="none"></audio>
|
|
<br>
|
|
<a href="index.php?logout=1">
|
|
<p>Odhlásiť sa</p>
|
|
</a>
|
|
<a href="__VLOZ_URL_AUDIA__.m3u" download target="_blank">
|
|
<p>Playlist na stiahnutie</p>
|
|
</a>
|
|
<a href="index.php">
|
|
<p>Obyčajný prehrávač</p>
|
|
</a>
|
|
<p class="headingac">Pripojenia:</p>
|
|
<div id="connections"></div>
|
|
<br>
|
|
<p class="headingac">Chat admin:</p>
|
|
<button onclick="deleteit('*')">Zmazať všetko</button>
|
|
<br>
|
|
<div id="chattablicka"></div><br>
|
|
|
|
<input id="ins"></input>
|
|
<button id="send">Odoslať</button>
|
|
<br>
|
|
<p>© BRN Systems __VLOZ_ROK__</p>
|
|
</body>
|
|
</html>
|