Added script for counting listeners
This commit is contained in:
19
index.php
19
index.php
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user