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
608e0f52
Commit
608e0f52
authored
Sep 14, 2011
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Some CSS style and DOM id/class cleanup.
parent
7e5f81f2
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
18 additions
and
22 deletions
+18
-22
base.css
include/base.css
+8
-11
display.js
include/display.js
+3
-3
ui.js
include/ui.js
+1
-2
viewport.html
tests/viewport.html
+1
-1
vnc.html
vnc.html
+5
-5
No files found.
include/base.css
View file @
608e0f52
...
@@ -66,17 +66,20 @@ html {
...
@@ -66,17 +66,20 @@ html {
}
}
#noVNC_mobile_buttons
{
#noVNC_mobile_buttons
{
display
:
none
;
}
.noVNC-buttons-left
{
position
:
fixed
;
position
:
fixed
;
padding-left
:
10px
;
padding-left
:
10px
;
padding-top
:
9px
;
padding-top
:
9px
;
display
:
none
;
}
}
#noVNC_buttons_right
{
.noVNC-buttons-right
{
position
:
fixed
;
float
:
right
;
right
:
0px
;
padding-right
:
10px
;
padding-right
:
10px
;
padding-top
:
9px
;
padding-top
:
9px
;
right
:
0
;
}
}
#noVNC_status_bar
{
#noVNC_status_bar
{
...
@@ -90,7 +93,7 @@ html {
...
@@ -90,7 +93,7 @@ html {
width
:
100%
;
width
:
100%
;
}
}
.VNC_status_button
,
#clipboardbutton
,
#connectbutton
{
.
no
VNC_status_button
,
#clipboardbutton
,
#connectbutton
{
font-size
:
14px
;
font-size
:
14px
;
}
}
...
@@ -112,12 +115,6 @@ html {
...
@@ -112,12 +115,6 @@ html {
float
:
right
;
float
:
right
;
}
}
.VNC_buttons_right
{
text-align
:
right
;
}
.VNC_buttons_left
{
text-align
:
left
;
}
.noVNC_status_normal
{
.noVNC_status_normal
{
background
:
#eee
;
background
:
#eee
;
}
}
...
...
include/display.js
View file @
608e0f52
...
@@ -304,10 +304,10 @@ that.viewportChange = function(deltaX, deltaY, width, height) {
...
@@ -304,10 +304,10 @@ that.viewportChange = function(deltaX, deltaY, width, height) {
}
}
if
((
deltaX
===
0
)
&&
(
deltaY
===
0
))
{
if
((
deltaX
===
0
)
&&
(
deltaY
===
0
))
{
//
message("skipping
");
//
Util.Debug("skipping viewport change
");
return
;
return
;
}
}
message
(
"
deltaX: "
+
deltaX
+
", deltaY: "
+
deltaY
);
Util
.
Debug
(
"viewportChange
deltaX: "
+
deltaX
+
", deltaY: "
+
deltaY
);
v
.
x
+=
deltaX
;
v
.
x
+=
deltaX
;
vx2
+=
deltaX
;
vx2
+=
deltaX
;
...
@@ -363,7 +363,7 @@ that.viewportChange = function(deltaX, deltaY, width, height) {
...
@@ -363,7 +363,7 @@ that.viewportChange = function(deltaX, deltaY, width, height) {
c_ctx
.
fillRect
(
0
,
y1
,
v
.
w
,
h
);
c_ctx
.
fillRect
(
0
,
y1
,
v
.
w
,
h
);
}
}
c_ctx
.
fillStyle
=
saveStyle
;
c_ctx
.
fillStyle
=
saveStyle
;
}
}
;
that
.
getCleanDirtyReset
=
function
()
{
that
.
getCleanDirtyReset
=
function
()
{
var
v
=
viewport
,
c
=
cleanRect
,
cleanBox
,
dirtyBoxes
=
[],
var
v
=
viewport
,
c
=
cleanRect
,
cleanBox
,
dirtyBoxes
=
[],
...
...
include/ui.js
View file @
608e0f52
...
@@ -302,7 +302,7 @@ updateState: function(rfb, state, oldstate, msg) {
...
@@ -302,7 +302,7 @@ updateState: function(rfb, state, oldstate, msg) {
c
.
value
=
"Disconnect"
;
c
.
value
=
"Disconnect"
;
c
.
onclick
=
UI
.
disconnect
;
c
.
onclick
=
UI
.
disconnect
;
c
.
disabled
=
false
;
c
.
disabled
=
false
;
cad
.
style
.
display
=
"
block
"
;
cad
.
style
.
display
=
""
;
UI
.
settingsDisabled
(
true
,
rfb
);
UI
.
settingsDisabled
(
true
,
rfb
);
klass
=
"noVNC_status_normal"
;
klass
=
"noVNC_status_normal"
;
break
;
break
;
...
@@ -497,7 +497,6 @@ addOption: function(selectbox,text,value )
...
@@ -497,7 +497,6 @@ addOption: function(selectbox,text,value )
setBarPosition
:
function
()
{
setBarPosition
:
function
()
{
$D
(
'noVNC-control-bar'
).
style
.
top
=
(
window
.
pageYOffset
)
+
'px'
;
$D
(
'noVNC-control-bar'
).
style
.
top
=
(
window
.
pageYOffset
)
+
'px'
;
$D
(
'noVNC_mobile_buttons'
).
style
.
left
=
(
window
.
pageXOffset
)
+
'px'
;
$D
(
'noVNC_mobile_buttons'
).
style
.
left
=
(
window
.
pageXOffset
)
+
'px'
;
$D
(
'noVNC_buttons_right'
).
style
.
right
=
0
+
'px'
;
var
vncwidth
=
$D
(
'noVNC_screen'
).
style
.
offsetWidth
;
var
vncwidth
=
$D
(
'noVNC_screen'
).
style
.
offsetWidth
;
$D
(
'noVNC-control-bar'
).
style
.
width
=
vncwidth
+
'px'
;
$D
(
'noVNC-control-bar'
).
style
.
width
=
vncwidth
+
'px'
;
...
...
tests/viewport.html
View file @
608e0f52
...
@@ -86,7 +86,7 @@
...
@@ -86,7 +86,7 @@
}
}
function
mouseMove
(
x
,
y
)
{
function
mouseMove
(
x
,
y
)
{
var
deltaX
,
deltaY
,
x1
,
y1
;
var
deltaX
,
deltaY
;
if
(
inMove
)
{
if
(
inMove
)
{
//deltaX = x - lastPos.x; // drag viewport
//deltaX = x - lastPos.x; // drag viewport
...
...
vnc.html
View file @
608e0f52
...
@@ -48,7 +48,7 @@
...
@@ -48,7 +48,7 @@
<body>
<body>
<div
id=
"noVNC-control-bar"
>
<div
id=
"noVNC-control-bar"
>
<!--noVNC Mobile Device only Buttons-->
<!--noVNC Mobile Device only Buttons-->
<div
id=
"noVNC_mobile_buttons"
>
<div
id=
"noVNC_mobile_buttons"
class=
"noVNC-buttons-left"
>
<nobr>
<nobr>
<span
class=
"noVNC_mouse_buttons"
>
<span
class=
"noVNC_mouse_buttons"
>
<input
type=
"button"
class=
"noVNC_status_button"
<input
type=
"button"
class=
"noVNC_status_button"
...
@@ -68,17 +68,17 @@
...
@@ -68,17 +68,17 @@
</div>
</div>
<!--noVNC Buttons-->
<!--noVNC Buttons-->
<div
id=
"noVNC_buttons_
right"
>
<div
class=
"noVNC-buttons-
right"
>
<input
type=
"button"
class=
"noVNC_status_button"
<input
type=
"button"
class=
"noVNC_status_button"
style=
"float:left;"
value=
"CtrlAltDel"
id=
"sendCtrlAltDelButton"
value=
"CtrlAltDel"
id=
"sendCtrlAltDelButton"
onclick=
"UI.sendCtrlAltDel();"
>
onclick=
"UI.sendCtrlAltDel();"
>
<input
type=
"button"
id=
"clipboardbutton"
value=
"Clipboard"
<input
type=
"button"
id=
"clipboardbutton"
value=
"Clipboard"
onclick=
"UI.showClipboard();"
/>
onclick=
"UI.showClipboard();"
/>
<input
type=
"button"
class=
"VNC_status_button"
<input
type=
"button"
class=
"
no
VNC_status_button"
value=
"Settings"
id=
"menuButton"
value=
"Settings"
id=
"menuButton"
onclick=
"UI.clickSettingsMenu();"
>
onclick=
"UI.clickSettingsMenu();"
>
<input
type=
"button"
id=
"connectPanelbutton"
<input
type=
"button"
id=
"connectPanelbutton"
value=
"Connection"
class=
"VNC_status_button"
value=
"Connection"
class=
"
no
VNC_status_button"
onclick=
"UI.connectPanelbutton()"
/>
onclick=
"UI.connectPanelbutton()"
/>
</div>
</div>
...
...
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