Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Skips to paragraphs and highlights sentences like NYT
JavaScript
branch: master
Failed to load latest commit information.
README.md typos
index.html first commit
main.js Highlighting only active when h passed

README.md

Sentence highlighting

Scroll to a paragraph or sentence within a paragraph based on input from the hash. Also, it can highlight a sentence within a paragraph. The usage is knock off of NYT's implementation The New York Times introduces the evolution of the hyperlink

Usage

  • http://example.com/index.html#p2: scrolls to the second paragraph
  • http://example.com/index.html#p2s2: scrolls to the second sentence of the paragraph, line depends on the length of the first sentence
  • http://example.com/index.html#h2s2: scrolls like p2s2 but also highlights this sentence.

This functionality only occurs on page load, just like the NYT's implementation. I still need to add some graphics and functionality for the double shift like described in the above url.

Something went wrong with that request. Please try again.