Skip to content

Instantly share code, notes, and snippets.

@caseybecking
Last active December 27, 2015 13:09
Show Gist options
  • Save caseybecking/7331508 to your computer and use it in GitHub Desktop.
Save caseybecking/7331508 to your computer and use it in GitHub Desktop.

Revisions

  1. caseybecking revised this gist Nov 6, 2013. 1 changed file with 0 additions and 1 deletion.
    1 change: 0 additions & 1 deletion gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,6 @@ document.write('<table border="1" cellspacing="1" cellpadding="5">');
    document.write('<td><b>' + (tableRows * tableColumns) + '</b></td>');
    }else if (tableColumns === 1 ){
    document.write('<td><b>' + (tableRows * tableColumns) + '</b></td>');

    }else{
    document.write('<td>' + (tableRows * tableColumns) + '</td>');
    }
  2. caseybecking revised this gist Nov 6, 2013. 1 changed file with 1 addition and 2 deletions.
    3 changes: 1 addition & 2 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -10,9 +10,8 @@ document.write('<table border="1" cellspacing="1" cellpadding="5">');
    document.write('<td><b>' + (tableRows * tableColumns) + '</b></td>');

    }else{
    document.write('<td>' + (tableRows * tableColumns) + '</td>');
    document.write('<td>' + (tableRows * tableColumns) + '</td>');
    }

    }
    document.write('</tr>');
    }
  3. caseybecking created this gist Nov 6, 2013.
    19 changes: 19 additions & 0 deletions gistfile1.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    <script type="text/javascript">
    document.write('<table border="1" cellspacing="1" cellpadding="5">');

    for(tableRows = 1; tableRows < 13; tableRows++){
    document.write('<tr>');
    for (tableColumns = 1; tableColumns < 13; tableColumns++){
    if (tableRows === 1) {
    document.write('<td><b>' + (tableRows * tableColumns) + '</b></td>');
    }else if (tableColumns === 1 ){
    document.write('<td><b>' + (tableRows * tableColumns) + '</b></td>');

    }else{
    document.write('<td>' + (tableRows * tableColumns) + '</td>');
    }

    }
    document.write('</tr>');
    }
    </script>