jquery script

Talk to other Pedia users about the programs, share tricks and tips or ask questions about existing features.

jquery script

Postby FineWine » Thu Nov 24, 2011 8:33 pm

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
User avatar
FineWine
Addicted to Bruji
Addicted to Bruji
 
Posts: 477
Joined: Wed May 28, 2008 2:41 am
Location: Tauranga, New Zealand

Re: jquery script

Postby Nora » Fri Nov 25, 2011 10:05 am

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.
User avatar
Nora
Site Admin
 
Posts: 2149
Joined: Sun Jul 04, 2004 5:03 am


Return to PediaTalk

cron