Team:TU Delft/fb display
From 2010.igem.org
(Difference between revisions)
Line 28: | Line 28: | ||
var imghtml = ""; | var imghtml = ""; | ||
var done={}, j=0, und; | var done={}, j=0, und; | ||
+ | |||
+ | if(response.error) { | ||
+ | $("#photobox").html("Facebook returned an error: " + response.error.message); | ||
+ | return; | ||
+ | } | ||
+ | |||
+ | |||
var remaining=response.data; | var remaining=response.data; | ||
if (n>response.data.length) | if (n>response.data.length) |
Revision as of 17:43, 26 July 2010
This is a template page that display random pictures from a facebook album.
{{:Team:TU_Delft/fb_display|album=ID|count=Number of images|css=CSS class}} Parameters: album: Facebook album ID count: Number of pictures to display css: CSS class for each image