Skip to content

Conversation

@austinhuang0131
Copy link

Title still doesn't work, however But at least I fixed it from "completely useless" to "somehow useful".

commentCount: null
};
item.title = $(this).children('.info').children('h3').text().trim();
item.title = $(this).children('header').children('a').children('h1.badge-item-title').text().trim();
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Title still doesn't work unfortunately

result.query = query;
result.sectionHeader = $('div.section-header h3').text();
result.result = $('ul.overview-list.badge-entry-collection > li').map(function() {
result.result = $('div.badge-entry-collection > article').map(function() {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Basically copied whatever used in section.js to here

@austinhuang0131 austinhuang0131 changed the title Fix .find() function Fix find.js and section.js Nov 24, 2017
lib/section.js Outdated
};
item.title = $(this).children('header').children('h2.badge-item-title').children('a').text().trim();
item.id = $(this).attr('data-entry-id');
item.url = $(this).attr('data-entry-url');
Copy link
Author

@austinhuang0131 austinhuang0131 Nov 24, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A more convenient way to get URL

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant