@@ -44,7 +44,7 @@ var inputVocabLabel = document.getElementById('inputVocabLabel');
44
44
var uploadVocab = document . getElementById ( 'uploadVocab' ) ;
45
45
46
46
//Global variables
47
- const element = document . getElementById ( 'tables' ) ;
47
+ const tableElement = document . getElementById ( 'tables' ) ;
48
48
const numberOfResources = 10 ;
49
49
const resourcePath = '/res/test_set' ;
50
50
const resourceType = '.json' ;
@@ -241,7 +241,6 @@ function getContentDebiasing() {
241
241
content [ 'A1' ] = document . getElementById ( 'attribute1' ) . value ;
242
242
content [ 'A2' ] = document . getElementById ( 'attribute2' ) . value ;
243
243
if ( augmentSwitch . checked ) {
244
- console . log ( 'TRUE I am here' ) ;
245
244
content [ 'Augmentations1' ] = document . getElementById ( 'augmentations1' ) . value ;
246
245
content [ 'Augmentations2' ] = document . getElementById ( 'augmentations2' ) . value ;
247
246
}
@@ -409,6 +408,7 @@ function handleFileDelete() {
409
408
410
409
//Load WEAT Test Bias Specifications
411
410
async function loadTestData ( ) {
411
+ var tableHTML = "" ;
412
412
for ( i = 1 ; i <= numberOfResources ; i ++ ) {
413
413
var filePath = resourcePath + i + resourceType ;
414
414
var tableName = 'table' + i ;
@@ -466,10 +466,11 @@ async function loadTestData() {
466
466
</div>
467
467
</div>
468
468
` ;
469
- element . innerHTML += output ;
470
-
469
+
470
+ tableHTML += output ;
471
471
} )
472
472
}
473
+ tableElement . innerHTML = tableHTML ;
473
474
}
474
475
475
476
//Copy WEAT Test to extra container for evaluation
0 commit comments