Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rasky
noVNC
Commits
3c1bead9
Commit
3c1bead9
authored
May 17, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add styling classes for status line state.
parent
b92e282a
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
6 deletions
+24
-6
black.css
include/black.css
+9
-0
plain.css
include/plain.css
+9
-0
vnc.js
vnc.js
+6
-6
No files found.
include/black.css
View file @
3c1bead9
...
...
@@ -50,6 +50,15 @@ body {
font-weight
:
bold
;
text-align
:
center
;
}
.VNC_status_normal
{
color
:
#fff
;
}
.VNC_status_error
{
color
:
#f44
;
}
.VNC_status_warn
{
color
:
#ff4
;
}
#VNC_screen
{
-webkit-border-radius
:
10px
;
-moz-border-radius
:
10px
;
...
...
include/plain.css
View file @
3c1bead9
...
...
@@ -29,8 +29,17 @@
#VNC_status
{
margin-top
:
15px
;
text-align
:
center
;
/*background: #eee;*/
}
.VNC_status_normal
{
background
:
#eee
;
}
.VNC_status_error
{
background
:
#f44
;
}
.VNC_status_warn
{
background
:
#ff4
;
}
/* Do not set width/height for VNC_screen or VNC_canvas or incorrect
* scaling will occur. Canvas resizes to remote VNC settings */
...
...
vnc.js
View file @
3c1bead9
...
...
@@ -1004,7 +1004,7 @@ clipboardClear: function () {
},
updateState
:
function
(
state
,
statusMsg
)
{
var
s
,
c
,
func
,
color
,
cmsg
;
var
s
,
c
,
func
,
klass
,
cmsg
;
s
=
RFB
.
statusLine
;
c
=
RFB
.
connectBtn
;
func
=
function
(
msg
)
{
console
.
log
(
msg
);
};
...
...
@@ -1012,25 +1012,25 @@ updateState: function(state, statusMsg) {
case
'failed'
:
func
=
function
(
msg
)
{
console
.
error
(
msg
);
};
c
.
disabled
=
true
;
color
=
"#880000
"
;
klass
=
"error
"
;
break
;
case
'normal'
:
c
.
value
=
"Disconnect"
;
c
.
onclick
=
RFB
.
disconnect
;
c
.
disabled
=
false
;
color
=
"#000000
"
;
klass
=
"normal
"
;
break
;
case
'disconnected'
:
c
.
value
=
"Connect"
;
c
.
onclick
=
function
()
{
RFB
.
connect
();
};
c
.
disabled
=
false
;
color
=
"#000000
"
;
klass
=
"normal
"
;
break
;
default
:
func
=
function
(
msg
)
{
console
.
warn
(
msg
);
};
c
.
disabled
=
true
;
color
=
"#444400
"
;
klass
=
"warn
"
;
break
;
}
...
...
@@ -1041,7 +1041,7 @@ updateState: function(state, statusMsg) {
}
RFB
.
state
=
state
;
s
.
s
tyle
.
color
=
color
;
s
.
s
etAttribute
(
"class"
,
"VNC_status_"
+
klass
)
;
cmsg
=
typeof
(
statusMsg
)
!==
'undefined'
?
(
" Msg: "
+
statusMsg
)
:
""
;
func
(
"New state '"
+
state
+
"'."
+
cmsg
);
if
(
typeof
(
statusMsg
)
!==
'undefined'
)
{
...
...
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