Thursday, January 12, 2012

Bit of fun with JQuery and CSS

I stole some time to play a bit more with veritas and JQuery today. Instead of the ugly list that I had before, I wanted some interactivity. So I got started by adding a little css to make a "card" for each bottle.

Then I wrote a bit of javascript to make each div that I pass into the html into a JQuery "draggable", and do a bit of cheap layout.

    else if(signal == "add_bottle")
div = jQuery(data,{}).draggable();
div.css('left', lft);
lft += 10;
tp += 10;
$( "#bottle_div" ).append(div);
Next I'll add some nicer layout. Then I'll start adding filters and dropdowns so I can sort and do other fun stuff.


  1. Excellent pieces. Keep posting such kind of information on your blog. I really impressed by your blog.
    youtube html5 player| html5 converter

  2. Very nice post and useful information thanks a lot for sharing us.
    clipping path service

  3. Wow, absolutely fantastic blog. I am very glad to have such useful information

    clipping path
    Raster To vector
    clipping path service