Commit 1e1aa67b authored by ibuler's avatar ibuler

change(font) 修改使用websocket的页面字体,增加监控size

增加 "Microsoft Yahei"
parent 3dfd9cd5
...@@ -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;
} }
......
...@@ -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: 24, rows: 28,
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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment