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
14054c9d
Commit
14054c9d
authored
Sep 01, 2010
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Demo page and playback recording.
parent
d5a4c1a2
Changes
2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
660 additions
and
0 deletions
+660
-0
data_demo1.js
data_demo1.js
+573
-0
demo1.html
demo1.html
+87
-0
No files found.
data_demo1.js
0 → 100644
View file @
14054c9d
This diff is collapsed.
Click to expand it.
demo1.html
0 → 100644
View file @
14054c9d
<html>
<head>
<title>
noVNC Demo
</title>
<link
rel=
"stylesheet"
href=
"include/plain.css"
>
</head>
<body>
<input
id=
'startButton'
type=
'button'
value=
'Start'
style=
'width:100px'
onclick=
"start();"
disabled
>
<div
id=
"VNC_screen"
>
<div
id=
"VNC_status_bar"
class=
"VNC_status_bar"
style=
"margin-top: 0px;"
>
<table
border=
0
width=
100%
><tr>
<td><div
id=
"VNC_status"
>
Loading
</div></td>
</tr></table>
</div>
<canvas
id=
"VNC_canvas"
width=
"640px"
height=
"20px"
>
Canvas not supported.
</canvas>
</div>
</body>
<!--
<script type='text/javascript'
src='http://getfirebug.com/releases/lite/1.2/firebug-lite-compressed.js'></script>
-->
<script>
VNC_uri_prefix
=
"http://github.com/kanaka/noVNC/raw/HEAD/include/"
;
</script>
<script
src=
"http://github.com/kanaka/noVNC/raw/HEAD/include/vnc.js"
></script>
<script
src=
"http://github.com/kanaka/noVNC/raw/HEAD/tests/playback.js"
></script>
<script>
var
start_time
;
updateState
=
function
(
rfb
,
state
,
oldstate
,
msg
)
{
switch
(
state
)
{
case
'failed'
:
case
'fatal'
:
Util
.
Error
(
"noVNC sent '"
+
state
+
"' state during iteration "
+
iteration
);
test_state
=
'failed'
;
break
;
case
'loaded'
:
$
(
'startButton'
).
disabled
=
false
;
break
;
}
if
(
typeof
msg
!==
'undefined'
)
{
$
(
'VNC_status'
).
innerHTML
=
msg
;
}
}
function
start
()
{
$
(
'startButton'
).
value
=
"Running"
;
$
(
'startButton'
).
disabled
=
true
;
iterations
=
1
;
iteration
=
0
;
start_time
=
(
new
Date
()).
getTime
();
next_iteration
();
}
function
finish
()
{
// Finished with all iterations
var
total_time
,
end_time
=
(
new
Date
()).
getTime
();
total_time
=
end_time
-
start_time
;
iter_time
=
parseInt
(
total_time
/
iterations
,
10
);
Util
.
Info
(
iterations
+
" iterations took "
+
total_time
+
"ms, "
+
iter_time
+
"ms per iteration"
);
rfb
.
get_canvas
().
stop
();
// Shut-off event interception
$
(
'startButton'
).
disabled
=
false
;
$
(
'startButton'
).
value
=
"Start"
;
}
window
.
onload
=
function
()
{
mode
=
'realtime'
;
Util
.
Info
(
"VNC_frame_data.length: "
+
VNC_frame_data
.
length
);
rfb
=
RFB
({
'target'
:
'VNC_canvas'
,
'updateState'
:
updateState
});
rfb
.
testMode
(
send_array
);
}
</script>
</html>
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