Skip to content

Update ReadingTime extension (remove Jquery)#50

Merged
Frenzie merged 5 commits intoFreshRSS:masterfrom
lapineige:master
May 28, 2019
Merged

Update ReadingTime extension (remove Jquery)#50
Frenzie merged 5 commits intoFreshRSS:masterfrom
lapineige:master

Conversation

@lapineige
Copy link
Contributor

//console.log('Reading time: ', reading_time.read_time)
return reading_time.read_time;
},
flux: null,
Copy link
Member

Choose a reason for hiding this comment

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

Is the change in indentation on purpose?

if (document.body.clientWidth <= 840) { // in mobile mode, the feed name is not visible (there is only the favicon)
// add the reading time right before article's title
// in that case, [Time] - [Title] format is used instead of a "|" (as it looks better and doesn't take much more space)
if ( $("#" + reading_time.flux.id + " ul.horizontal-list li.item.title a")[0].textContent.substring(0,(reading_time.reading_time + 'm - ').length) != reading_time.reading_time + 'm - ' ) {
Copy link
Member

Choose a reason for hiding this comment

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

jQuery leftover?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Oh, thanks, I did not notice this one.

@Frenzie Frenzie merged commit 8878c25 into FreshRSS:master May 28, 2019
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.

Add a reading time estimation

2 participants