Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
J
jumpserver
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
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ops
jumpserver
Commits
57e85aff
Commit
57e85aff
authored
9 years ago
by
ibuler
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #141 from jumpserver/termShake
fix: when moniter the terminal, fix the shake
parents
fcb3fd71
34b74b9e
No related merge requests found
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
log_online.html
templates/jlog/log_online.html
+2
-0
No files found.
templates/jlog/log_online.html
View file @
57e85aff
...
@@ -149,6 +149,7 @@
...
@@ -149,6 +149,7 @@
var
tag
=
$
(
'<div id="term" style="height:500px; overflow: auto;background-color: rgba(0, 0, 0, 0);border: none"></div>'
);
var
tag
=
$
(
'<div id="term" style="height:500px; overflow: auto;background-color: rgba(0, 0, 0, 0);border: none"></div>'
);
term
.
open
();
term
.
open
();
$
(
'.terminal'
).
hide
();
term
.
resize
(
80
,
24
);
term
.
resize
(
80
,
24
);
socket
.
onopen
=
function
(
evt
){
socket
.
onopen
=
function
(
evt
){
...
@@ -167,6 +168,7 @@
...
@@ -167,6 +168,7 @@
//服务器端认证
//服务器端认证
window
.
setTimeout
(
function
(){
window
.
setTimeout
(
function
(){
$
(
'.terminal'
).
detach
().
appendTo
(
'#term'
);
$
(
'.terminal'
).
detach
().
appendTo
(
'#term'
);
$
(
'.terminal'
).
show
();
socket
.
onmessage
=
function
(
evt
){
socket
.
onmessage
=
function
(
evt
){
term
.
write
(
evt
.
data
);
term
.
write
(
evt
.
data
);
}},
1000
);
}},
1000
);
...
...
This diff is collapsed.
Click to expand it.
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