2023-02-05 03:04:28 +00:00
|
|
|
$(function() {
|
|
|
|
$('#examples').each(function(index, elem) {
|
|
|
|
$.getJSON(
|
2023-02-11 06:08:51 +00:00
|
|
|
'http://ksenia.causa-arcana.com/api/words/' + $(elem).data('id'),
|
2023-02-05 03:04:28 +00:00
|
|
|
function(data) {
|
|
|
|
var list_items = []
|
2023-02-11 06:08:51 +00:00
|
|
|
data['examples'].forEach(function(item) {
|
2023-02-05 03:04:28 +00:00
|
|
|
list_items.push('<li>' + item[0] + ' — ' + item[1] + '</li>')
|
|
|
|
})
|
|
|
|
$(elem).html('<ul>' + list_items.join('') + '</ul>')
|
|
|
|
},
|
|
|
|
)
|
|
|
|
})
|
|
|
|
})
|