• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sebnitu / scroll-stash / 92
100%

Build:
DEFAULT BRANCH: master
Ran 17 Jul 2020 06:44AM UTC
Jobs 1
Files 2
Run time 2s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
92

push

travis-ci-com

web-flow
Refactor show anchor functionality (#41)

This PR refactors the `showAnchor` method by breaking up it's tasks into smaller ones. Because of this work, it was also possible to add the new alignment option. Included in this refactor are these methods:

- `getAnchor` - Returns the anchor of a scroll element. It priorities (a) the data anchor, (b) parent anchor and (c) the options selector anchor.
- `getPosTop` - Returns the top scroll position of an anchor within a scroll element.
- `getPosBot` - Returns the bottom scroll position of an anchor within a scroll element.
- `getPosNearest` - Returns the nearest scroll position to make a scroll elements anchor visible.
- `getPosition` - Returns the scroll position based on the passed alignment option (top | bottom | nearest).

51 of 51 branches covered (100.0%)

Branch coverage included in aggregate %.

46 of 46 new or added lines in 1 file covered. (100.0%)

92 of 92 relevant lines covered (100.0%)

23.61 hits per line

Jobs
ID Job ID Ran Files Coverage
1 92.1 17 Jul 2020 06:44AM UTC 0
100.0
Travis Job 92.1
Source Files on build 92
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #92
  • 7071ac1a on github
  • Prev Build on master (#91)
  • Next Build on master (#93)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc