I'm currently creating a theme for the popular jquery gallery script, Galleria.
Here's a link to the documentation on creating a theme.
My theme is based on the default theme, "Classic", and here's what I need to do.
The Galleria script takes images within a div called "galleria" and makes a slideshow out of them. A basic requirement is that you set the height of this div in CSS.
Rather than setting this in an associated CSS file, I have set the height of the "galleria" div using Javascript within the HTML doc that picks up the browser window's height. The reason I did this (instead of merely setting height as 100%) can be seen in full here, but essentially it's because I need content below this div, but still want the page to show a fullscreen gallery when scrolled all the way up.
The above is great, but now I need to set the position of various elements created by the Galleria script, as a value that depends on this calculated height.
In my theme.js, how do I fetch the height of the "galleria" div as calculated above? And how do I then set the position of another element within the Galleria DOM structure depending on this?