Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DMDesign
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Amanda Ghassaei
DMDesign
Commits
068abffb
Commit
068abffb
authored
9 years ago
by
Amanda Ghassaei
Browse files
Options
Downloads
Patches
Plain Diff
control panel
parent
52785efe
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
css/serialMonitor.css
+24
-0
24 additions, 0 deletions
css/serialMonitor.css
js/SerialMonitor/SerialMonitorView.html
+5
-1
5 additions, 1 deletion
js/SerialMonitor/SerialMonitorView.html
js/SerialMonitor/SerialMonitorView.js
+6
-0
6 additions, 0 deletions
js/SerialMonitor/SerialMonitorView.js
with
35 additions
and
1 deletion
css/serialMonitor.css
+
24
−
0
View file @
068abffb
...
...
@@ -18,4 +18,28 @@
#serialMonitorView
{
overflow
:
hidden
;
}
.btn
{
padding
:
5px
10px
;
margin
:
5px
10px
;
}
#controlPanel
{
background
:
#eee
;
width
:
100%
;
position
:
absolute
;
bottom
:
40px
;
}
.checkbox
input
[
type
=
"checkbox"
]
.custom-checkbox
:checked
+
.icons
.icon-checked
,
.radio
input
[
type
=
"checkbox"
]
.custom-checkbox
:checked
+
.icons
.icon-checked
,
.checkbox
input
[
type
=
"radio"
]
.custom-radio
:checked
+
.icons
.icon-checked
,
.radio
input
[
type
=
"radio"
]
.custom-radio
:checked
+
.icons
.icon-checked
{
color
:
#888
;
}
#autoscrollCheckbox
{
display
:
inline-block
;
position
:
absolute
;
margin-left
:
10px
;
margin-top
:
12px
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
js/SerialMonitor/SerialMonitorView.html
+
5
−
1
View file @
068abffb
<div
id=
"serialMonitorOutput"
></div>
<div
id=
"controlPanel"
>
<label
id=
"autoscrollCheckbox"
class=
"checkbox"
for=
"autoscroll"
>
<input
id=
"autoscroll"
data-property=
"autoscroll"
type=
"checkbox"
<%
if
(
autoscroll
){
%
>
checked="checked"
<
%
}
%
>
value="" data-toggle="checkbox" class="serialMonitor custom-checkbox">
<span
class=
"icons"
><span
class=
"icon-unchecked"
></span><span
class=
"icon-checked"
></span></span>
Autoscroll
</label>
<a
href=
"#"
id=
"clearMonitor"
class=
"pull-right btn btn-lg btn-default"
>
Clear
</a><br/>
</div>
<input
id=
"sendSerialMessage"
value=
""
placeholder=
"Send Message"
class=
"form-control"
type=
"text"
>
\ No newline at end of file
This diff is collapsed.
Click to expand it.
js/SerialMonitor/SerialMonitorView.js
+
6
−
0
View file @
068abffb
...
...
@@ -11,6 +11,7 @@ define(['jquery', 'underscore', 'commParentMenu', 'serialComm', 'text!SerialMoni
el
:
"
#serialMonitorView
"
,
events
:
{
"
click #clearMonitor
"
:
"
_clear
"
},
__initialize
:
function
(){
...
...
@@ -21,6 +22,11 @@ define(['jquery', 'underscore', 'commParentMenu', 'serialComm', 'text!SerialMoni
return
this
.
model
.
toJSON
();
},
_clear
:
function
(
e
){
e
.
preventDefault
();
$
(
"
#serialMonitorOutput
"
).
html
(
""
);
},
_updateIncomingMessage
:
function
(){
$
(
"
#serialMonitorOutput
"
).
append
(
serialComm
.
get
(
"
lastMessageReceived
"
)
+
"
<br/>
"
);
},
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment