Skip to content

Commit

Permalink
bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Dec 21, 2011
1 parent ae48368 commit 257a1a6
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions result.html
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
currentSite = val['site']['value']; currentSite = val['site']['value'];
// if array doesn't exist yet, create it // if array doesn't exist yet, create it
storage[amountOfPages+1] = ( typeof storage[amountOfPages+1] != 'undefined' && storage[amountOfPages+1] instanceof Array ) ? storage[amountOfPages+1] : []; storage[amountOfPages+1] = ( typeof storage[amountOfPages+1] != 'undefined' && storage[amountOfPages+1] instanceof Array ) ? storage[amountOfPages+1] : [];
storage[amountOfPages+1][0]='<a href="wecompare.html?s='+val['site']['value']+' ">' +val['site']['value']+ ' </a>'; storage[amountOfPages+1][0]='<a href="wecompare.html?s='+val['site']['value']+'">' +val['site']['value']+ ' </a>';
amountOfPages=amountOfPages+1; amountOfPages=amountOfPages+1;
tempAmountOfValues=0; tempAmountOfValues=0;
}; };
Expand All @@ -63,24 +63,25 @@
}); });


// print the arrays in a table // print the arrays in a table
items.push('<table id="tblResult" name="grid1" gridWidth="100%" gridHeight="auto" style="width:80%;" imgpath="codebase/imgs/" border="1" lightnavigation="true"> <tr> '); items.push('<table id="tblResult" name="grid1" gridWidth="100%" gridHeight="auto" style="width:80%;" imgpath="codebase/imgs/" border="1" lightnavigation="true">');
var temp=0; var temp=0;
var depth=0; var depth=0;
while (depth < storage.length) { while (depth < storage.length) {
while (temp < storage[0].length) { items.push('<tr> ');
while (temp < storage[0].length) {
if(typeof storage[depth][temp] == 'undefined') { if(typeof storage[depth][temp] == 'undefined') {
items.push('<td></td> '); items.push('<td></td> ');
} }
else { else {
items.push('<td> '+storage[depth][temp]+' </td>'); items.push('<td> '+storage[depth][temp]+' </td>');
} }
++temp; ++temp;
} }
items.push('</tr> <tr>'); items.push('</tr> ');
++depth; ++depth;
temp=0; temp=0;
} }
items.push('</tr></table>'); items.push('</table>');
tempAmountOfValues=0; tempAmountOfValues=0;
items.push('<small> '+(storage[0].length-1)+' attributes on '+(storage.length-1)+' pages </small>'); items.push('<small> '+(storage[0].length-1)+' attributes on '+(storage.length-1)+' pages </small>');


Expand Down

0 comments on commit 257a1a6

Please sign in to comment.