Page 1 of 1
Add common footer to start.html
Posted: Wed Oct 06, 2010 2:16 pm
by Bryan641
Is there a best way to add a common footer to a copy of start.html? I tried loading in our standard footer, but it shows up below our common header and the ProfoundUI application is displayed at the same location, covering it up.
--Bryan
Re: Add common footer to start.html
Posted: Thu Oct 07, 2010 10:51 am
by Alex
You would have to position the footer absolutely. For example:
<div style="position: absolute; left: 0px; top: 500px;"> Footer Content </div>
Re: Add common footer to start.html
Posted: Thu Oct 07, 2010 11:50 am
by Bryan641
But there's not way to be sure how large the pui division will be, is there?
Re: Add common footer to start.html
Posted: Thu Oct 07, 2010 10:59 pm
by Alex
Currently, there is no easy way to determine the height of that div.
We will add a new API in the next release, which will give you this information. This will allow you to position the footer appropriately, using JavaScript code that looks like this:
Code: Select all
getObj("footer").style.top = pui.getRuntimeContainerHeight() + "px";
This assumes that your HTML footer has an id of "footer". For example:
Code: Select all
<div id="footer" style="position: absolute; left: 0px; top: 500px;"> Footer Content </div>