Thanks for using our site!

If you're looking to become an editor, please read the Becoming an Editor section carefully.

MediaWiki:TwitterWidget.js: Difference between revisions

From ranchstory
Jump to navigationJump to search
imported>Stephen64
No edit summary
imported>Stephen64
No edit summary
(No difference)

Revision as of 22:33, 6 January 2021

$(document).ready(function(){
    var idArr = [];
    $(".twitter-widget").each(function(){
    	twttr.widgets.createTweet(
			$(this).attr("id"),
			document.getElementById($(this).attr("id")).getElementsByClassName("twitter-widget")[0],
			{
    			align: 'left'
			}
		).then(function (el) {
			console.log("Tweet displayed.");
		});
    });
});