Skip to content

Instantly share code, notes, and snippets.

@diafour
Created April 16, 2019 10:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diafour/4ece0ee1157615bde5ed351e2e09a17d to your computer and use it in GitHub Desktop.
Save diafour/4ece0ee1157615bde5ed351e2e09a17d to your computer and use it in GitHub Desktop.
tda2000.ru highlight M positions
(function() { var countM = 0; var countRows = $("table.catalog-item-list tr").each(function() { var t = $(this).find("td.catalog-item-nal div.catalog-item-nal-yes span b").text(); if (t == 'М') { $(this).css('background-color','pink'); countM++; } ; if (t!='М') {$(this).css('visibility', 'collapse')} } ).length; return {'M':countM, 'All':countRows}; })()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment