|
it's not all javascript...
looks like it's looping through each cell in a table, trying to match the cell's contents with one of the regular expressions defined at the top of the routine. if a match is found, a corresponding string value ('rar' or 'par' or 'ace' or 'zip') is inserted into an array. after looping through all the cells, the array's contents are sorted, written into HTML buttons, and then set as the innerHTML of a form element.
output probably looks something like this (the bracketed items represent buttons) ...
inverse by type:
[ ace ]
[ par ]
[ rar ]
[ zip ]
|