Skip to content
Prevent typographic orphans
JavaScript HTML
Find file
Latest commit e6cea22 @davidpaulsson Merge pull request #6 from irony/patch-1
use negative number in splice to remove trailing words
Failed to load latest commit information.
dist
src Merge pull request #6 from irony/patch-1
test
.gitignore
.travis.yml
Gruntfile.js
README.md
bower.json
horunge.gif
package.json

README.md

Horunge.js Build Status

Easily prevent typographic orphans.

Horunge is the Swedish equivalent for orphans when we’re talking typography. Supports CommonJS, AMD or browser globals.

Install

Bower

bower install jquery-horunge

Manual install

Download the production version or the development version.

Usage

In your web page:

<h1>This is a sample heading</h1>

<script src="jquery.js"></script>
<script src="bower_components/jquery-horunge/dist/jquery.horunge.min.js"></script>
<script>
$(function() {
  $('h1').horunge();
});
</script>

Options

$.horunge({
  words: 2 // number of words to always keep at new line. default "2"
});

List of releases List of contributors

Something went wrong with that request. Please try again.