File tree Expand file tree Collapse file tree 4 files changed +10
-8
lines changed
Expand file tree Collapse file tree 4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ include(incs, () => {
2020 window . webSockClient . onMessage = ( evt ) => {
2121 switch ( evt . data . split ( '=' ) [ 0 ] ) {
2222 case 'seq' :
23- visGroup . handleSet ( evt . data . split ( '=' ) [ 1 ] ) ;
23+ visGroup . handleSet ( evt . data . split ( '=' ) [ 1 ] , parseInt ( evt . data . split ( ':' ) [ 2 ] ) ) ;
2424 break ;
2525 case 'cel' :
2626
27- celebGroup . handleSet ( evt . data . split ( '=' ) [ 1 ] ) ;
27+ celebGroup . handleSet ( evt . data . split ( '=' ) [ 1 ] , parseInt ( evt . data . split ( ':' ) [ 2 ] ) ) ;
2828 break ;
2929 default :
3030 break ;
Original file line number Diff line number Diff line change 22 background-color : # 000000 ;
33 width : 100% ;
44 height : 100% ;
5- /* cursor: none;*/
5+ cursor : none;
66 -webkit-user-select : none;
77 --bar-height : 12vh ;
88}
@@ -230,8 +230,8 @@ sli-der[orient='vert'] {
230230}
231231
232232# thumbs > thumb-nail {
233- width : 14 % ;
234- height : 33 % ;
233+ width : 12 % ;
234+ height : 27 % ;
235235}
236236
237237thumb-nail {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ function wsClient() {
66 this . onMessage = function ( evt ) { } ;
77
88 this . connect = function ( ) {
9- var loc = window . location . host . substring ( 0 , window . location . host . lastIndexOf ( ':' ) ) ;
9+ var loc = window . location . host ; // .substring(0, window.location.host.lastIndexOf(':'));
1010 if ( 'WebSocket' in window ) ws = new WebSocket ( 'ws://' + loc + ':8080/' ) ; //ws://echo.websocket.org is the default testing server
1111
1212 ws . onopen = function ( )
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ var showGo = () => {
6868 arduino . digitalWrite ( 4 , 1 ) ;
6969 setTimeout ( ( ) => {
7070 loopPractice ( ) ;
71- } , 5000 ) ;
71+ } , 10000 ) ;
7272 } , 100 ) ;
7373} ;
7474
@@ -104,6 +104,7 @@ var save = (dir) => {
104104 cam . save ( dir , function ( ) {
105105 //cam.stop();
106106 console . log ( 'seq=' + 'sequences/temp' + ( dirNum - 1 ) ) ;
107+ //var num = fs.readdirSync('sequences/temp' + (dirNum - 1)).length;
107108 if ( webSock ) webSock . send ( 'seq=' + 'sequences/temp' + ( dirNum - 1 ) ) ;
108109 console . log ( 'saved to ' + dir ) ;
109110 cam . ready = true ;
@@ -324,11 +325,12 @@ function onOpen() {
324325 var celFiles = readDir ( 'app/celeb_seq/' ) ;
325326 if ( webSock ) {
326327 for ( var i = 0 ; i < files . length ; i ++ ) {
327- //console.log (files[i]);
328+ //var num = fs.readdirSync (files[i]).length ;
328329 webSock . send ( 'seq=' + files [ i ] . substring ( 4 ) ) ;
329330 }
330331
331332 for ( var i = 0 ; i < celFiles . length ; i ++ ) {
333+ //var num = fs.readdirSync(celFiles[i]).length;
332334 webSock . send ( 'cel=' + celFiles [ i ] . substring ( 4 ) ) ;
333335 }
334336 }
You can’t perform that action at this time.
0 commit comments