File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -127,6 +127,7 @@ var prevExecutionExceptionObjLst = [];
127127// OPTIONAL for Codeopticon - not all frontends use these:
128128var codeopticonSocketIO = undefined ; // socket.io instance
129129var codeopticonSession = undefined ;
130+ //var codeopticonSession = 'CODEOPTICON_TESTING'; // to turn all monitoring on
130131
131132// From http://stackoverflow.com/a/8809472
132133function generateUUID ( ) {
Original file line number Diff line number Diff line change @@ -638,15 +638,17 @@ function initCodeopticon() {
638638 return ;
639639 }
640640
641- // hide header elements
642- $ ( "#ssDiv,#surveyHeader,#sharedSessionDisplayDiv" ) . hide ( ) ;
643- $ ( "#togetherjsStatus" ) . css ( "font-size" , "8pt" ) ;
644- $ ( "#togetherjsStatus" ) . html ( "Codeopticon session " + codeopticonSession ) ;
641+ // hide header elements only if we're not doing CODEOPTICON_TESTING
642+ if ( codeopticonSession !== 'CODEOPTICON_TESTING' ) {
643+ $ ( "#ssDiv,#surveyHeader,#sharedSessionDisplayDiv" ) . hide ( ) ;
644+ $ ( "#togetherjsStatus" ) . css ( "font-size" , "8pt" ) ;
645+ $ ( "#togetherjsStatus" ) . html ( "Codeopticon session " + codeopticonSession ) ;
646+ }
645647
646648 // connect on-demand in logEventCodeopticon(), not here
647- // codeopticonSocketIO = io('http://104.237.139.253:5000/userlog'); // PRODUCTION_PORT
649+ codeopticonSocketIO = io ( 'http://104.237.139.253:5000/userlog' ) ; // PRODUCTION_PORT
648650 //codeopticonSocketIO = io('http://104.237.139.253:5001/userlog'); // DEBUG_PORT
649- codeopticonSocketIO = io ( 'http://localhost:5000/userlog' ) ; // localhost debugging
651+ // codeopticonSocketIO = io('http://localhost:5000/userlog'); // localhost debugging
650652
651653 if ( codeopticonSocketIO ) {
652654 codeopticonSocketIO . on ( 'connect' , function ( ) {
You can’t perform that action at this time.
0 commit comments