Skip to content

Instantly share code, notes, and snippets.

@tivac
Created January 13, 2010 23:44
Show Gist options
  • Save tivac/276693 to your computer and use it in GitHub Desktop.
Save tivac/276693 to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>ChromaHash Test</title>
<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
</head>
<body lang="en-US">
<form method="post" action="/">
<input id="Password" type="password" />
</form>
<script type="text/javascript" src="http://yui.yahooapis.com/combo?3.0.0/build/yui/yui-min.js"></script>
<script type="text/javascript">
YUI({
filter: 'raw',
combine: false,
modules: {
'gallery-chromahash': {
fullpath: 'http://yui.yahooapis.com/gallery-2009.12.08-22/build/gallery-chromahash/gallery-chromahash-min.js',
requires: [ 'plugin', 'node', 'stylesheet', 'collection', 'anim-color' ]
}
}
}).use('gallery-chromahash', function(Y) {
Y.one('#Password').plug(Y.ChromaHash, { bars: 3, salt: "oogaboogafoogawooga", minimum: 5 });
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment