PennController for IBEX › Forums › Support › Changing the location of the Progress Bar › Reply To: Changing the location of the Progress Bar
February 8, 2023 at 2:41 pm
#9898
![](https://www.pcibex.net/wp-content/uploads/2018/10/IMG_8365-e1540835663655-150x150.jpg)
Keymaster
Hi Mete,
You could use javascript to make sure the progress bar is always the last element on the page. Assuming you’ll always either have PennController trials or native-Ibex trials, placing the following at the very top of your script (before PennController.ResetPrefix
) should do the job:
(()=>{ let bar; (function barAsLast(){ bar = bar || document.querySelector("#bod table:first-child"); if (bar) { let pc = document.querySelector("p.PennController-PennController"); if (pc) pc.append(bar); else (document.querySelector("#bod table:last-child")||document.body).append(bar); } window.requestAnimationFrame(barAsLast); })(); })();
Jeremy