[polly] r291387 - www: add rss feeds from pollylabs.org and polyhedral.info
Tobias Grosser via llvm-commits
llvm-commits at lists.llvm.org
Sun Jan 8 01:14:39 PST 2017
Author: grosser
Date: Sun Jan 8 03:14:39 2017
New Revision: 291387
URL: http://llvm.org/viewvc/llvm-project?rev=291387&view=rev
Log:
www: add rss feeds from pollylabs.org and polyhedral.info
Modified:
polly/trunk/www/menu.css
polly/trunk/www/menu.html.incl
Modified: polly/trunk/www/menu.css
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/www/menu.css?rev=291387&r1=291386&r2=291387&view=diff
==============================================================================
--- polly/trunk/www/menu.css (original)
+++ polly/trunk/www/menu.css Sun Jan 8 03:14:39 2017
@@ -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;
+}
Modified: polly/trunk/www/menu.html.incl
URL: http://llvm.org/viewvc/llvm-project/polly/trunk/www/menu.html.incl?rev=291387&r1=291386&r2=291387&view=diff
==============================================================================
--- polly/trunk/www/menu.html.incl (original)
+++ polly/trunk/www/menu.html.incl Sun Jan 8 03:14:39 2017
@@ -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");
More information about the llvm-commits
mailing list