Commit eb8c4e6d authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

refresh images interval

parent 10533929
var interval_get_files; var interval_get_files;
var interval_refresh_images;
function init(){ function init(){
var t = $("<table>").html("\ var t = $("<table>").html("\
...@@ -141,12 +142,23 @@ function init(){ ...@@ -141,12 +142,23 @@ function init(){
//init_defaults(); //init_defaults();
init_path(); init_path();
init_files(); init_files();
init_images();
} }
function init_files(){ function init_files(){
interval_get_files = setInterval(get_files,1000); interval_get_files = setInterval(get_files,1000);
} }
function init_images(){
interval_refresh_images = setInterval(function(){
for(var j=0;j<4;j++){
d = new Date();
n = d.getTime();
$("#chn"+j).attr("src",$("#chn"+j).attr("src_init")+"&"+n);
}
},1000);
}
function get_files(){ function get_files(){
console.log("get files"); console.log("get files");
$.ajax({ $.ajax({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment