PennController for IBEX › Forums › Support › Unable to randomize fillers and experimental items › Reply To: Unable to randomize fillers and experimental items
May 26, 2022 at 5:15 pm
#8208
Keymaster
Hi Yasmin,
It depends how exactly you mean to add labels, but one option would be to do this:
newTrial(
newText(`<span style='width: 2em; text-align: left;'>0</span>
<span style='width: 2em; text-align: center;'>25</span>
<span style='width: 2em; text-align: center;'>50</span>
<span style='width: 2em; text-align: center;'>75</span>
<span style='width: 2em; text-align: right;'>100</span>`)
.css({display: 'flex', 'justify-content': 'space-between', width: '20em'})
.print()
,
newScale("answer", 100)
.slider()
.css({'max-width':'unset', width: '20em'})
.print()
.log()
.wait()
)
Note that using CSS rules in the code like that is not ideal, so you might want to consider adding rules to the project’s CSS files instead
Jeremy