dhowe / rita

Website, documentation and examples for RiTa
https://rednoise.org/rita
71 stars 9 forks source link

Website: 'RiTa index' link in documentation goes to gallery #93

Closed dhowe closed 3 years ago

dhowe commented 3 years ago
Screenshot 2021-03-01 at 1 03 25 AM
Real-John-Cheung commented 3 years ago

I think this is caused by the how the gallery is created the gallery is insert by the gallery.js file which append the content after the DOM elements are loaded so when the (cross page anchor) link (i.e. ../index.html#reference) is clicked, it did scroll to the top of the reference div (and at this time the gallery content are not in the gallery div yet), but then the content of the gallery is injected and the place of the reference div is changed

I think a way to solve this is to generate the gallery content using the same process we use for the reference? ----------------------- or add something to the afterGalleryCreated() like this:

螢幕截圖 2021-03-02 上午12 06 49

which works too...

dhowe commented 3 years ago

no need for the gallery to be dynamic... whatever is easiest