Welcome to colabv6.dan.co.jp

kame
KeyValue
runJSON = function(name, func){
    if (! this['JSONP']) JSONP = {};
    JSONP[name] = func;
    (function(d, uri){
        var s = d.createElement('script');
        s.charset = 'UTF-8';
        s.id = s.src = uri;
        d.body.appendChild(s);
    })(document, 'http://api.dan.co.jp/jsonenv?c=JSONP.' + name);
};
runJSON('kame', function(json){
    var img = document.getElementById('kame');
    img.src = json['REMOTE_ADDR'].indexOf(':') !== -1
        ? 'http://colabv6.dan.co.jp/kame-anime-small.gif'
        : 'http://colabv6.dan.co.jp/kame-noanime-small.gif';
});
runJSON('table', function(json){
    var d = document;
    var tbody = d.getElementById('jsonenv');
    for (var p in json){
        var tr = d.createElement('tr');
        var td = d.createElement('td');
        td.appendChild(d.createTextNode(p));
        tr.appendChild(td);
        td = d.createElement('td');
        td.appendChild(d.createTextNode(json[p]));
        tr.appendChild(td);
        tbody.appendChild(tr);
    }
    //alert(uneval(json));
});