Nexus,
Помоги, пожалуйста, там json другой не получается вывести
<table>
<tr>
<td><span class="previous date"></span></td>
<td><span class="current date"></span></td>
</tr>
<tr>
<td><span class="previous USD title"></span></td>
<td><span class="current USD title"></span></td>
</tr>
<tr>
<td><span class="previous EUR"></span></td>
<td><span class="current EUR"></span></td>
</tr>
</table>
<p style="font-size: 2em;" class="previous USD title"></p>
<p style="font-size: 1.5em;" class="current EUR"></p>
<p style="font-size: 2em;" class="current USD title"></p>
<script>
$.getJSON("http://h116641.s08.test-hf.su/", function(data) {
$('.previous date').html(data.date);
$('.current date').html(data.previous.date);
$.each(data, function(k, o) {
$.each(o, function(a, r) {
$('.'+k+'.'+a).html(
a=='date' ? r : {'USD':'$','EUR':'€'}[a] + ' ' + r.value.toFixed(2) + ' <b class=' + ['','down','up'][r.rate] +'>' + ['','▼','▲'][r.rate] +'</b>'
).attr('title', function() {
return $(this).hasClass('title') ? data[k].date : ''
})
})
})
//});
</script>