Template:Team:Washington/Templates/Header

From 2009.igem.org

(Difference between revisions)
 
(43 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
-
<script type="text/javascript">
+
<script type="text/javascript" src="https://static.igem.org/mediawiki/2009/6/6a/Uw_js.txt"></script>
-
(function(){
+
-
 
+
-
    var DomReady = window.DomReady = {};
+
-
 
+
-
// Everything that has to do with properly supporting our document ready event. Brought over from the most awesome jQuery.
+
-
 
+
-
    var userAgent = navigator.userAgent.toLowerCase();
+
-
 
+
-
    // Figure out what browser is being used
+
-
    var browser = {
+
-
    version: (userAgent.match( /.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/ ) || [])[1],
+
-
    safari: /webkit/.test(userAgent),
+
-
    opera: /opera/.test(userAgent),
+
-
    msie: eval('(/msie/.test(userAgent))\x26\x26(!/opera/.test( userAgent ))'),
+
-
    mozilla: eval('(/mozilla/.test(userAgent))\x26\x26(!/(compatible|webkit)/.test(userAgent))')
+
-
    };   
+
-
 
+
-
var readyBound = false;
+
-
var isReady = false;
+
-
var readyList = [];
+
-
 
+
-
// Handle when the DOM is ready
+
-
function domReady() {
+
-
// Make sure that the DOM is not already loaded
+
-
if(!isReady) {
+
-
// Remember that the DOM is ready
+
-
isReady = true;
+
-
       
+
-
        if(readyList) {
+
-
            for(var fn = 0; fn < readyList.length; fn++) {
+
-
                readyList[fn].call(window, []);
+
-
            }
+
-
           
+
-
            readyList = [];
+
-
        }
+
-
}
+
-
}
+
-
 
+
-
// From Simon Willison. A safe way to fire onload w/o screwing up everyone else.
+
-
function addLoadEvent(func) {
+
-
  var oldonload = window.onload;
+
-
  if (typeof window.onload != 'function') {
+
-
    window.onload = func;
+
-
  } else {
+
-
    window.onload = function() {
+
-
      if (oldonload) {
+
-
        oldonload();
+
-
      }
+
-
      func();
+
-
    };
+
-
  }
+
-
}
+
-
 
+
-
// does the heavy work of working through the browsers idiosyncracies (let's call them that) to hook onload.
+
-
function bindReady() {
+
-
if(readyBound) {
+
-
    return;
+
-
    }
+
-
+
-
readyBound = true;
+
-
 
+
-
// Mozilla, Opera (see further below for it) and webkit nightlies currently support this event
+
-
if (eval('document.addEventListener\x26\x26!browser.opera')) {
+
-
// Use the handy event callback
+
-
document.addEventListener("DOMContentLoaded", domReady, false);
+
-
}
+
-
 
+
-
// If IE is used and is not in a frame
+
-
// Continually check to see if the document is ready
+
-
if (eval('browser.msie\x26\x26window == top')) {(function(){
+
-
if (isReady){return;}
+
-
try {
+
-
// If IE is used, use the trick by Diego Perini
+
-
// http://javascript.nwbox.com/IEContentLoaded/
+
-
document.documentElement.doScroll("left");
+
-
} catch(error) {
+
-
setTimeout(arguments.callee, 0);
+
-
return;
+
-
}
+
-
// and execute any waiting functions
+
-
    domReady();
+
-
})();}
+
-
 
+
-
if(browser.opera) {
+
-
document.addEventListener( "DOMContentLoaded", function () {
+
-
if (isReady) {return;}
+
-
for (var i = 0; i < document.styleSheets.length; i++){
+
-
if (document.styleSheets[i].disabled) {
+
-
setTimeout( arguments.callee, 0 );
+
-
return;
+
-
}
+
-
}
+
-
// and execute any waiting functions
+
-
            domReady();
+
-
}, false);
+
-
}
+
-
 
+
-
if(browser.safari) {
+
-
    var numStyles;
+
-
(function(){
+
-
if (isReady) {return;}
+
-
if (eval('document.readyState != "loaded"\x26\x26document.readyState != "complete"')) {
+
-
setTimeout( arguments.callee, 0 );
+
-
return;
+
-
}
+
-
if (numStyles === undefined) {
+
-
                var links = document.getElementsByTagName("link");
+
-
                for (var i=0; i < links.length; i++) {
+
-
                if(links[i].getAttribute('rel') == 'stylesheet') {
+
-
                    numStyles++;
+
-
                }
+
-
                }
+
-
                var styles = document.getElementsByTagName("style");
+
-
                numStyles += styles.length;
+
-
}
+
-
if (document.styleSheets.length != numStyles) {
+
-
setTimeout( arguments.callee, 0 );
+
-
return;
+
-
}
+
-
+
-
// and execute any waiting functions
+
-
domReady();
+
-
})();
+
-
}
+
-
 
+
-
// A fallback to window.onload, that will always work
+
-
    addLoadEvent(domReady);
+
-
}
+
-
 
+
-
// This is the public function that people can use to hook up ready.
+
-
DomReady.ready = function(fn, args) {
+
-
// Attach the listeners
+
-
bindReady();
+
-
   
+
-
// If the DOM is already ready
+
-
if (isReady) {
+
-
// Execute the function immediately
+
-
fn.call(window, []);
+
-
    } else {
+
-
// Add the function to the wait list
+
-
        readyList.push( function() { return fn.call(window, []); } );
+
-
    }
+
-
};
+
-
   
+
-
bindReady();
+
-
+
-
})();
+
-
DomReady.ready(function() {
+
-
  if (Math.max(document.documentElement.scrollTop, document.body.scrollTop) === 0) {
+
-
    /*window.scrollTo(0, 82);*/
+
-
    document.getElementById('menubar').scrollIntoView();
+
-
    window.scrollBy(0,4);
+
-
  }
+
-
});
+
-
 
+
-
window.onscroll = function() {
+
-
  if ( window.XMLHttpRequest ) { // IE 6 doesn't implement position fixed nicely...
+
-
    if (Math.max(document.documentElement.scrollTop, document.body.scrollTop) > 282) {
+
-
      document.getElementById('uw_navBar').style.position = 'fixed';
+
-
      document.getElementById('uw_navBar').style.top = '0';
+
-
    } else {
+
-
      document.getElementById('uw_navBar').style.position = 'relative';
+
-
      document.getElementById('uw_navBar').style.top = 'auto';
+
-
    }
+
-
  }
+
-
};
+
-
</script>
+
<style type="text/css">
<style type="text/css">
-
#h_leftBar {
+
body {
 +
  background-color: #9585A2;
 +
}
 +
#uw_leftBar {
   float: left;
   float: left;
 +
  width: 140px;
 +
}
 +
