| 1 |
<!DOCTYPE html> |
| 2 |
<head> |
| 3 |
<meta content="text/html;charset=utf-8" http-equiv="Content-Type"> |
| 4 |
<meta content="utf-8" http-equiv="encoding"> |
| 5 |
<title>Raphael Dev testing html</title> |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
<script type="text/javascript" src="../bower_components/requirejs/require.js"></script> |
| 13 |
<script type="text/javascript" src="../bower_components/eve/eve.js"></script> |
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
<script type="text/javascript"> |
| 20 |
// Initialize container when document is loaded |
| 21 |
window.onload = function () { |
| 22 |
require(['../raphael'], function(Raphael) { |
| 23 |
var paper = Raphael("container", 640, 720); |
| 24 |
paper.circle(100, 100, 100).attr({'fill':'270-#FAE56B:0-#E56B6B:100'}); //example |
| 25 |
}); |
| 26 |
}; |
| 27 |
//Work here, in a separate script file or via command line |
| 28 |
</script> |
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
</head> |
| 35 |
<body> |
| 36 |
|
| 37 |
<div id="container"></div> |
| 38 |
</body> |
| 39 |
</html> |