# HG changeset patch # User rlm # Date 1264408928 18000 # Node ID 1ac1409ea68c5cce78bb6f86c479dae05950452b # Parent 8b3b5753ad41cafb4491d7093e4abbeb65542864 [svn r41] implemented dynamic text. diff -r 8b3b5753ad41 -r 1ac1409ea68c awesome_js/robert.js --- a/awesome_js/robert.js Sun Jan 24 15:06:22 2010 -0500 +++ b/awesome_js/robert.js Mon Jan 25 03:42:08 2010 -0500 @@ -1,18 +1,9 @@ -var robert = (function process() -{ -// Creates canvas 320 × 200 at 10, 50 -var paper = Raphael(10, 50, 320, 200); +window.Robert = (function () { -// Creates circle at x = 50, y = 40, with radius 10 -var circle = paper.circle(50, 40, 10); -// Sets the fill attribute of the circle to red (#f00) -circle.attr("fill", "#f00"); -// Sets the stroke attribute of the circle to white -circle.attr("stroke", "#fff"); +var separator = /[, ]+/, + elements = /^(circle|rect|path|ellipse|text|image)$/, -} -) - +Paper = function () {}, diff -r 8b3b5753ad41 -r 1ac1409ea68c buy.html --- a/buy.html Sun Jan 24 15:06:22 2010 -0500 +++ b/buy.html Mon Jan 25 03:42:08 2010 -0500 @@ -10,7 +10,7 @@ - + @@ -52,22 +52,8 @@