Forum Discussion
ThibaultJeuland
4 years agoCommunity Member
Jump to specific point in a scrolling panel
Hi all !
I made a global glossary using storyline and i'ma actually implementing the research functionnality using storyline.
To have a nice list of words, I used a scrolling panel.
Is it poss...
SimonHouse-c326
1 month agoCommunity Member
I'm trying to do the same thing and have used the video above as my instructions, but can't get it to work. I haven't got any javascript experience and am probably missing something obvious... any help from you experts would be very gratefully received . I'm 'only' trying to replicate a browser based PDF viewer.
This is what I have used:
var pagebreak=document.querySelectorAll('data-acc-text~="pagebreak1"]');
pagebreak[0].scrollIntoView({block:"end", inline:"nearest"});
- Nedim1 month agoCommunity Member
Your selector has a syntax error. The attribute selector is missing the opening [.
Corrected line:
var pagebreak = document.querySelectorAll('[data-acc-text~="pagebreak1"]');- SimonHouse-c3261 month agoCommunity Member
Thanks Nedim, you're a star - and I thought I'd been checking so carefully too! 🙃
Related Content
- 9 months ago