# Differences

This shows you the differences between two versions of the page.

finite_groupoids [2010/08/20 10:32]
jipsen created
finite_groupoids [2010/08/20 10:44] (current)
jipsen
Line 23: Line 23:
function algebraToString(a,k,n) { function algebraToString(a,k,n) {
if (format=="html"){  if (format=="html"){
-  var st="<div style=\"display:inline-block;border: 1px darkgray solid;\"><sup>"+n+"</sup>"+"<b>S</b><sub>"+a.length+","+k+"</sub><br>";+  var st="<div style=\"display:inline-block;border: 1px darkgray solid;\"><sup>"+n+"</sup>"+"<b>"+classname.slice(0,1)+"</b><sub>"+a.length+","+k+"</sub><br>";
for (var i=0; i<a.length; i++) {   for (var i=0; i<a.length; i++) {
for (var j=0; j<a.length; j++) st = st+a[i][j]+(j==a.length-1?"":" &nbsp; ");     for (var j=0; j<a.length; j++) st = st+a[i][j]+(j==a.length-1?"":" &nbsp; ");
Line 30: Line 30:
st = st+"</div> &nbsp;";   st = st+"</div> &nbsp;";
}else if (format=="table"){  }else if (format=="table"){
-  var st="<table style=\"display:inline-block;border: 1px darkgray solid;\"><tr><td colspan=\""+(a.length+1)+"\"><sup>"+n+"</sup>"+"<b>S</b><sub>"+a.length+","+k+"</sub></td></tr><tr><th>&middot</th>";+  var st="<table style=\"display:inline-block;border: 1px darkgray solid;\"><tr><td colspan=\""+(a.length+1)+"\"><sup>"+n+"</sup>"+"<b>"+classname.slice(0,1)+"</b><sub>"+a.length+","+k+"</sub></td></tr><tr><th>&middot</th>";
for (var i=0; i<a.length; i++) st += "<th>"+i+"</th>";   for (var i=0; i<a.length; i++) st += "<th>"+i+"</th>";
st += "</tr>";   st += "</tr>";