diff options
Diffstat (limited to 'tests/make_png/html/script.js')
-rw-r--r-- | tests/make_png/html/script.js | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/tests/make_png/html/script.js b/tests/make_png/html/script.js deleted file mode 100644 index 274538fbb..000000000 --- a/tests/make_png/html/script.js +++ /dev/null @@ -1,22 +0,0 @@ -var people, asc1 = 1,asc2 = 1,asc3 = 1; - -function sort_t(tbody, col, asc){ - var rows = tbody.rows, rlen = rows.length, arr = new Array(), i, j, cells, clen; - // fill the array with values from the table - for(i = 0; i < rlen; i++){ - cells = rows[i].cells; - clen = cells.length; - arr[i] = new Array(); - for(j = 0; j < clen; j++){ - arr[i][j] = cells[j].innerHTML; - } - } - // sort the array by the specified column number (col) and order (asc) - arr.sort(function(a, b){ - return (a[col] == b[col]) ? 0 : ((a[col] > b[col]) ? asc : -1*asc); - }); - for(i = 0; i < rlen; i++){ - arr[i] = "<td>"+arr[i].join("</td><td>")+"</td>"; - } - tbody.innerHTML = "<tr>"+arr.join("</tr><tr>")+"</tr>"; -} |