User:Red-tailed hawk/SATG CORP.js

//Written by Abelmoschus Esculentus and DannyS712, modified by Red-tailed hawk

//Date: 25 September 2022

//Modified from User:DannyS712/SATG.js

//Available under CC-BY-SA 3.0 Unported license and the GFDL

//

function screen3(number) {

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

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

source.push(this.value);

});

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

ind.push(this.value);

});

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

ind_just.push(this.value);

});

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

rel.push(this.value);

});

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

rel_just.push(this.value);

});

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

sig.push(this.value);

});

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

sig_just.push(this.value);

});

$('.SATG_CORP-select2').each(function () {

sec.push(this.value);

});

$('.SATG_CORP-just2').each(function () {

sec_just.push(this.value);

});

var outstring = "{{ORGCRIT assess table |\n";

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

outstring += "{{ ORGCRIT assess\n";

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

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

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

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

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

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

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

outstring += "| sec = " + sec[i] + "\n";

outstring += "| sec_just = " + sec_just[i] + "\n";

outstring += "}}\n";

}

outstring += "}}";

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

"min-height": "7em",

"width" : "875px",

"height" : "400px",

"overflow-y": "hidden"

});

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

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

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

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

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

$('