javascript - How to dynamically change the slot values based on user view port? -


i have feedback popover towards right side of page fixed. user can open popover clicking on helpful text , provide feedback on different sections.

use case

1) if user on top of page , if decides provide feedback, open popover , slot values one,two,three.

2) if user decides scroll main page further down , top visible section in main page five,six , seven... if decides provide feedback, open popover , slot values five,six,seven.

![slot values five,six,seven] http://imgur.com/9kznw1i

how automatically update slot values based on user view port.

using ng-repeat change slot values when clicked , down

here plunker http://plnkr.co/edit/rr0tislmoliknnp3fyzf?p=preview

this not perfect should give idea how improve it. right assuming have similar height items, can either constraint or calculate them on fly in formula.

http://jsbin.com/xozoni/edit?html,js,output


Comments

Popular posts from this blog

yii2 - Yii 2 Running a Cron in the basic template -

asp.net - 'System.Web.HttpContext' does not contain a definition for 'GetOwinContext' Mystery -

mercurial graft feature, can it copy? -