User:DannyS712/SATG.js

//Written by Abelmoschus Esculentus

//Date: 12 January 2019

//Copied from [[User:Abelmoschus Esculentus/SATG.js]

//

function screen2(number) {

var source = ["placeholder"], ind = ["placeholder"], ind_just = ["placeholder"], rel = ["placeholder"], rel_just = ["placeholder"], sig = ["placeholder"], sig_just = ["placeholder"];

$('.SATG-source').each(function () {

source.push(this.value);

});

$('.SATG-selecti').each(function () {

ind.push(this.value);

});

$('.SATG-justi').each(function () {

ind_just.push(this.value);

});

$('.SATG-selectr').each(function () {

rel.push(this.value);

});

$('.SATG-justr').each(function () {

rel_just.push(this.value);

});

$('.SATG-selects').each(function () {

sig.push(this.value);

});

$('.SATG-justs').each(function () {

sig_just.push(this.value);

});

var output = "{{ source assess table |\n";

for (var i = 1; i <= number; i++) {

output += "{{ source assess\n";

output += "| source = " + source[i] + "\n";

output += "| ind = " + ind[i] + "\n";

output += "| ind_just = " + ind_just[i] + "\n";

output += "| rel = " + rel[i] + "\n";

output += "| rel_just = " + rel_just[i] + "\n";

output += "| sig = " + sig[i] + "\n";

output += "| sig_just = " + sig_just[i] + "\n";

output += "}}\n";

}

output += "}}";

$("#SATG-interface-content").css({

"min-height": "7em",

"width" : "875px",

"height" : "400px",

"overflow-y": "hidden"

});

$("#SATG-interface-content").empty();

$("#SATG-interface-content").text('Generating...');

$('.SATG-tip').remove();

$("#SATG-interface-content").empty();

$("#SATG-interface-content").append(

$('