Team:Wageningen UR/JS/notebook.js

From 2013.igem.org

(Difference between revisions)
Line 5: Line 5:
$('#container h2:first-of-type .editsection a').html('edit entries');
$('#container h2:first-of-type .editsection a').html('edit entries');
 
 
-
  var $container = $('#container');
+
  var container = document.querySelector('#container');
-
   
+
var msnry = new Masonry( container, {
-
    $container.imagesLoaded(function(){
+
  // options
-
      $container.masonry({
+
  itemSelector: '.item',
-
        itemSelector: '.item',
+
         columnWidth: 320,
         columnWidth: 320,
         isFitWidth: false
         isFitWidth: false
-
      });
+
});  
-
    });
+
 
$('#filters .bysubject a').click(function () {
$('#filters .bysubject a').click(function () {

Revision as of 13:20, 2 September 2013