document.write("
");var twitter_count_fce208a59552b5c6a4c81089b56c4fc6 = 0; var JSONLoader = function(){ this.results = {}; }; JSONLoader._count = 0; JSONLoader.prototype.load = function(){ var o = this; if(!o.config instanceof Array) o.config = [o.config]; var call_jsonp = function(config, index){ var uri = config[index].uri; var jsonp_callback_name = 'JSONLoader_callback_' + (JSONLoader._count++); if(config[index].onstart) config[index].onstart(); window[jsonp_callback_name] = function(result){ if(config[index].onfinish) config[index].onfinish(); o.results[uri] = result; if(index == config.length - 1){ o.callback(o.results); }else{ call_jsonp(config, index + 1); } }; var script = document.createElement('script'); script.setAttribute('src', uri + jsonp_callback_name); script.setAttribute('type', 'text/javascript'); script.setAttribute('charset', 'utf-8'); document.getElementsByTagName('head')[0].appendChild(script); }; call_jsonp(o.config, 0); }; function stamp_fce208a59552b5c6a4c81089b56c4fc6() { var num = parseInt(document.getElementById('stamp_a_fce208a59552b5c6a4c81089b56c4fc6').innerHTML)+1; document.getElementById('stamp_a_fce208a59552b5c6a4c81089b56c4fc6').innerHTML = num; var target_url = 'http%3A%2F%2Fshot.dogmap.jp%2Farchives%2F371'; var url = 'http://stampit.jp/vote.php?url=' + target_url + '&media_id=1&callback='; var loader = new JSONLoader(); loader.config = [ { uri: url, onstart: function(){ show_busy('投票中'); } } ]; loader.callback = function(results){ show_busy(''); setTimeout(function(){ show_result(results[url]); }, 10); }; loader.load(); function show_busy(target){ } function show_result(vote){ if(vote.total != "error") { num = parseInt(vote.total) + parseInt(twitter_count_fce208a59552b5c6a4c81089b56c4fc6); document.getElementById('stamp_fce208a59552b5c6a4c81089b56c4fc6').innerHTML = num; } else { document.getElementById('stamp_fce208a59552b5c6a4c81089b56c4fc6').innerHTML = num - 1; } } }