changeset 100:595866daadbe laserkard

saving progress.
author Robert McIntyre <rlm@mit.edu>
date Tue, 27 Jul 2010 08:08:07 -0400
parents 9649b14f3b38
children 2bec541ef58f
files buy3.html js-lib/buy3.js
diffstat 2 files changed, 11 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
     1.1 --- a/buy3.html	Tue Jul 27 07:56:22 2010 -0400
     1.2 +++ b/buy3.html	Tue Jul 27 08:08:07 2010 -0400
     1.3 @@ -8,19 +8,19 @@
     1.4      <script type="text/javascript" src="js-lib/buy3.js"></script>
     1.5      <script type="text/javascript" src="js-lib/json2.js"></script>
     1.6  
     1.7 -
     1.8    </head>
     1.9    <body>
    1.10      <div id="color-select"></div>
    1.11 +    
    1.12      <div id="style-select">
    1.13        <div id="bold"></div>
    1.14        <div id="classic"></div>
    1.15        <div id="direct"></div>
    1.16        <div id="arrow"></div>
    1.17      </div>
    1.18 +    
    1.19      <div id="card-display"></div>    
    1.20      <div id="pokedex"></div>
    1.21 -    <div id="debug"></div>
    1.22  
    1.23      <div id="text-entry">
    1.24        <input id="user-name" type="text"  title="Name"/>
    1.25 @@ -30,5 +30,8 @@
    1.26        <input id="user-website" type="text" name="" title="Website"/>
    1.27        <input id="user-company" type="text" name="" title="Company"/>
    1.28      </div>
    1.29 +    
    1.30 +    <div id="debug"></div>
    1.31 +    
    1.32    </body>
    1.33  </html>
     2.1 --- a/js-lib/buy3.js	Tue Jul 27 07:56:22 2010 -0400
     2.2 +++ b/js-lib/buy3.js	Tue Jul 27 08:08:07 2010 -0400
     2.3 @@ -18,11 +18,13 @@
     2.4  	return {
     2.5  	    "bold" : {
     2.6  		"name" :(function (text){
     2.7 -		    return paper.print(w*0.1,h*0.2,text,helvetica).attr(
     2.8 -			{"fill" : "#0F0"}).scale(0.0002*h,0.00025*w,w*0.1,h*0.2);}),
     2.9 +		    var x = w*0.1; var y = h*0.2;
    2.10 +		    return paper.print(x,y,text,helvetica).attr(
    2.11 +			{"fill" : "red"}).scale(0.0002*h,0.00025*w,x,y);}),
    2.12  		"email" : (function (text){
    2.13 -		    return paper.print(w*0.1,h*0.4,text,helveticaI).attr(
    2.14 -			{"fill" : "red"}).scale(0.0002*h,0.00025*w,w*0.1,h*0.4);})}
    2.15 +		    var x = w*0.1; var y = h*0.4;
    2.16 +		    return paper.print(x,y,text,helveticaI).attr(
    2.17 +			{"fill" : "red"}).scale(0.0002*h,0.00025*w,x,y);})}
    2.18  	};
    2.19  	
    2.20      });