Wow, what a typo

This commit is contained in:
2016-06-16 20:23:43 -04:00
parent 65cc7bf054
commit 1f66f62eea
3 changed files with 18 additions and 10 deletions

View File

@ -1,9 +1,17 @@
!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");
(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 = "//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);
})();