Fix?
This commit is contained in:
parent
07199fd44f
commit
65cc7bf054
@ -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";
|
||||
!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);
|
||||
}
|
||||
};
|
||||
|
||||
// Attach onload handler
|
||||
if (window.addEventListener)
|
||||
window.addEventListener("load", loadTwitterFeed, false);
|
||||
else if (window.attachEvent)
|
||||
window.attachEvent("onload", loadTwitterFeed);
|
||||
})();
|
||||
}(document, "script", "twitter-wjs");
|
||||
|
Loading…
Reference in New Issue
Block a user