Commit 4ef05dd8 authored by Romain Loth's avatar Romain Loth

split main in two modular functions

(it was the original design in the 2014 versions and it provides more flexibility like future calling mainStartGraph from a fileinput instead of a remote file (see next commit))
parent a949c5d2
......@@ -652,7 +652,7 @@ TinaWebJS = function ( sigmacanvas ) {
var SelInst = new SelectionEngine();
document.getElementById('edges-switch').checked = customSettings.drawEdges
document.getElementById('edges-switch').checked = TW.customSettings.drawEdges
$("#semLoader").hide();
......
This diff is collapsed.
......@@ -175,12 +175,12 @@ function scanGexf(gexfContent) {
let elsNodes = gexfContent.getElementsByTagName('nodes');
// console.debug('>>> tr: elsNodes', elsNodes) // <<<
for(i=0; i<elsNodes.length; i++){
for(var i=0; i<elsNodes.length; i++){
var elNodes = elsNodes[i]; // Each xml node 'nodes' (plural)
let node = elNodes.getElementsByTagName('node');
for(j=0; j<node.length; j++){
for(var j=0; j<node.length; j++){
let attvalueNodes = node[j].getElementsByTagName('attvalue');
for(k=0; k<attvalueNodes.length; k++){
for(var k=0; k<attvalueNodes.length; k++){
let attvalueNode = attvalueNodes[k];
let attr = attvalueNode.getAttribute('for');
let val = attvalueNode.getAttribute('value');
......@@ -1014,7 +1014,7 @@ function makeSystemStates (cats) {
let bin_array = [];
let toadd = cats.length-bin_splitted.length;
for (k = 0; k < toadd; k++)
for (var k = 0; k < toadd; k++)
bin_array.push("0")
for(var j in bin)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment