troyericg / cat-a-pult

A frictionless way of using placekitten.com in your developing web projects.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cat-a-pult

Because inserting cat pictures into your projects should be easy.

cat-a-pult is a frictionless way of insert placeholder images into your projects as you are designing and testing them. Specifically pictures of cats. MORE specifically, pictures of cats from the wonderfull placekitten.com.

Usage

Download the minified cat-a-pult file and include it in your webpage (for now, be sure you have JQuery loaded as well.)

<script src="js/cat-a-pult.min.js"></script>

From there, any div with a class that begins with the word "cat" is automatically filled with an image element that uses the div's declared height and width as parameters for a placekitten URL that returns a cat photo to fill your element.

Cats. All the time. It's that simple.

About

A frictionless way of using placekitten.com in your developing web projects.


Languages

Language:JavaScript 100.0%