Revision as of 01:16, 10 February 2008 by Mckays
First Step: Adding a simple script to the page header
- Any text added with the head option get added to the <head></head> element, before the body of the page is printed.
Next Step: Inserting Time Stamps into the Gbrowse Output
- The next steps use the htmlx options, where x = 1-6. These options will add HTML to strategic locations in the GBrowse output.
- html3 and html4 both add HTML immediately after the 'Overview, 'Region' (if applicable) and 'Details' panels are printed and can be use interchangeably.
- The three panels contains all of the genome browser images.
- The number that appears after this script executes indicates the elapsed time between the head elementthe printing of the end of the 'Details' panel.
- This gives an approximation of how long it has taken to render or un-cache the images.
- It is useful for testing load times of different track combinations, new features, etc.
html3 = <h1 id=html3>placeholder</h1> <script> var d = new Date(); var e = d.getTime()/1000 - start; start += e; var re = Math.round(e*100)/100; document.getElementById('html3').innerHTML=re+' more seconds to get here'; </script>