JAVASCRIPT   35

twitter stream js

Guest on 18th August 2022 12:48:22 PM

  1. ! function(d, s, id) {
  2.     var js, fjs = d.getElementsByTagName(s)[0],
  3.         p = /^http:/.test(d.location) ? 'http' : 'https';
  4.     if (!d.getElementById(id)) {
  5.         js = d.createElement(s);
  6.         js.id = id;
  7.         js.src = p + "://platform.twitter.com/widgets.js";
  8.         fjs.parentNode.insertBefore(js, fjs);
  9.     }
  10. }(document, "script", "twitter-wjs");

Raw Paste


Login or Register to edit or fork this paste. It's free.