Created
May 4, 2015 22:00
-
-
Save superchris/0756e06924a82accb161 to your computer and use it in GitHub Desktop.
JS Bin raty plugin demo // source http://jsbin.com/pufef/1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(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