diff --git a/html/force.js b/html/force.js index a8a975b..d36a2c4 100644 --- a/html/force.js +++ b/html/force.js @@ -62,8 +62,18 @@ var style_btn = cp.append("button") cp.append("button") .attr("class", "btn") .attr("value", "reload") - .text("Click me!") .on("click", pacman) + .append("svg") + .attr("width", 12) + .attr("height", 12) + .append("path") + .attr("d", d3.svg.arc().innerRadius(0) + .outerRadius(5) + .endAngle(-Math.PI/4 + Math.PI/2 + 2*Math.PI) + .startAngle(Math.PI/4 + Math.PI/2)) + .attr("fill", "#888") + .attr("transform", "translate(6,7)") + var btns = cp.append("div") .attr("class", "btn-group")