Plugins

The plugins site is currently in development.

We've been looking to provide a higher-quality, spam-free experience at the plugins site for some time, and a major error on our part forced us to shut down the current site before we could put the new one in place. We are developing a new site, and you can follow along with its development on GitHub. For more information about this transition, including steps you can take as a plugin author to prepare, please read our post about what's going on.

jQuery.CssRule 1.1.9-2008


New method: $.tocssRule

  var cssRuleText = " \
    body { font-size: 16px; } \
    * html body { font-size: 100%; } \
    body * { font-size: 87.5%; font-family: Verdana, Helvetica, Arial, sans-serif; } \
    body * * { font-size: 100%; } \
    h1 { margin: 1em 0 1.5em; font-size: 18px; } \
    h2 { margin: 2em 0 1.5em; font-size: 16px; } \
    p { margin: 0; } \
    pre, pre+p, p+p { margin: 1em 0 0; } \
    code { font-family: \"Courier New\", Courier, monospace; } \
  ";
  $.tocssRule(cssRuleText);

Will apply the cssRuleText sintax to CSS style sheet of the page.