Page 1 of 1

jquery script

Posted: Thu Nov 24, 2011 8:33 pm
by FineWine
Can someone explain to me, a laymen, writing/modifying templates, what the jquery script at the bottom of most of the Bruji Info Templates code is, mean, does, etc. I know nothing about Java scripting.

Code: Select all

<script src="includes/jquery.min.js"></script>
<script src="includes/jquery.masonry.min.js"></script>
<script>
$(function(){
  $('.mainInfo').masonry({
	singleMode: true
  });
});
</script>
Thanks

Re: jquery script

Posted: Fri Nov 25, 2011 10:05 am
by Nora
When you change the size of your window and the fields automatically re-arrange themselves in a fluid motion? That's that script, you can find more about it at the Masonry webpage.