File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -327,24 +327,12 @@ div#ticker {
327327 display : none;
328328}
329329
330- .solari_grid {
331- width : 1070px ;
332- }
333330.column {
334331 margin-left : auto;
335332 margin-right : auto;
336333 overflow : hidden;
337334 display : block;
338335}
339- .row {
340- width : 970px ;
341- margin : 0 auto;
342- overflow : hidden;
343- }
344- .row .row {
345- margin : 0 -5px ;
346- width : auto;
347- }
348336
349337/* CSS for the clock */
350338.clockContainer {
Original file line number Diff line number Diff line change 2929 </ script >
3030</ head >
3131< body >
32- < div class ="row ">
33- < div id ="solariBoardDiv "> </ div >
34- </ div >
3532</ body >
3633</ html >
Original file line number Diff line number Diff line change @@ -318,17 +318,14 @@ function GetFailBoard() {
318318}
319319
320320function updateSolariBoard ( ) {
321- dataSync = true ;
322321 $ . post ( '../example/postJson.py' , //replace this with your own script
323322 function ( data ) {
324323 if ( data !== null ) {
325- solariData = data . slice ( 0 ) ;
324+ solariData = data [ 'solariBoard' ] . slice ( 0 ) ;
326325 failboard = false ;
327- dataSync = false ;
328326 }
329327 } , "json" ) . fail ( function ( ) {
330328 failboard = true ;
331- dataSync = false ;
332329 } ) ;
333330
334331 // update last refresh time text
@@ -371,7 +368,7 @@ function updateSolariBoard() {
371368 if ( status_override ) {
372369 if ( time ) {
373370 var hrsDelta = Number ( time . substring ( 0 , 2 ) ) - new Date ( ) . getHours ( ) ;
374- nOffset += hrsDelta < 0 ? - 1 : 0 ; // if the time difference is negative, which means we are within 24 hours of due, so reduce day offset by 1
371+ nOffset += timeDelta < 0 ? - 1 : 0 ; // if the time difference is negative, which means we are within 24 hours of due, so reduce day offset by 1
375372 if ( nOffset < 0 ) {
376373 new_board [ 0 ] . nStatus = 3 ; // if we've past the due date
377374 } else if ( nOffset === 0 && hrsDelta < 2 && hrsDelta >= 0 ) {
You can’t perform that action at this time.
0 commit comments