Comments (3)
Hi Lindsey. If you'd like to display the estimated reading time for multiple articles, each of which live remotely, you'd want to iterate through each article and declare a remote file and remote target for each. To declare a remote file and target for each article, I recommend using data attributes (assuming excerpts of the articles exist on the DOM). If you're working purely in javascript without any excerpts of the articles on the DOM, you could use an array with the remote files and targets instead of data attributes.
I've updated the Readme with an example of what I'm talking about. I've also added a new demo showing how it would work. Have a look and let me know if you have any questions.
from reading-time.
Thank you so much! I'm sorry I missed your comment and for my delayed response. I'm working through your examples now and will let you know if I have any questions. Appreciate it!
from reading-time.
No problem.
from reading-time.
Related Issues (20)
- ReadingTimeTarget selector HOT 4
- IE8 Problem HOT 3
- Problem if "wordCountTarget" is not in the selected tag. HOT 2
- Add new release to make changes available to bower users HOT 1
- readingTimeTarget anywhere HOT 1
- Publish as npm module HOT 2
- "each" method doesn't work with laravel foreach HOT 1
- HTML entities support in less than a minute string? HOT 1
- Languages like Chinese, Japanese, Vietnamese are not separated by blanks
- Not working on IE
- Support Chinese
- npm i whitfin/reading-time installs 1.0.0 instead of 2.0.0 HOT 1
- IE11 Problem HOT 1
- Only works with article
- Not displaying on certain pages
- Showing the number in different languages
- Reading time for chinese language alwas show "less than a minute"
- Bug: Target for remote files HOT 4
- Bower HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reading-time.