LoginSignup
1
0

More than 3 years have passed since last update.

webarenaでubuntu その33

Posted at

概要

webarenaでubuntu18.04やってみた。
apache2.4,php7.2やってみた。
rssリーダーやってみた。

サンプルコード

d3.xml('http:///georss.php', function(rss) {
  var th = ['title', 'desc', 'link'];
  var table = d3.select("body").append("table").attr("border", "1")
  table.append("thead").append("tr").selectAll("th").data(th).enter().append("th").text(function(d) {
    return d;
  });
  var w = rss.documentElement.getElementsByTagName("item");
    for (var i = 0; i < w.length; i++)
    {
        var title = w[i].getElementsByTagName("title");
    title = title[0].childNodes[0].nodeValue;
        var desc = w[i].getElementsByTagName("description");
        desc = desc[0].childNodes[0].nodeValue;
        var link = w[i].getElementsByTagName("link");
        link = link[0].childNodes[0].nodeValue;
        var item = [title, desc, link];
    table.append("tbody").append("tr").selectAll("td").data(item).enter().append("td").text(function(d) {
      return d;
    });
    }
});

成果物

以上。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0