1.0.1 • Published 9 years ago

jquery-parteh v1.0.1

Weekly downloads
2
License
MIT
Repository
github
Last release
9 years ago

jQuery.parteh()

This extension is totally silly, but you might enjoy it anyhow! What it does: It gives every element on your page a random background and color.

This leads to some interesting results!

Installation

Just grab the package from npm! The package gets saved into your local node_modules folder.

npm install jquery-parteh

Usage

First include jQuery and the script, then call the parteh utility function. Like so:

<!DOCTYPE html>
<html>
	<head>
		<title>WTF Am I Doing?</title>

		<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
		<script src="node_modules/jquery-parteh/jquery.parteh.js"></script>
	</head>

	<body>
		<p>Body content</p>

		<script>
			jQuery.parteh();
		</script>		
	</body>
</html>

And that's it!

Who's responsible?

@somepx had the idea. @_pretzelhands couldn't resist.