Skip to content

Instantly share code, notes, and snippets.

@superchris
Created May 4, 2015 22:00
Show Gist options
  • Save superchris/0756e06924a82accb161 to your computer and use it in GitHub Desktop.
Save superchris/0756e06924a82accb161 to your computer and use it in GitHub Desktop.
JS Bin raty plugin demo // source http://jsbin.com/pufef/1
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="raty plugin demo" />
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="https://rawgithub.com/wbotelhos/raty/master/lib/jquery.raty.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<body>
<div id="raty"></div>
<script id="jsbin-javascript">
$(function() {
$("#raty").raty({
path: "https://rawgithub.com/wbotelhos/raty/master/lib/images/",
click: function(score, event) { alert(score); }
});
$("#raty").raty("score", 3);
});
</script>
<script id="jsbin-source-javascript" type="text/javascript">$(function() {
$("#raty").raty({
path: "https://rawgithub.com/wbotelhos/raty/master/lib/images/",
click: function(score, event) { alert(score); }
});
$("#raty").raty("score", 3);
});</script></body>
</html>
$(function() {
$("#raty").raty({
path: "https://rawgithub.com/wbotelhos/raty/master/lib/images/",
click: function(score, event) { alert(score); }
});
$("#raty").raty("score", 3);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment