Skip to content

Instantly share code, notes, and snippets.

View captivate_rating_svg.js
setTimeout(function() {
var user_stars_obj = $("#stars_user_ratingc_object")[0];
var user_stars_svgdoc = user_stars_obj.getSVGDocument();
var user_stars_box = user_stars_svgdoc.getElementById("box");
var average_stars_obj = $("#stars_average_ratingc_object")[0];
var average_stars_svgdoc = average_stars_obj.getSVGDocument();
var average_stars_box = average_stars_svgdoc.getElementById("box");
var ratio = 0;
You can’t perform that action at this time.