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
3ca66291
Commit
3ca66291
authored
Mar 26, 2016
by
ibuler
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #166 from jumpserver/font_size
change(font) 修改使用websocket的页面字体,增加监控size
parents
3dfd9cd5
1e1aa67b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
6 deletions
+6
-6
exec_cmd.html
templates/exec_cmd.html
+1
-1
log_online.html
templates/jlog/log_online.html
+5
-5
No files found.
templates/exec_cmd.html
View file @
3ca66291
...
@@ -82,7 +82,7 @@
...
@@ -82,7 +82,7 @@
<style
type=
"text/css"
>
<style
type=
"text/css"
>
*
{
*
{
font-family
:
"Monaco"
,
"DejaVu Sans Mono"
,
"Liberation Mono"
,
monospace
;
font-family
:
"Monaco"
,
"
Microsoft Yahei"
,
"
DejaVu Sans Mono"
,
"Liberation Mono"
,
monospace
;
font-size
:
11px
;
font-size
:
11px
;
}
}
...
...
templates/jlog/log_online.html
View file @
3ca66291
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<style>
<style>
.terminal
{
.terminal
{
border
:
#000
solid
5px
;
border
:
#000
solid
5px
;
font-family
:
"Monaco"
,
"DejaVu Sans Mono"
,
"Liberation Mono"
,
monospace
;
font-family
:
"Monaco"
,
"
Microsoft Yahei"
,
"
DejaVu Sans Mono"
,
"Liberation Mono"
,
monospace
;
font-size
:
11px
;
font-size
:
11px
;
color
:
#f0f0f0
;
color
:
#f0f0f0
;
background
:
rgba
(
0
,
0
,
0
,
0.6
);
background
:
rgba
(
0
,
0
,
0
,
0.6
);
...
@@ -141,8 +141,8 @@
...
@@ -141,8 +141,8 @@
var
socket
=
new
WebSocket
(
endpoint
+
'?file_path='
+
file_path
);
var
socket
=
new
WebSocket
(
endpoint
+
'?file_path='
+
file_path
);
var
term
=
new
Terminal
({
var
term
=
new
Terminal
({
cols
:
80
,
cols
:
98
,
rows
:
2
4
,
rows
:
2
8
,
screenKeys
:
false
,
screenKeys
:
false
,
handler
:
function
(){
return
false
}
handler
:
function
(){
return
false
}
});
});
...
@@ -150,7 +150,7 @@
...
@@ -150,7 +150,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
();
$
(
'.terminal'
).
hide
();
term
.
resize
(
80
,
24
);
term
.
resize
(
98
,
28
);
socket
.
onopen
=
function
(
evt
){
socket
.
onopen
=
function
(
evt
){
socket
.
send
(
'hello'
);
socket
.
send
(
'hello'
);
...
@@ -170,7 +170,7 @@
...
@@ -170,7 +170,7 @@
$
(
'.terminal'
).
detach
().
appendTo
(
'#term'
);
$
(
'.terminal'
).
detach
().
appendTo
(
'#term'
);
$
(
'.terminal'
).
show
();
$
(
'.terminal'
).
show
();
socket
.
onmessage
=
function
(
evt
){
socket
.
onmessage
=
function
(
evt
){
term
.
write
(
evt
.
data
);
term
.
write
(
evt
.
data
);
}},
1000
);
}},
1000
);
return
tag
[
0
];
return
tag
[
0
];
...
...
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