From 19c7696e47a02d6e5db37c6904e58e1a6e4c64fe Mon Sep 17 00:00:00 2001 From: Tony Ford <tonyford@strategy-investor.de> Date: Sun, 15 Sep 2024 15:37:19 +0200 Subject: [PATCH] bugfix --- html/assets/js/script.js | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/html/assets/js/script.js b/html/assets/js/script.js index 877c08e..7e36363 100644 --- a/html/assets/js/script.js +++ b/html/assets/js/script.js @@ -57,7 +57,7 @@ function calculatePartien(saison,date){ STARTLISTE.forEach( function(w,g){ for( var i = 0; i < FINALTEAMS / STARTLISTE.length; i++ ){ - Tabelle.push( + Tabelle.push( [ { 'kontinent' : 'dummy', 'nt': 'xx', @@ -66,7 +66,7 @@ function calculatePartien(saison,date){ 'manager': 'dummy', 'start': 27 } - ); + , undefined ]); } } ); @@ -77,7 +77,7 @@ function calculatePartien(saison,date){ var Tabelle = []; [1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16].forEach( function(i){ - Tabelle.push( + Tabelle.push( [ { 'kontinent' : 'dummy', 'nt': 'xx', @@ -86,7 +86,7 @@ function calculatePartien(saison,date){ 'manager': 'dummy', 'start': 27 } - ); + , undefined ] ); } ); } @@ -120,7 +120,7 @@ function calculatePartien(saison,date){ STARTLISTE.forEach( function(w,g){ for( var i = 0; i < FINALTEAMS / STARTLISTE.length; i++ ){ - Tabelle.push( + Tabelle.push( [ { 'kontinent' : 'dummy', 'nt': 'xx', @@ -129,7 +129,7 @@ function calculatePartien(saison,date){ 'manager': 'dummy', 'start': 27 } - ); + ,undefined ]); } } ); @@ -141,7 +141,7 @@ function calculatePartien(saison,date){ var Tabelle = []; [1,2,3,4,5,6,7,8].forEach( function(i){ - Tabelle.push( + Tabelle.push([ { 'kontinent' : 'dummy', 'nt': 'xx', @@ -150,7 +150,7 @@ function calculatePartien(saison,date){ 'manager': 'dummy', 'start': 27 } - ); + ,undefined ] ); } ); } @@ -184,7 +184,7 @@ function calculatePartien(saison,date){ STARTLISTE.forEach( function(w,g){ for( var i = 0; i < FINALTEAMS / STARTLISTE.length; i++ ){ - Tabelle.push( + Tabelle.push([ { 'kontinent' : 'dummy', 'nt': 'xx', @@ -193,7 +193,7 @@ function calculatePartien(saison,date){ 'manager': 'dummy', 'start': 27 } - ); + ,undefined ]); } } ); @@ -204,7 +204,7 @@ function calculatePartien(saison,date){ var Tabelle = []; [1,2].forEach( function(i){ - Tabelle.push( + Tabelle.push([ { 'kontinent' : 'dummy', 'nt': 'xx', @@ -213,7 +213,7 @@ function calculatePartien(saison,date){ 'manager': 'dummy', 'start': 27 } - ); + ,undefined ]); } ); } @@ -302,6 +302,7 @@ function grpPartien( date,steps,saison,runde,spieltag,Bg ){ } } + console.log( v[h1] ); var tr = _e('tr'); tr.classList = 'begegnungen ' + (( STARTLISTE.length > 1 ) ? 'gruppe' + i : '' ) + ' h_'+v[h1][0].nt+' a_'+v[a1][0].nt+' '+(( st ) ? 'stats' : ''); var td = _e('td'); -- GitLab