This commit is contained in:
L. Bradley LaBoon 2016-06-16 20:20:56 -04:00
parent 07199fd44f
commit 65cc7bf054

View File

@ -1,17 +1,9 @@
(function() {
var loadTwitterFeed = function() {
if (!document.getElementById("twitter-wjs")) {
var fjs = document.getElementsByTagName("script")[0];
var js = document.createElement("script");
js.id = "twitter-wjs";
js.src = "http://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
}
};
// Attach onload handler
if (window.addEventListener)
window.addEventListener("load", loadTwitterFeed, false);
else if (window.attachEvent)
window.attachEvent("onload", loadTwitterFeed);
})();
!function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
if (!d.getElementById(id)) {
js = d.createElement(s);
js.id = id;
js.src = p + "://platform.twitter.com/widgets.js";
fjs.parentNode.insertBefore(js, fjs);
}
}(document, "script", "twitter-wjs");