Skip to content
/ ponyfy Public

Generate Some Pony Text based on PonyIpsum.com.

License

Notifications You must be signed in to change notification settings

Oyana/ponyfy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Ponyfy

Generate Some Pony Text based on PonyIpsum.com.

Usage

Include jQuery 1.12 or higher:

<script
    src="https://code.jquery.com/jquery-3.1.1.slim.min.js"
    integrity="sha256-/SIrNqv8h6QGKDuNoLGA4iret+kyesCkHGzVUUV0shc="
    crossorigin="anonymous"></script>

Include ponyfy.min.js:

<script src="/js/ponyfy.js"></script>

<script>
    $(document).ready(function(){
        $(".ipsum").ponyfy();
    });
</script>

In your html:

<div class="ipsum"></div>
  • data-ipsumnumber: (int value, default:1) number of paragraph
  • data-ipsumstart: (bool value, default:1) first paragraph should start with 'Pony ipsum dolor sit amet'.
  • data-ipsumtype: (string value, default:pony-and-filler) all-pony for pony only or pony-and-filler for pony mixed with miscellaneous 'lorem ipsum' filler.

Exemple

<div class="ipsum"></div> //basic
<div class="ipsum" data-ipsumnumber="10"></div> // load 10 paragraph
<div class="ipsum" data-ipsumstart="0"></div> // remove "Pony ipsum dolor sit amet"
<div class="ipsum" data-ipsumtype="all-pony"></div> // all-pony for pony only or pony-and-filler for pony mixed with miscellaneous 'lorem ipsum' filler.

Releases

No releases published

Packages

No packages published