| 12345678910111213141516171819202122232425262728293031323334 |
- var timer = null;
- $(document).ready(function() {
- //start_crawler();
- });
- function start_crawler() {
- if (timer===null) {
- timer = setInterval(doCall,1000);
-
- $('#console').append("Crawler script started...<hr>");
- $('#console').animate({scrollTop: $('#console').prop("scrollHeight")}, 500);
-
- return true;
- }
- else {
- return false;
- }
- }
- function doCall() {
- $.get('/admin/monitoring/get/',function(resp) {
- $('#console').html(resp);
- $('#console').animate({scrollTop: $('#console').prop("scrollHeight")}, 500);
- return true;
- });
- }
- function reset_console() {
- $('#console').html('');
- return true;
- }
|