diff options
author | Tobias Grosser <tobias@grosser.es> | 2017-01-08 09:28:10 +0000 |
---|---|---|
committer | Tobias Grosser <tobias@grosser.es> | 2017-01-08 09:28:10 +0000 |
commit | 9e2dceba19a3f1591d983365f38084f5cbe7374b (patch) | |
tree | ef936eda21545a50be870b82327b016ba6ddf0b2 /polly/www | |
parent | be6f9f24ba0a49e1723f3cbec2d48022508aadf6 (diff) | |
download | llvm-9e2dceba19a3f1591d983365f38084f5cbe7374b.tar.gz |
www: Add dates RSS news
llvm-svn: 291388
Diffstat (limited to 'polly/www')
-rw-r--r-- | polly/www/menu.css | 12 | ||||
-rw-r--r-- | polly/www/menu.html.incl | 16 |
2 files changed, 12 insertions, 16 deletions
diff --git a/polly/www/menu.css b/polly/www/menu.css index e1de1a1870a5..bb70a8f56f2f 100644 --- a/polly/www/menu.css +++ b/polly/www/menu.css @@ -82,14 +82,10 @@ li.rss-item { } .rss-date { - font-size: 0.8em; - color: #f35555; - padding-left: 0.4em; - margin-bottom: 2em; - padding-bottom: 2em; - text-align: right; - float: right; + font-size: 0.6em; + color: gray; } -h6 { +.rss-title { + font-size: 0.7em; margin: 0px; } diff --git a/polly/www/menu.html.incl b/polly/www/menu.html.incl index 4b5d3b644fb5..5459473bd632 100644 --- a/polly/www/menu.html.incl +++ b/polly/www/menu.html.incl @@ -45,7 +45,6 @@ Optimizations</span></h2> <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_polyinfo" style="width: 240px"></div> @@ -76,34 +75,35 @@ $(document).ready(function() { "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 = "<div class=\"rss-box\"><ul>"; for (var i = 0; i < res.query.count; i++) { var it = res.query.results.item[i]; + var date = it.pubDate.substr(5, 11); str = str + "<li class=\"rss-item\" ><a href=\"" + it.link + "\">"; - str = str + "<h6>" + res.query.results.item[i].title + "</h6>"; + str = str + "<span class=\"rss-title\">" + res.query.results.item[i].title + "</span> "; + str = str + "<span class=\"rss-date\">(" + date + ")</span>"; str = str + "</a></li>"; } + str = str + "<li class=\"rss-item\"><a href=\"http://pollylabs.org/blog.html\"><span class=\"rss-title\"> ... more news </span></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]; + var date = it.pubDate.substr(5, 11); str = str + "<li class=\"rss-item\" ><a href=\"" + it.link + "\">"; - str = str + "<h6>" + res.query.results.item[i].title + "</h6>"; + str = str + "<span class=\"rss-title\">" + res.query.results.item[i].title + "</span> "; + str = str + "<span class=\"rss-date\">(" + date + ")</span>"; str = str + "</a></li>"; } + str = str + "<li class=\"rss-item\"><a href=\"http://polyhedral.info/blog.html\"><span class=\"rss-title\"> ... more news </span></a></li>"; str = str + "</ul></div>"; - str = str + "<a href=\"http://pollylabs.org/blog.html\"><h6> ... more news </h6></a>"; $( ".inner_polyinfo" ).append(str); console.log(str); }, "jsonp"); |