Differences

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

finite_algebras [2010/08/18 10:39]
jipsen
finite_algebras [2010/08/18 11:30] (current)
jipsen
Line 1: Line 1:
=====Small nonisomorphic semigroups===== =====Small nonisomorphic semigroups=====
<html> <html>
 +<style>
 +td {padding-left:3px;padding-right:3px;}
 +th {background-color:#f0f0f0;font-weight:normal;padding-left:3px;padding-right:3px;}
 +table {border-collapse:collapse;line-height:80%;}
 +</style>
Format as <select id="format" onchange="update()"> Format as <select id="format" onchange="update()">
<option value="table" selected>Table</option> <option value="table" selected>Table</option>
Line 25: Line 30:
  st = st+"</div> &nbsp;"; num++;   st = st+"</div> &nbsp;"; num++;
 }else if (format=="table"){  }else if (format=="table"){
-  var st="<table style=\"display:inline-block;border: 1px darkgray solid;\"><tr><td colspan=\"0\"><sup>"+num+"</sup>"+"<b>S</b><sub>"+a.length+","+k+"</sub></td></tr><tr>"; +  var st="<table style=\"display:inline-block;border: 1px darkgray solid;\"><tr><td colspan=\""+(a.length+1)+"\"><sup>"+num+"</sup>"+"<b>S</b><sub>"+a.length+","+k+"</sub></td></tr><tr><th>&middot</th>"; 
-  for (var i=0; i<a.length; i++) st+="<td>"+i+"</td>"; +  for (var i=0; i<a.length; i++) st += "<th>"+i+"</th>"; 
-  st+="</tr>";+  st += "</tr>";
  for (var i=0; i<a.length; i++) {   for (var i=0; i<a.length; i++) {
-    st = st+"<tr>";+    st += "<tr><th>"+i+"</th>";
    for (var j=0; j<a.length; j++)     for (var j=0; j<a.length; j++)
        st = st+"<td>"+a[i][j]+"</td>";         st = st+"<td>"+a[i][j]+"</td>";