I have a div that is supposed to be a timing mark. The div needs to change height and move around the page based on the data set and is supposed to be aligned left or right depending on whether it is an odd or even page.
I have my master pages set up with the mark as follows (offset-x is different on each master)
<div class=“mark” anchor=“page_media_0”
style=“position: absolute; width: 14mm; background-color: cmyk(0%, 0%, 0%, 47%); left: -26.4567px; top: 0px; height: 1mm;” offset-x="-26.456694" offset-y=“0”>
I have a standard script as follows:
//Selector is .mark
//MkPos and MkHeight should be mm values (integers) - multiplication is to get value in px
var top = Math.round(record.fields.MkPos * 3.7795296);
var height = Math.round(record.fields.MkHeight * 3.7795296);
This does nothing at all, even when I place the div on the actual section. What am I doing wrong?