diff options
-rw-r--r-- | polly/www/menu.css | 7 | ||||
-rw-r--r-- | polly/www/menu.html.incl | 43 |
2 files changed, 39 insertions, 11 deletions
diff --git a/polly/www/menu.css b/polly/www/menu.css index be8627c1ad4..e1de1a1870a 100644 --- a/polly/www/menu.css +++ b/polly/www/menu.css @@ -74,11 +74,11 @@ a.rss-item { } li.rss-item { - padding-bottom: 1em; + padding-bottom: 0em; } .rss_item { - padding-top: 1em; + padding-top: 0em; } .rss-date { @@ -90,3 +90,6 @@ li.rss-item { text-align: right; float: right; } +h6 { + margin: 0px; +} diff --git a/polly/www/menu.html.incl b/polly/www/menu.html.incl index 3f0ee56e399..4b5d3b644fb 100644 --- a/polly/www/menu.html.incl +++ b/polly/www/menu.html.incl @@ -42,12 +42,15 @@ Optimizations</span></h2> <br> <a href="https://www.pollylabs.org"><img style="padding-left: 3.5em; padding-right: 1em; width:10em" src="/images/pollylabs.png" /></a> + <div class="container" style="width: 240px"> + <div class="inner_pollylabs" style="width: 240px"></div> + </div> <br> + <a href="https://www.polyhedral.info">polyhedral.info</a> <div class="container" style="width: 240px"> - <div class="inner" style="width: 240px"></div> + <div class="inner_polyinfo" style="width: 240px"></div> </div> - <a href="https://www.polyhedral.info">polyhedral.info Community</a> - <a href="http://impact.gforge.inria.fr/impact2017/">IMPACT Polyhedral Workshop<a><br> + <br> </div> </div> @@ -62,24 +65,46 @@ Optimizations</span></h2> </script> +<script +src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script> + <script> $(document).ready(function() { - var yql = "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url%3D%22http%3A%2F%2Fpollylabs.org%2Frss.xml%22%20LIMIT%208&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"; + var yql = + "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url%3D%22http%3A%2F%2Fpollylabs.org%2Frss.xml%22%20LIMIT%205&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"; $.getJSON(yql, function(res) { console.log(res); - str = ""; + str = "<div class=\"rss-box\"><ul>"; + for (var i = 0; i < res.query.count; i++) { + var it = res.query.results.item[i]; + str = str + "<li class=\"rss-item\" ><a href=\"" + it.link + "\">"; + str = str + "<h6>" + res.query.results.item[i].title + "</h6>"; + str = str + "</a></li>"; + } + str = str + "</ul></div>"; + str = str + "<a href=\"http://pollylabs.org/blog.html\"><h6> ... more news </h6></a>"; + $( ".inner_pollylabs" ).append(str); + console.log(str); + }, "jsonp"); + + var yql_polyinfo = + "https://query.yahooapis.com/v1/public/yql?q=select%20*%20from%20rss%20where%20url%3D%22http%3A%2F%2Fpolyhedral.info%2Frss.xml%22%20LIMIT%205&format=json&env=store%3A%2F%2Fdatatables.org%2Falltableswithkeys"; + + $.getJSON(yql_polyinfo, function(res) { + console.log(res); + str = "<div class=\"rss-box\"><ul>"; for (var i = 0; i < res.query.count; i++) { var it = res.query.results.item[i]; - str = str + "<a href=\"" + it.link + "\">"; + str = str + "<li class=\"rss-item\" ><a href=\"" + it.link + "\">"; str = str + "<h6>" + res.query.results.item[i].title + "</h6>"; - str = str + "</a>"; + str = str + "</a></li>"; } - str = str + ""; + str = str + "</ul></div>"; str = str + "<a href=\"http://pollylabs.org/blog.html\"><h6> ... more news </h6></a>"; - $( ".inner" ).append(str); + $( ".inner_polyinfo" ).append(str); console.log(str); }, "jsonp"); |