lundi 9 août 2010

New Zoom javascript design

It could have been be done with simple CSS code but you get a smoother user experience using a javascript timeout to init the automatic zoomer.




Plus the new background of each business card (vCard or hCard) is a simple gif that should work better in obsolete or/and old or/and buggy web browsers. It's OK to me because the new design is way simpler visually, the HTML is also new and very very simple and is completely generated from a jSon dataBase that is very easy to write and read. For that I have writen a 3 javaScript functions that write HTML from jSon. The main idea was to find a way to represent an HTML structure in a function, so it would be very easy to modify and that I could write like :

          htmlTag('html',
               htmlTag('h1',data1),
               htmlTag('p',data2),
               htmlTag('div',data3)
          )

Aucun commentaire:

Enregistrer un commentaire