Hacker News new | past | comments | ask | show | jobs | submit login

I made something similar to this NYTimes.com feature, a few days ago: https://github.com/alexbarredo/insidelink

It's simpler, of course. It's in plain JS and as jQuery plugin




It looks like your version uses a numeric value as determined by the order of the P tag. This is what I had before.

The second version generates a Key for the paragraph so it can be moved anywhere in the page, and survive slight modifications if the text changes too.

Nice work though.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: