Update index.html
diff --git a/index.html b/index.html
index fb423c9..8630b84 100644
--- a/index.html
+++ b/index.html
@@ -203,10 +203,35 @@
<section class="centered">
<article class="row">
<a id="twitter"></a>
+ <h2 class="uppercase">Tweets</h2>
+
<p><img src="images/icons/home/icon_twitter.png" /></p>
- <a class="twitter-timeline" href="https://twitter.com/EclipseSirius" data-widget-id="676780460677181441" data-chrome="nofooter noborders" height="300">Tweets de @EclipseSirius</a>
-<script>!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");</script>
- </article>
+
+ <div id="tweets" class="centered">
+ <script>
+ if (document.cookie.indexOf('eclipse_cookieconsent_status') > -1) {
+ var script = document.createElement('script');
+ script.src = "//platform.twitter.com/widgets.js";
+ script.type = "text/javascript";
+ script['async']="true";
+ script.charset="utf-8";
+ document.getElementById("tweets").appendChild(script);
+ script.onload = function () {
+ twttr.widgets.createTimeline(
+ {
+ sourceType: "profile",
+ screenName: "EclipseSirius"
+ },
+ document.getElementById("tweets")
+ );
+ };
+ } else {
+ var p = document.createElement('p');
+ p.innerHTML="Please, allow Cookies & Eclipse Foundation Privacy Policy below to be able to load the Twitter widget.";
+ document.getElementById("tweets").appendChild(p);
+ }
+ </script>
+ </div> </article>
</section>
<div class="clear"></div>