Added script for counting listeners

This commit is contained in:
santic-zombie
2020-03-26 23:15:41 +03:00
parent ea68508cc9
commit de8c6598d7
3 changed files with 99 additions and 0 deletions

View File

@@ -49,6 +49,8 @@
<span id="duration"></span>
<br>
<br>
<div id="listeners">title</div>
</div>
@@ -95,6 +97,23 @@
});
</script>
<script language="JavaScript">
function show1()
{
$.ajax({
url: '/online.php',
cache: false,
success: function(html){
$('#listeners').html(html);
}
});
}
$(document).ready(function(){
show1();
setInterval('show1()',5000);
});
</script>
</body>
</html>