Name: twitter-widgets
Owner: ABC News
Description: Wrapper for dynamically loading the Twitter widgets script (follow button, embedded tweets etc.)
Forked from: AshKyd/twitter-widgets
Created: 2018-04-18 03:15:32.0
Updated: 2018-04-18 03:15:34.0
Pushed: 2018-04-18 03:10:30.0
Homepage: null
Size: 4
Language: HTML
GitHub Committers
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
Wrapper for dynamically loading the Twitter widgets script (follow button, embedded tweets etc.)
install twitter-widgets
Can be used with browserify or global window.TwitterWidgetsLoader
.
TwitterWidgetsLoader = require('twitter-widgets');
terWidgetsLoader.load(function(twttr) {
twttr.widgets.createTweet('20', document.getElementById('tweet'));
terWidgetsLoader.load(function(twttr) {
twttr.widgets.createFollowButton('Prinzhorn', document.getElementById('follow'));