4,396
edits
No edit summary |
No edit summary |
||
Line 50: | Line 50: | ||
var title = $(this).find('.title').text(); | var title = $(this).find('.title').text(); | ||
var externalLinkHtml = $(this).find('.link').html(); | var externalLinkHtml = $(this).find('.link').html(); | ||
var externalLinkURL = $(this).find('.link a').attr('href'); | |||
var people = $(this).find('.people').text(); | var people = $(this).find('.people').text(); | ||
var type = $(this).find('.type').text(); | var type = $(this).find('.type').text(); | ||
Line 63: | Line 64: | ||
$('#article-title').html('<p class="article-entry-number">' + entryNumber + '</p><p class="article-people">' + people + '</p>'); | $('#article-title').html('<p class="article-entry-number">' + entryNumber + '</p><p class="article-people">' + people + '</p>'); | ||
var articleContentHtml = '<div class="article-title-link">'; // Start new div | var articleContentHtml = '<div class="article-title-link">'; // Start new div | ||
// Adding the title and external link to the new div | // Adding the title and external link icon to the new div | ||
articleContentHtml += '<p class="article-title">' + title + '</p>'; | articleContentHtml += '<p class="article-title">' + title + '</p>'; | ||
if ( | if (externalLinkURL) { | ||
articleContentHtml += '< | articleContentHtml += '<a href="' + externalLinkURL + '" target="_blank" class="external-link-icon"><img src="/images/6/6d/Link-arrow-new.png" alt="Link"></a>'; | ||
} | } | ||
articleContentHtml += '</div>'; // Close the new div | articleContentHtml += '</div>'; // Close the new div |