Mercurial > laserkard
changeset 97:8a3615df4c18 laserkard
saving progress, going to add styles
author | Robert McIntyre <rlm@mit.edu> |
---|---|
date | Tue, 27 Jul 2010 03:51:01 -0400 |
parents | a0b768d3494a |
children | 388344355ebf |
files | js-lib/buy3.js |
diffstat | 1 files changed, 6 insertions(+), 20 deletions(-) [+] |
line wrap: on
line diff
1.1 --- a/js-lib/buy3.js Mon Jul 26 23:39:03 2010 -0400 1.2 +++ b/js-lib/buy3.js Tue Jul 27 03:51:01 2010 -0400 1.3 @@ -31,10 +31,9 @@ 1.4 {"fill" : "#0F0"});}), 1.5 "email" : (function (text, paper){ 1.6 return paper.print(50,50,text,helvetica_I,40).attr( 1.7 - {"fill" : "red"});}) 1.8 - 1.9 - 1.10 - }}; 1.11 + {"fill" : "red"});})} 1.12 + 1.13 + }; 1.14 1.15 1.16 1.17 @@ -219,17 +218,10 @@ 1.18 var style = null; 1.19 return (function () { 1.20 if (style !== order.style){ 1.21 - 1.22 - for ( var property in card ) 1.23 - { 1.24 - alert( property ); 1.25 + for ( var property in card ){ 1.26 if (!Cards[order.style][(deref(property))]){ 1.27 - $("#user" + "-" + property).toggle(400);} 1.28 - } 1.29 - 1.30 - 1.31 - style = order.style; } 1.32 - 1.33 + $("#user" + "-" + property).toggle(400);}} 1.34 + style = order.style;} 1.35 });})(); 1.36 1.37 var display_text_update = (function (){ 1.38 @@ -276,12 +268,6 @@ 1.39 1.40 1.41 1.42 - 1.43 - 1.44 - 1.45 - 1.46 - 1.47 - 1.48 $(document).ready(function() { 1.49 Buy.init(); 1.50 Buy.update();