File tree 4 files changed +10
-8
lines changed
4 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -20,11 +20,11 @@ include(incs, () => {
20
20
window . webSockClient . onMessage = ( evt ) => {
21
21
switch ( evt . data . split ( '=' ) [ 0 ] ) {
22
22
case 'seq' :
23
- visGroup . handleSet ( evt . data . split ( '=' ) [ 1 ] ) ;
23
+ visGroup . handleSet ( evt . data . split ( '=' ) [ 1 ] , parseInt ( evt . data . split ( ':' ) [ 2 ] ) ) ;
24
24
break ;
25
25
case 'cel' :
26
26
27
- celebGroup . handleSet ( evt . data . split ( '=' ) [ 1 ] ) ;
27
+ celebGroup . handleSet ( evt . data . split ( '=' ) [ 1 ] , parseInt ( evt . data . split ( ':' ) [ 2 ] ) ) ;
28
28
break ;
29
29
default :
30
30
break ;
Original file line number Diff line number Diff line change 2
2
background-color : # 000000 ;
3
3
width : 100% ;
4
4
height : 100% ;
5
- /* cursor: none;*/
5
+ cursor : none;
6
6
-webkit-user-select : none;
7
7
--bar-height : 12vh ;
8
8
}
@@ -230,8 +230,8 @@ sli-der[orient='vert'] {
230
230
}
231
231
232
232
# thumbs > thumb-nail {
233
- width : 14 % ;
234
- height : 33 % ;
233
+ width : 12 % ;
234
+ height : 27 % ;
235
235
}
236
236
237
237
thumb-nail {
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ function wsClient() {
6
6
this . onMessage = function ( evt ) { } ;
7
7
8
8
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(':'));
10
10
if ( 'WebSocket' in window ) ws = new WebSocket ( 'ws://' + loc + ':8080/' ) ; //ws://echo.websocket.org is the default testing server
11
11
12
12
ws . onopen = function ( )
Original file line number Diff line number Diff line change @@ -68,7 +68,7 @@ var showGo = () => {
68
68
arduino . digitalWrite ( 4 , 1 ) ;
69
69
setTimeout ( ( ) => {
70
70
loopPractice ( ) ;
71
- } , 5000 ) ;
71
+ } , 10000 ) ;
72
72
} , 100 ) ;
73
73
} ;
74
74
@@ -104,6 +104,7 @@ var save = (dir) => {
104
104
cam . save ( dir , function ( ) {
105
105
//cam.stop();
106
106
console . log ( 'seq=' + 'sequences/temp' + ( dirNum - 1 ) ) ;
107
+ //var num = fs.readdirSync('sequences/temp' + (dirNum - 1)).length;
107
108
if ( webSock ) webSock . send ( 'seq=' + 'sequences/temp' + ( dirNum - 1 ) ) ;
108
109
console . log ( 'saved to ' + dir ) ;
109
110
cam . ready = true ;
@@ -324,11 +325,12 @@ function onOpen() {
324
325
var celFiles = readDir ( 'app/celeb_seq/' ) ;
325
326
if ( webSock ) {
326
327
for ( var i = 0 ; i < files . length ; i ++ ) {
327
- //console.log (files[i]);
328
+ //var num = fs.readdirSync (files[i]).length ;
328
329
webSock . send ( 'seq=' + files [ i ] . substring ( 4 ) ) ;
329
330
}
330
331
331
332
for ( var i = 0 ; i < celFiles . length ; i ++ ) {
333
+ //var num = fs.readdirSync(celFiles[i]).length;
332
334
webSock . send ( 'cel=' + celFiles [ i ] . substring ( 4 ) ) ;
333
335
}
334
336
}
You can’t perform that action at this time.
0 commit comments