Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
meta-elphel393
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
Elphel
meta-elphel393
Commits
eb8c4e6d
Commit
eb8c4e6d
authored
Jun 03, 2016
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refresh images interval
parent
10533929
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
0 deletions
+12
-0
camogm.js
recipes-core/apps-web/files/camogm.js
+12
-0
No files found.
recipes-core/apps-web/files/camogm.js
View file @
eb8c4e6d
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
({
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment