Team:TU Delft/fb display
From 2010.igem.org
(Difference between revisions)
Line 30: | Line 30: | ||
if(response.error) { | if(response.error) { | ||
- | $("#photobox").html("Facebook returned an error: " + response.error.message); | + | $("#photobox</html>{{{album|135033906513449}}}<html>").html("Facebook returned an error: " + response.error.message); |
return; | return; | ||
} | } | ||
Line 49: | Line 49: | ||
} | } | ||
+ | |||
+ | $(function() { | ||
var baseurl = "https://graph.facebook.com/"; | var baseurl = "https://graph.facebook.com/"; | ||
Line 61: | Line 63: | ||
} | } | ||
- | + | var boxid = "#photobox</html>{{{album|135033906513449}}}<html>"; | |
- | + | $(boxid).delay(200).queue(fetchPhotos); | |
- | + | ||
- | + | ||
}); | }); | ||
</script> | </script> | ||
</html> | </html> |
Revision as of 22:07, 27 July 2010
This is a template page that displays 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
loading facebook photo's...