|
@@ -42,7 +42,7 @@ $(document).ready(function () {
|
|
|
event.preventDefault();
|
|
|
$.get('d.xml', function (data) {
|
|
|
$('#dictionary').empty();
|
|
|
- $(data).find('entry:has(quote[author])').each (function () {
|
|
|
+ $(data).find('entry').each(function() {
|
|
|
var $entry = $(this);
|
|
|
var html = '<div class="entry">';
|
|
|
html += '<h3 class="term">' + $entry.attr('term');
|
|
@@ -70,4 +70,12 @@ $(document).ready(function () {
|
|
|
});
|
|
|
});
|
|
|
});
|
|
|
+
|
|
|
+ $('#letter-e a').click(function (event) {
|
|
|
+ event.preventDefault();
|
|
|
+ var requestData = { term: $(this).text() };
|
|
|
+ $.get('e.php', requestData, function (data) {
|
|
|
+ $('#dictionary').html(data);
|
|
|
+ });
|
|
|
+ });
|
|
|
});
|