Team:TU Delft/fb listalbums

From 2010.igem.org

(Difference between revisions)
Line 26: Line 26:
}
}
.fbcodegen {
.fbcodegen {
-
  background-color: #ccc;
 
   padding: 5px;
   padding: 5px;
   width: 100px;
   width: 100px;
Line 51: Line 50:
     html += '<div class="fb_album"><a href="' + item.link + '">' + item.name + '</a>: ' + item.id;
     html += '<div class="fb_album"><a href="' + item.link + '">' + item.name + '</a>: ' + item.id;
     html += " <div class='fbcodegen' id='gencode" + item.id + "'>Generate code</div>";
     html += " <div class='fbcodegen' id='gencode" + item.id + "'>Generate code</div>";
-
    html += '<div id="srcbox' + item.id +'"></div>';
 
     html += '</div>';
     html += '</div>';
   }
   }
Line 58: Line 56:
   for(i=0;i<albums.length;i++) {
   for(i=0;i<albums.length;i++) {
     var item = albums[i];
     var item = albums[i];
-
     $("#gencode" + item.id).click(function() {
+
     $("#gencode" + item.id).text('{{:Team:TU_Delft/fb_photodisplay|album=' + item.id + '|count=20|css=CSS class}}' );
-
      var txt = '{{:Team:TU_Delft/fb_photodisplay|album=' + item.id + '|count=20|css=CSS class}}';
+
-
      $("#srcbox" + item.id).text(txt);
+
-
    });
+
   }
   }
}
}

Revision as of 13:01, 23 October 2010

What to enter?

You need to find a facebook page number, or any other facebook object number that has albums in it. For example, if I go to the iGEM TU Delft facebook page, the browser location shows:

http://www.facebook.com/#!/pages/TU-Delft-iGEM-team/112242102125963

The last part of this is the Facebook page number, which can be entered into the box below.

Running

User/Group ID: