Javascript after render
Posted: Thu Jul 13, 2017 4:37 pm
I'm kind of new at this - so if I'm missing something obvious, please be patient. Here's what I'm trying to do:
I have a subfile that is detected in Genie - all divs get assigned class 'cell'. I've taken the 'cell' class and changed the display type to 'flex' to allow for more control over the placement of the contained div. Currently, the 'justify-content' setting is 'flex-end' for all cells.
I want to be able to vary the 'justify-content' so I can control the alignment of columns based on the 'left' value of the parent div.
I've tried to write a script, but it always runs before the screen is rendered - my getElementsByClassName() array is always empty. Where can I place my function call so that it fires after the screen is rendered?
Sorry if this is a noob question, I've only been programming RPG for a few months and this is my first project with Profound and Genie.
I have a subfile that is detected in Genie - all divs get assigned class 'cell'. I've taken the 'cell' class and changed the display type to 'flex' to allow for more control over the placement of the contained div. Currently, the 'justify-content' setting is 'flex-end' for all cells.
I want to be able to vary the 'justify-content' so I can control the alignment of columns based on the 'left' value of the parent div.
I've tried to write a script, but it always runs before the screen is rendered - my getElementsByClassName() array is always empty. Where can I place my function call so that it fires after the screen is rendered?
Sorry if this is a noob question, I've only been programming RPG for a few months and this is my first project with Profound and Genie.