#uw_ss > p {
 +
  margin: 0;
}
}
#uw_navBar {
#uw_navBar {
-
   float: left;
+
   background-color: white;
-
   padding: 5px;
+
   width: 144px;
   margin-left: -5px;
   margin-left: -5px;
-
  margin-right: 20px;
+
}
-
   background-color: white;
+
#uw_navBar a:hover {
-
  width: 10em;
+
   text-decoration: none;
}
}
#uw_navBar li {
#uw_navBar li {
Line 184: Line 24:
   list-style-image: none;
   list-style-image: none;
   border-top: 1px solid #666666;
   border-top: 1px solid #666666;
 +
  padding-left: 0.5em;
}
}
#uw_navBar li:first-child {
#uw_navBar li:first-child {
   border-top: none;
   border-top: none;
 +
}
 +
#uw_navBar > li:last-child {
 +
  border-bottom: 1px solid #666666;
 +
}
 +
#uw_navBar .selflink {
 +
  font-size: 90%;
}
}
#uw_content {
#uw_content {
   margin-left: 11em;
   margin-left: 11em;
   padding-left: 1em;
   padding-left: 1em;
-
   min-height: 400px;
+
   min-height: 590px;
   border-left: 1px solid black;
   border-left: 1px solid black;
}
}
Line 202: Line 49:
h1.firstHeading {
h1.firstHeading {
   display: none;
   display: none;
 +
}
 +
#uw_himg {
 +
  text-align: center;
 +
  padding-top: 1em;
 +
  padding-bottom: 1em;
 +
}
 +
