abcnews/twitter-widgets

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

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

twitter-widgets

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'));

Changelog
1.0.0

This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.