This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
A JS function that allows us to have a proper facebook group embed size(100% of container)(and if we need it to go over 500px in width) | |
Combined from a few solutions: | |
@link: https://stackoverflow.com/questions/29429296/responsive-width-facebook-page-plugin | |
@link: https://www.mugo.ca/blog/How-to-make-the-Facebook-Page-Plugin-fully-responsive | |
*/ | |
function dynamic_fb_size() | |
{ | |
jQuery(function($){ | |
var container_width = (Number($('.fb-container').width())); |