Skip to content

Instantly share code, notes, and snippets.

@jassey
Created January 10, 2014 07:16
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 jassey/8348108 to your computer and use it in GitHub Desktop.
Save jassey/8348108 to your computer and use it in GitHub Desktop.
<a id="codeOut" href='javascript:(function(){$("a").each(function(){var self=$(this);var href=self.attr("href");if(href.indexOf("class.hujiang.com")!=-1){var color="red";if(href.indexOf("/course")!=-1){color="blue";}self.css("border-color",color);self.css("border-width","3px");self.css("border-style","solid");}});})();'>to class smart </a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment