Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
eyesis4pi-393-gui
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Elphel
eyesis4pi-393-gui
Commits
cd3cb7e8
Commit
cd3cb7e8
authored
Jan 05, 2017
by
Oleg Dzhimiev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
normal & fast recording buttons
parent
0bf49135
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
1 deletion
+34
-1
tabs.js
js/tabs.js
+34
-1
No files found.
js/tabs.js
View file @
cd3cb7e8
...
...
@@ -246,13 +246,24 @@ function tab3_init(){
c
+=
"<div style='padding:5px;'><b>Temperatures:</b></div><div id='temperatures_map'></div>"
;
c
+=
"<br/><
div><button id='other_reboot' title='System reboot'>Reboot</button> <button title='reset raw partitions write pointers' id='other_reset_rec'>Reset REC</button></
div>"
;
c
+=
"<br/><
b>Recording:</b><
div>"
;
c
+=
"<button title='set recording to file system (/mnt/sda1)' id='other_norm_rec'>Normal REC</button>"
;
c
+=
"<button title='set recording to raw partitions (/dev/sda2)' id='other_fast_rec'>Fast REC</button>"
;
c
+=
"<button title='reset raw partitions write pointers' id='other_reset_rec'>Reset Fast REC</button>"
;
c
+=
"</div>"
;
c
+=
"<br/><b>System:</b><div><button id='other_reboot' title='System reboot'>Reboot</button></div>"
;
$
(
"#tab3_contents"
).
html
(
c
);
$
(
"#other_reboot"
).
on
(
"click"
,
system_reboot
);
$
(
"#other_reset_rec"
).
on
(
"click"
,
system_reset_rec
);
$
(
"#other_fast_rec"
).
on
(
"click"
,
system_fast_rec
);
$
(
"#other_norm_rec"
).
on
(
"click"
,
system_norm_rec
);
}
// TAB 3: end
...
...
@@ -278,6 +289,28 @@ function system_reset_rec(){
});
}
function
system_fast_rec
(){
console
.
log
(
"system fast rec"
);
var
url
=
"eyesis4pi_control.php?fast_rec&rq="
+
cams_to_str
();
$
.
ajax
({
url
:
url
,
success
:
function
(
data
){
console
.
log
(
data
);
}
});
}
function
system_norm_rec
(){
console
.
log
(
"system norm rec"
);
var
url
=
"eyesis4pi_control.php?norm_rec&rq="
+
cams_to_str
();
$
.
ajax
({
url
:
url
,
success
:
function
(
data
){
console
.
log
(
data
);
}
});
}
function
previews_init
(){
console
.
log
(
"number of previews is "
+
cams
.
length
);
...
...
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