#clustrMapsLink {
 +
  margin-left: -4px;
}
}
</style>
</style>
-
<div id="h_leftBar">
 
-
<a href="https://2009.igem.org/Team:Washington"><img border="0" width="135" height="135" src="/wiki/images/0/0a/Igem-2009-logo.png" alt="UW iGEM 2009 Logo"/></a>
 
-
<img style="margin-left: 50px" src="/wiki/images/0/00/Uw_title_logo.png" alt="Ideal Protein Purification"/><br />
 
-
</div>
 
-
<div style="clear:both">
 
-
<hr />
 
-
</div>
 
</html>
</html>
 +
<div id="uw_leftBar">
 +
<div id="uw_ss">
 +
[[Image:Igem-2009-logo.png|UW iGEM 2009]]
<ul id="uw_navBar">
<ul id="uw_navBar">
<li>[[Team:Washington|Home]]</li>
<li>[[Team:Washington|Home]]</li>
 +
<li>[[Team:Washington/Project|Project Description]]<ul>
 +
  <li>[[Team:Washington/Project/Target|Target]]</li>
 +
  <li>[[Team:Washington/Project/Secretion|Secretion]]</li>
 +
  <li>[[Team:Washington/Project/Display|Display]]</li>
 +
</ul></li>
 +
<li>[[Team:Washington/Future|Future Directions]]<ul>
 +
  <li>[[Team:Washington/Project/CDS|CDS]]</li>
 +
  <li>[[Team:Washington/Project/FoldIt|Foldit]]</li>
 +
</ul></li>
 +
<li>[[Team:Washington/Notebook|Notebook]]</li>
 +
<li>[[Team:Washington/Safety|Safety]]</li>
 +
<li>[[Team:Washington/Bibliography|References]]</li>
<li>[[Team:Washington/Team|The Team]]</li>
<li>[[Team:Washington/Team|The Team]]</li>
-
<li>[[Team:Washington/Project|Project Description]]</li>
+
<li>[[Team:Washington/Accomplishments|Accomplishments & Submitted BioBricks]]</li>
-
<li>[[Team:Washington/Notebook|Notebook]]</li>
+
-
<li>[[Team:Washington/UserGuide|User Guide]]</li>
+
-
<li>[[Team:Washington/Accomplishments|Goals and Accomplishments]]</li>
+
</ul>
</ul>
 +
 +
&nbsp;<br>
 +
&nbsp;<br>
 +
&nbsp;
 +
 +
<html>
 +
<a href="http://www3.clustrmaps.com/counter/maps.php?url=https://2009.igem.org/Team:Washington" id="clustrMapsLink"><img src="http://www3.clustrmaps.com/counter/index2.php?url=https://2009.igem.org/Team:Washington" style="border:0px;" alt="Locations of visitors to this page" width="140" title="Locations of visitors to this page" id="clustrMapsImg" onerror="this.onerror=null; this.src='http://www2.clustrmaps.com/images/clustrmaps-back-soon.jpg'; document.getElementById('clustrMapsLink').href='http://www2.clustrmaps.com';" />
 +
</a>
 +
</html>
 +
 +
</div>
 +
</div>
<div id="uw_content">
<div id="uw_content">
 +
<div id="uw_himg">[[Image:Uw_title_logo.png]]</div>

Latest revision as of 03:31, 22 October 2009

Uw title logo.png