私は、JavascriptライブラリRaphaelを使用していくつかの単純なベクターグラフィックを作成しようとしています。正方形のオブジェクトと湾曲したオブジェクトがあるはずですが、何も表示されていません。誰かが私を助けることができますか?ありがとうございました。
<html>
<head>
<script src="raphael.js"></script>
<script src="jquery-1.7.2.js"></script>
<script type="text/javascript"> //all your javascript goes here
var paper = Raphael("sample-2", 200, 100);
var rectPath = paper.path("M10,10L10,90L90,90L90,10Z");
var curvePath = paper.path("M110,10s55,25 40,80Z");
rectPath.attr({fill:"green"});
curvePath.attr({fill:"blue"});
</script>
</head>
<body>
<div id="sample-2" style="width:500px; height:500px;">
</div>
</body>
</html>