mekwall / horunge.js

Prevent typographic orphans

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Horunge.js

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

About

Prevent typographic orphans


Languages

Language:JavaScript 100.0%