Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function refreshFBComments() {
- if(undefined == FB ) { // Not yet defined
- return;
- }
- var container_width = $('#fb-comments-container').width();
- $('#fb-comments-container').html('<div class="fb-comments" '
- + 'data-href="' + window.location + '"'
- + ' data-width="' + container_width + '"'
- + ' data-numposts="5" '
- + ' data-colorscheme="light"'
- + ' data-height="300px"></div>'
- );
- console.log("Resizing setting new content");
- FB.XFBML.parse();
- }
- $(window).bind("ready resize", refreshFBComments);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement