Fix?
This commit is contained in:
parent
07199fd44f
commit
65cc7bf054
@ -1,17 +1,9 @@
|
|||||||
(function() {
|
!function(d, s, id) {
|
||||||
var loadTwitterFeed = function() {
|
var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https';
|
||||||
if (!document.getElementById("twitter-wjs")) {
|
if (!d.getElementById(id)) {
|
||||||
var fjs = document.getElementsByTagName("script")[0];
|
js = d.createElement(s);
|
||||||
var js = document.createElement("script");
|
js.id = id;
|
||||||
js.id = "twitter-wjs";
|
js.src = p + "://platform.twitter.com/widgets.js";
|
||||||
js.src = "http://platform.twitter.com/widgets.js";
|
fjs.parentNode.insertBefore(js, fjs);
|
||||||
fjs.parentNode.insertBefore(js, fjs);
|
}
|
||||||
}
|
}(document, "script", "twitter-wjs");
|
||||||
};
|
|
||||||
|
|
||||||
// Attach onload handler
|
|
||||||
if (window.addEventListener)
|
|
||||||
window.addEventListener("load", loadTwitterFeed, false);
|
|
||||||
else if (window.attachEvent)
|
|
||||||
window.attachEvent("onload", loadTwitterFeed);
|
|
||||||
})();
|
|
||||||
|
Loading…
Reference in New Issue
Block a user