Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Michel Roelofs
dt_ctrl
Commits
7fbe60fc
Commit
7fbe60fc
authored
Jan 13, 2018
by
Tammo Jan Dijkema
Browse files
Highlight offset window title on change
parent
8a0533ce
Changes
1
Hide whitespace changes
Inline
Side-by-side
console/js/offset.js
View file @
7fbe60fc
...
...
@@ -142,17 +142,31 @@ function offset(element_name) {
*/
this
.
highlight_title
=
function
(
az
,
el
)
{
if
(
az
!=
0
||
el
!=
0
)
{
this
.
window
.
title
.
element
.
style
.
background
=
'
yellow
'
;
}
else
{
this
.
window
.
title
.
element
.
style
.
background
=
'
silver
'
;
}
}
this
.
set_offset
=
function
(
az
,
el
)
{
this
.
val_az
.
value_set
(
decimals
(
rad2deg
(
az
),
4
));
this
.
val_el
.
value_set
(
decimals
(
rad2deg
(
el
),
4
));
this
.
highlight_title
(
az
,
el
);
}
this
.
send
=
function
(
az
,
el
)
{
az
=
deg2rad
(
floatval
(
az
));
el
=
deg2rad
(
floatval
(
el
));
this
.
highlight_title
(
az
,
el
);
dt_websocket_send
(
"
command offset
"
+
"
"
+
az
+
"
"
+
el
);
}
...
...
Write
Preview
Supports
Markdown
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