Garrett Murphey

Ruby & JavaScript Development

jQuery Plugin: Best Ampersand

July 19, 2012

“Best Ampersand” is a simple jQuery plugin that adds ampersand classes for better ampersand fonts. Inspired by Dan Cederholm.

Getting Started

Download the production version or the development version.

In your web page:

<script src="jquery.js"></script>
<script src="dist/jquery.best-ampersand.min.js"></script>
<script>
jQuery(function($) {
  // finds and surrounds all ampersands in all <h2>s
  $('h2').bestAmpersand();
});
</script>

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Also, please don’t edit files in the “dist” subdirectory as they are generated via grunt. You’ll find source code in the “src” subdirectory!

Release History

  • 0.1.0: Initial release.

Other Recent Posts