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
96a6eaad
Commit
96a6eaad
authored
Jun 14, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move vnc.js into include directory.
Also, allow 'include/' to be overridden in VNC_uri_prefix.
parent
2152a88f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
13 deletions
+15
-13
README.md
README.md
+1
-1
vnc.js
include/vnc.js
+12
-10
vnc.html
vnc.html
+1
-1
vnc_auto.html
vnc_auto.html
+1
-1
No files found.
README.md
View file @
96a6eaad
...
@@ -91,7 +91,7 @@ scripts and call their load() functions. For example:
...
@@ -91,7 +91,7 @@ scripts and call their load() functions. For example:
<body>
<body>
<div id='vnc'>Loading</div>
<div id='vnc'>Loading</div>
</body>
</body>
<script src='vnc.js'></script>
<script src='
include/
vnc.js'></script>
<script src="include/default_controls.js"></script>
<script src="include/default_controls.js"></script>
<script>
<script>
window.onload = function () {
window.onload = function () {
...
...
vnc.js
→
include/
vnc.js
View file @
96a6eaad
...
@@ -18,7 +18,9 @@ var VNC_native_ws, RFB;
...
@@ -18,7 +18,9 @@ var VNC_native_ws, RFB;
(
function
()
{
(
function
()
{
var
extra
,
start
,
end
;
var
extra
,
start
,
end
;
if
(
typeof
VNC_uri_prefix
===
"undefined"
)
{
VNC_uri_prefix
=
""
;
}
if
(
typeof
VNC_uri_prefix
===
"undefined"
)
{
VNC_uri_prefix
=
"include/"
;
}
extra
=
""
;
extra
=
""
;
start
=
"<script src='"
+
VNC_uri_prefix
;
start
=
"<script src='"
+
VNC_uri_prefix
;
end
=
"'><
\
/script>"
;
end
=
"'><
\
/script>"
;
...
@@ -27,20 +29,20 @@ var VNC_native_ws, RFB;
...
@@ -27,20 +29,20 @@ var VNC_native_ws, RFB;
//extra += start + "http://getfirebug.com/releases/lite/1.2/" +
//extra += start + "http://getfirebug.com/releases/lite/1.2/" +
// "firebug-lite-compressed.js" + end;
// "firebug-lite-compressed.js" + end;
extra
+=
start
+
"
include/
mootools.js"
+
end
;
extra
+=
start
+
"mootools.js"
+
end
;
extra
+=
start
+
"
include/
base64.js"
+
end
;
extra
+=
start
+
"base64.js"
+
end
;
extra
+=
start
+
"
include/
des.js"
+
end
;
extra
+=
start
+
"des.js"
+
end
;
extra
+=
start
+
"
include/
util.js"
+
end
;
extra
+=
start
+
"util.js"
+
end
;
extra
+=
start
+
"
include/
canvas.js"
+
end
;
extra
+=
start
+
"canvas.js"
+
end
;
/* If no builtin websockets then load web_socket.js */
/* If no builtin websockets then load web_socket.js */
if
(
window
.
WebSocket
)
{
if
(
window
.
WebSocket
)
{
VNC_native_ws
=
true
;
VNC_native_ws
=
true
;
}
else
{
}
else
{
VNC_native_ws
=
false
;
VNC_native_ws
=
false
;
extra
+=
start
+
"
include/
web-socket-js/swfobject.js"
+
end
;
extra
+=
start
+
"web-socket-js/swfobject.js"
+
end
;
extra
+=
start
+
"
include/
web-socket-js/FABridge.js"
+
end
;
extra
+=
start
+
"web-socket-js/FABridge.js"
+
end
;
extra
+=
start
+
"
include/
web-socket-js/web_socket.js"
+
end
;
extra
+=
start
+
"web-socket-js/web_socket.js"
+
end
;
}
}
document
.
write
(
extra
);
document
.
write
(
extra
);
}());
}());
...
@@ -117,7 +119,7 @@ load: function () {
...
@@ -117,7 +119,7 @@ load: function () {
"'file://' URL is incompatible with Adobe Flash"
);
"'file://' URL is incompatible with Adobe Flash"
);
}
else
{
}
else
{
WebSocket
.
__swfLocation
=
VNC_uri_prefix
+
WebSocket
.
__swfLocation
=
VNC_uri_prefix
+
"
include/
web-socket-js/WebSocketMain.swf"
;
"web-socket-js/WebSocketMain.swf"
;
WebSocket
.
__initialize
();
WebSocket
.
__initialize
();
RFB
.
use_seq
=
true
;
RFB
.
use_seq
=
true
;
RFB
.
updateState
(
'disconnected'
,
'Disconnected'
);
RFB
.
updateState
(
'disconnected'
,
'Disconnected'
);
...
...
vnc.html
View file @
96a6eaad
...
@@ -11,7 +11,7 @@ noVNC example: simple example using default controls
...
@@ -11,7 +11,7 @@ noVNC example: simple example using default controls
<div
id=
'vnc'
>
Loading
</div>
<div
id=
'vnc'
>
Loading
</div>
</body>
</body>
<script
src=
"vnc.js"
></script>
<script
src=
"
include/
vnc.js"
></script>
<script
src=
"include/default_controls.js"
></script>
<script
src=
"include/default_controls.js"
></script>
<script>
<script>
window
.
onload
=
function
()
{
window
.
onload
=
function
()
{
...
...
vnc_auto.html
View file @
96a6eaad
...
@@ -19,7 +19,7 @@ Connect parameters are provided in query string:
...
@@ -19,7 +19,7 @@ Connect parameters are provided in query string:
</div>
</div>
</body>
</body>
<script
src=
"vnc.js"
></script>
<script
src=
"
include/
vnc.js"
></script>
<script>
<script>
function
setPassword
()
{
function
setPassword
()
{
RFB
.
setPassword
(
$
(
'password_input'
).
value
);
RFB
.
setPassword
(
$
(
'password_input'
).
value
);
...
...
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