ReadProgress

Displays 'Back to Top' button with circle progress bar

Source:
Properties:
Name Type Description
buttonDivSelector String

Class reference for Back to Top button container

buttonSelector String

Class reference for Back to Top button

circleSelector String

Class reference for circle element

hiddenClass String

Hiding class

mainSelector String

Class reference for the main element

summarySelector String

Class reference for the summary section (used on Results template)

interactiveSelector String

Class reference for the interactive section (used on Results template)

articleSelector String

Class reference for the article wrapper

mainResultsClass String

Results template class

circle Object

DOM reference to the circle element

topLocation Integer

Measurable content start location from top of the document

bottomLocation Integer

Measurable content end location from top of the document

measurableHeight Integer

Measurable content height

$buttonDiv Object

DOM reference to Back to Top button

Methods

(inner) handleReadProgressClick()

Source:

Handles click on 'Back To Top' button

(inner) init()

Source:

Initializes 'Back To Top' button on article pages

(inner) updatePercentage()

Source:

Updates the percentage bar in the circle