# HG changeset patch # User Robert McIntyre # Date 1280232487 14400 # Node ID 595866daadbeeb71ab1906d98e3316fcdb1cd03d # Parent 9649b14f3b3853c08110ec6da9303f3a9514fc5a saving progress. diff -r 9649b14f3b38 -r 595866daadbe buy3.html --- a/buy3.html Tue Jul 27 07:56:22 2010 -0400 +++ b/buy3.html Tue Jul 27 08:08:07 2010 -0400 @@ -8,19 +8,19 @@ -
+
+
-
@@ -30,5 +30,8 @@
+ +
+ diff -r 9649b14f3b38 -r 595866daadbe js-lib/buy3.js --- a/js-lib/buy3.js Tue Jul 27 07:56:22 2010 -0400 +++ b/js-lib/buy3.js Tue Jul 27 08:08:07 2010 -0400 @@ -18,11 +18,13 @@ return { "bold" : { "name" :(function (text){ - return paper.print(w*0.1,h*0.2,text,helvetica).attr( - {"fill" : "#0F0"}).scale(0.0002*h,0.00025*w,w*0.1,h*0.2);}), + var x = w*0.1; var y = h*0.2; + return paper.print(x,y,text,helvetica).attr( + {"fill" : "red"}).scale(0.0002*h,0.00025*w,x,y);}), "email" : (function (text){ - return paper.print(w*0.1,h*0.4,text,helveticaI).attr( - {"fill" : "red"}).scale(0.0002*h,0.00025*w,w*0.1,h*0.4);})} + var x = w*0.1; var y = h*0.4; + return paper.print(x,y,text,helveticaI).attr( + {"fill" : "red"}).scale(0.0002*h,0.00025*w,x,y);})} }; });