File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ body , html {
2+ height : 100% ;
3+ position : fixed;
4+ top : 0 ;
5+ bottom : 0 ;
6+ left : 0 ;
7+ right : 0 ;
8+ }
9+
10+ .log-panel {
11+ height : 100% ;
12+ overflow : scroll;
13+ }
14+
15+ .sidetab-column {
16+ height : 100% ;
17+ padding : 0 ;
18+ position : static;
19+ }
20+
21+ .panel-column {
22+ height : 100% ;
23+ position : static;
24+ padding : 0 ;
25+ width : 70% ;
26+ padding : 10px ;
27+ }
28+
29+ .tab-content , .tab-pane {
30+ height : 100% ;
31+ }
32+
33+ .inspector-json {
34+ padding : 0 ;
35+ }
Original file line number Diff line number Diff line change 1010 < link href ="../bower_components/Inspector-JSON/inspector-json.css " media ="all " rel ="stylesheet " type ="text/css ">
1111 < link href ="../bower_components/bootstrap/dist/css/bootstrap.min.css " media ="all " rel ="stylesheet " type ="text/css ">
1212 < link href ="../bower_components/bootstrap-vertical-tabs/bootstrap.vertical-tabs.min.css " media ="all " rel ="stylesheet " type ="text/css ">
13+ < link href ="devpanel.css " media ="all " rel ="stylesheet " type ="text/css ">
1314</ head >
1415< body >
15- < div class ="col-xs-3 ">
16+ < div class ="sidetab-column col-xs-3 ">
1617 < ul class ="nav nav-tabs tabs-left ">
1718 < li > < a href ="#context " data-toggle ="tab "> Context</ a > </ li >
1819 < li > < a href ="#logs " data-toggle ="tab "> Logs</ a > </ li >
1920 < li > < a href ="#info " data-toggle ="tab "> Info</ a > </ li >
2021 </ ul >
2122 </ div >
22- < div class ="col-xs-9 ">
23+ < div class ="panel-column col-xs-9 ">
2324 < div class ="tab-content ">
2425 < div class ="tab-pane active " id ="context ">
2526 < div id ="pagecontext "> </ div >
2627 </ div >
2728 < div class ="tab-pane " id ="logs ">
28- < pre id ="serverlogs "> </ pre >
29+ < pre id ="serverlogs " class =" log-panel " > </ pre >
2930 </ div >
3031 < div class ="tab-pane " id ="info ">
31- < div id ="messageholder "> </ div >
32+ < div id ="messageholder " class =" alert alert-info " role =" alert " > </ div >
3233 </ div >
3334 </ div >
3435 </ div >
Original file line number Diff line number Diff line change @@ -42,7 +42,9 @@ function displayMessage(msg) {
4242var socket = io ( 'http://localhost:8081' ) ;
4343socket . on ( 'connect' , function ( ) {
4444 socket . on ( 'log' , function ( data ) {
45- document . querySelector ( '#serverlogs' ) . innerHTML += data . message + '\n' ;
45+ var logContainer = document . querySelector ( '#serverlogs' ) ;
46+ logContainer . innerHTML += data . message + '\n' ;
47+ logContainer . scrollTop = logContainer . scrollHeight ;
4648 } ) ;
4749 socket . on ( 'disconnect' , function ( ) {
4850 document . querySelector ( '#serverlogs' ) . innerHTML = 'Socket Disconnected' ;
You can’t perform that action at this time.
0 commit comments