Team:UCSF/Search

From 2010.igem.org

(Difference between revisions)
 
(240 intermediate revisions not shown)
Line 1: Line 1:
-
<html xmlns="http://www.w3.org/1999/xhtml">
+
<html>
-
<head>
+
 
-
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+
<style>
-
<title>Untitled Document</title>
+
body{
-
<style type="text/css">
+
background-color:#494d51;
 +
}
 +
 
 +
#content{
 +
padding-right:10px;
 +
}
 +
 
 +
h1{
 +
color:red;
 +
float:right;
 +
}
 +
 
 +
h2{
 +
color:red;
 +
float:right;
 +
}
 +
 
 +
p{
 +
margin-left:40px;
 +
margin-right:20px;
 +
}
 +
 
 +
h3{
 +
color: #467f4a;
 +
text-vertical-align:middle;
 +
background-image:url(http://2010.igem.org/wiki/images/3/31/UCSF_meihuabiao.png);
 +
text-indent: 35px;
 +
background-repeat: no-repeat;
 +
}
 +
 
 +
div#search-controls{
 +
    display: none;
 +
}
 +
 
 +
div#top-section{
 +
display:none;
 +
//background-color:#FF6801; 
 +
//border:0px;
 +
//width:100%;
 +
height: 24px;
 +
}
 +
 
 +
#mw-searchButton{
 +
    display: none;
 +
}
 +
 
 +
div#contentSub{
 +
    display: none;
 +
}
 +
 
 +
#footer-box {
 +
width: 970px;
 +
}
 +
 
 +
div#menubar{
 +
    display: none;
 +
    text-indent:10px;
 +
    top: 0;
 +
}
 +
 
 +
div#p-logo{
 +
    display: none;
 +
    width:1000px;
 +
}
h1.firstHeading {
h1.firstHeading {
 +
        height:0px;
display: none;
display: none;
}
}
-
#SideBar {
+
 
-
position:absolute;
+
</style>
-
left:-50px;
+
 
-
top:0px;
+
<style>
-
width:276px;
+
 
-
bottom:0px;
+
#content{
-
z-index:1;
+
z-index:0;
}
}
-
#Long {
+
 
-
position:relative;
+
ul, li{
-
left:276px;
+
margin: 0;
-
top:0px;
+
padding: 0;
-
width:80px;
+
border: 0;
-
height:1240px;
+
outline: 0;
-
z-index:2;
+
font-weight: inherit;
 +
font-style: inherit;
 +
font-size: 100%;
 +
font-family: inherit;
 +
vertical-align: baseline;
}
}
-
#apDiv1 {
+
-
position:absolute;
+
#navigation ul li.active > a,
-
left:285px;
+
#navigation > ul li a:hover,
-
top:15px;
+
#navigation ul li.sub-nav:hover > a {
-
width:61px;
+
border-color: #53a5ed;
-
height:25px;
+
background: #256fdf;
-
z-index:3;
+
background: -webkit-gradient(linear, left top, left bottom, from(#2f88ec), to(#256fdf));
 +
background: -moz-linear-gradient(top,  #2f88ec,  #256fdf);
 +
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#2f88ec', endColorstr='#256fdf');
}
}
-
#apDiv2 {
+
#navigation ul li.sub-nav > a:hover:before,
-
position:absolute;
+
#navigation ul li.sub-nav:hover > a:before {
-
width:80px;
+
border-top-color: #53a5ed !important;
-
height:115px;
+
}
-
z-index:1;
+
#navigation ul li.sub-nav > a:hover:after,
 +
#navigation ul li.sub-nav:hover > a:after {
 +
border-top-color: #256fdf !important;
 +
}
 +
#navigation ul ul li a:hover {
 +
background: #246cde;
 +
}
 +
#navigation {
 +
    position: relative;
 +
    //left: 50%;
 +
    top: 5px;
 +
left:0px;
 +
//    width:960px;
 +
    //margin-left:-480px;
 +
    font-family: "Lucida Sans Unicode", "Lucida Grande", Verdana, Arial, Helvetica, sans-serif;
 +
}
 +
#navigation > ul {
 +
      height: 27px;
 +
      background: #fff;
 +
      border: 1px solid #222;
 +
      padding: 0 5px;
 +
      -moz-border-radius: 4px;
 +
    -webkit-border-radius: 4px;
 +
    border-radius: 4px;
 +
}
 +
#navigation > ul li {
 +
        display: block;
 +
        float: left;
 +
        font-size: 11px;
 +
      line-height: 15px;
 +
      margin: 0 1px;
 +
      margin-top: -2px;
 +
      list-style: none;
 +
      padding-bottom: 15px;
}
}
-
</style>
 
-
</head>
 
-
<body>
+
#navigation > ul li.right{
 +
        display: block;
 +
        float: right;
 +
        font-size: 11px;
 +
      line-height: 15px;
 +
      margin: 0 1px;
 +
      margin-top: -2px;
 +
      list-style: none;
 +
      padding-bottom: 15px;
 +
}
-
<p>&nbsp;</p>
+
#navigation > ul li a {
-
<p>&nbsp;</p>
+
        position: relative;
-
<div id="SideBar"><img src="http://2008.igem.org/wiki/images/0/0e/UCSF2008logo2.jpg" width="276" height="288" longdesc="http://2008.igem.org/wiki/images/0/0e/UCSF2008logo2.jpg" /></div>
+
        display: block;
-
<div id="Long">
+
        float: left;
-
  <div id="apDiv2">
+
        padding: 6px 7px 8px 7px;
-
  </div>
+
        border: 1px solid transparent;
-
</div>
+
        color: #7b7b7b;
-
<script type="text/javascript"><!--
+
        text-decoration: none;
-
/* Script by: www.jtricks.com
+
}
-
* Version: 20071127
+
#navigation ul li.active > a,
-
* Latest version:
+
#navigation > ul li a:hover,
-
* www.jtricks.com/javascript/navigation/fixed_menu.html
+
#navigation ul li.sub-nav:hover > a {
-
*/
+
        color: #fff;
-
fixedMenuId = 'SideBar';
+
        -moz-border-radius: 4px;
 +
        -webkit-border-radius: 4px;
 +
        border-radius: 4px;
 +
}
 +
#navigation ul li.sub-nav > a:hover:before,
 +
#navigation ul li.sub-nav:hover > a:before {
 +
content: "\00a0";
 +
display: block;
 +
position: absolute;
 +
bottom: -14px;
 +
left: 37%;
 +
width: 0;
 +
height: 0;
 +
border: 7px solid transparent;
 +
}
 +
#navigation ul li.sub-nav > a:hover:after,
 +
#navigation ul li.sub-nav:hover > a:after {
 +
content:"\00a0";
 +
display:block;
 +
position:absolute;
 +
bottom: -13px;
 +
left: 37%;
 +
width: 0;
 +
height: 0;
 +
border: 7px solid transparent;
 +
}     
 +
#navigation ul li ul {
 +
  clear: left;
 +
  position: absolute;
 +
  left: -999em;
 +
  z-index: 999;
 +
  width: 140px;
 +
  background: #fff;
 +
  border: 1px solid #363636;
 +
  list-style: none;
 +
  padding: 5px 4px;
 +
  outline: 1px solid #000;
 +
}
 +
#navigation ul li li {
 +
  display: block;
 +
  padding: 0;
 +
  margin: 0;
 +
}
 +
#navigation ul ul li a {
 +
  border: none;
 +
  background: none;
 +
  color: #000;
 +
  display: block;
 +
  float: left;
 +
  font-size: 12px !important;
 +
  width: 120px;
 +
  padding: 4px 10px 5px 10px;
 +
}
 +
#navigation ul ul li a:hover {
 +
  border: none;
 +
  -moz-border-radius: 0px;
 +
  -webkit-border-radius: 0px;
 +
  border-radius: 0px;
 +
}
 +
#navigation ul li:hover ul,
 +
#navigation ul li.sfhover ul{
 +
  left: auto;
 +
  top: 42px;
 +
}
 +
</style>
 +
<script>
 +
function writeHref(){
 +
var PageURL = document.URL;
 +
var RightURL = PageURL.substr(21);
 +
var EditIt="http://2010.igem.org/wiki/index.php?title="+RightURL+"&amp;action=edit";
 +
document.write("<a href=\""+EditIt+"\">");
 +
}
 +
</script>
-
var fixedMenu =  
+
<div style="width:100%">
-
{
+
<div id="navigation">
-
    hasInner: typeof(window.innerWidth) == 'number',
+
<ul>
-
    hasElement: document.documentElement != null
+
-
      && document.documentElement.clientWidth,
+
-
    menu: document.getElementById
+
<li class="active"><a href="http://2010.igem.org/Team:UCSF">Home</a></li>
-
        ? document.getElementById(fixedMenuId)
+
-
        : document.all
+
-
          ? document.all[fixedMenuId]
+
-
          : document.layers[fixedMenuId]
+
-
};
+
-
fixedMenu.computeShifts = function()
+
<li class="not-active sub-nav"><a href="http://2010.igem.org/Team:UCSF/Team">Team</a><ul>
-
{
+
-
    fixedMenu.shiftX = fixedMenu.hasInner
+
-
        ? pageXOffset
+
-
        : fixedMenu.hasElement
+
-
          ? document.documentElement.scrollLeft
+
-
          : document.body.scrollLeft;
+
-
    if (fixedMenu.targetLeft > 0)
+
-
        fixedMenu.shiftX += fixedMenu.targetLeft;
+
-
    else
+
-
    {
+
-
        fixedMenu.shiftX +=
+
-
            (fixedMenu.hasElement
+
-
              ? document.documentElement.clientWidth
+
-
              : fixedMenu.hasInner
+
-
                ? window.innerWidth - 20
+
-
                : document.body.clientWidth)
+
-
            - fixedMenu.targetRight
+
-
            - fixedMenu.menu.offsetWidth;
+
-
    }
+
-
    fixedMenu.shiftY = fixedMenu.hasInner
+
         <li class="cat-item cat-item-23"><a href="http://igem.org/Team.cgi?year=2010" title="">Team Profile</a></li>
-
        ? pageYOffset
+
-
         : fixedMenu.hasElement
+
<li class="cat-item cat-item-67"><a href="http://mac.appstorm.net/category/reviews/utilities/" title="">Utilities</a></li>
-
          ? document.documentElement.scrollTop
+
<li class="cat-item cat-item-296"><a href="http://mac.appstorm.net/category/reviews/video/" title="">Video</a></li>
-
          : document.body.scrollTop;
+
<li class="cat-item cat-item-9"><a href="http://mac.appstorm.net/category/reviews/web-dev-review/" title="">Web Dev</a></li>
-
    if (fixedMenu.targetTop > 0)
+
</ul></li>
-
        fixedMenu.shiftY += fixedMenu.targetTop;
+
-
    else
+
-
    {
+
-
        fixedMenu.shiftY +=  
+
-
            (fixedMenu.hasElement
+
-
            ? document.documentElement.clientHeight
+
-
            : fixedMenu.hasInner
+
-
              ? window.innerHeight - 20
+
-
              : document.body.clientHeight)
+
-
            - fixedMenu.targetBottom
+
-
            - fixedMenu.menu.offsetHeight;
+
-
    }
+
-
};
+
-
fixedMenu.moveMenu = function()
+
<li class="not-active sub-nav"><a href="http://2010.igem.org/Team:UCSF/Project">Project</a><ul>
-
{
+
        <li class="cat-item cat-item-68"><a href="http://2010.igem.org/Team:UCSF/Project/Overview" title="">Overview</a></li>
-
    fixedMenu.computeShifts();
+
<li class="cat-item cat-item-28"><a href="http://2010.igem.org/Team:UCSF/Project/Process" title="">Project Process</a></li>
 +
<li class="cat-item cat-item-364"><a href="http://2010.igem.org/Team:UCSF/Project/Design" title="">Project Design</a></li>
 +
<li class="cat-item cat-item-201"><a href="http://2010.igem.org/Team:UCSF/Project/Results" title="">Results</a></li>
 +
</ul></li>
-
    if (fixedMenu.currentX != fixedMenu.shiftX
+
<li class="not-active sub-nav"><a href="http://2010.igem.org/Team:UCSF/Notebook">Notebook</a><ul>
-
        || fixedMenu.currentY != fixedMenu.shiftY)
+
-
    {
+
-
        fixedMenu.currentX = fixedMenu.shiftX;
+
-
        fixedMenu.currentY = fixedMenu.shiftY;
+
-
        if (document.layers)
+
  <li class="cat-item cat-item-322"><a href="http://2010.igem.org/Team:UCSF/Team/Notebook/Ryan_Liang" title="">Ryan Liang</a></li>
-
        {
+
<li class="cat-item cat-item-483"><a href="http://2010.igem.org/Team:UCSF/Notebook/Ethan_Chan" title="">Ethan Chan</a></li>
-
            fixedMenu.menu.left = fixedMenu.currentX;
+
<li class="cat-item cat-item-121"><a href="http://2010.igem.org/Team:UCSF/Notebook/Eric_Wong" title="">Eric Wong</a></li>
-
            fixedMenu.menu.top = fixedMenu.currentY;
+
<li class="cat-item cat-item-684"><a href="http://2010.igem.org/Team:UCSF/Notebook/Carmen_Zhou" title="">Carmen Zhou</a></li>
-
        }
+
<li class="cat-item cat-item-19"><a href="http://2010.igem.org/Team:UCSF/Notebook/Lianna_Fung" title="">Lianna Fung</a></li>
-
        else
+
<li class="cat-item cat-item-76"><a href="http://2010.igem.org/Team:UCSF/Notebook/Connor_Grant" title="">Connor Grant</a></li>
-
        {
+
<li class="cat-item cat-item-13"><a href="http://2010.igem.org/Team:UCSF/Notebook/Hannah Yan" title="">Hannah Yan</a></li>
-
            fixedMenu.menu.style.left = fixedMenu.currentX + 'px';
+
<li class="cat-item cat-item-184"><a href="http://2010.igem.org/Team:UCSF/Notebook/John Elam" title="">John Elam</a></li>
-
            fixedMenu.menu.style.top = fixedMenu.currentY + 'px';
+
<li class="cat-item cat-item-235"><a href="http://2010.igem.org/Team:UCSF/Notebook/Crystal_Liu" title="">Crystal Liu</a></li>
-
        }
+
<li class="cat-item cat-item-264"><a href="http://2010.igem.org/Team:UCSF/Notebook/Sam_Zorn" title="">Sam Zorn</a></li>
-
    }
+
<li class="cat-item cat-item-556"><a href="http://2010.igem.org/Team:UCSF/Notebook/Min_Lin" title="">Min Lin</a></li>
 +
</ul></li>
-
    fixedMenu.menu.style.right = '';
+
<li class="not-active"><a href="file:///C:/Users/Min%20Lin/Desktop/2.html">Parts</a></li>
-
    fixedMenu.menu.style.bottom = '';
+
-
};
+
-
fixedMenu.floatMenu = function()
+
<li class="not-active sub-nav"><a href="http://mac.appstorm.net/category/general/">Safety</a><ul> <li class="cat-item cat-item-99"><a href="http://mac.appstorm.net/category/general/app-news/" title="">App News</a>
-
{
+
</li>
-
    fixedMenu.moveMenu();
+
<li class="cat-item cat-item-10"><a href="http://mac.appstorm.net/category/general/appstorm-news/" title="">AppStorm News</a>
-
    setTimeout('fixedMenu.floatMenu()', 20);
+
</li>
-
};
+
<li class="cat-item cat-item-45"><a href="http://mac.appstorm.net/category/general/competitions/" title="">Competitions</a>
 +
</li>
 +
<li class="cat-item cat-item-287"><a href="http://mac.appstorm.net/category/general/live-coverage/" title="">Live Coverage</a>
 +
</li>
 +
<li class="cat-item cat-item-31"><a href="http://mac.appstorm.net/category/general/mactastik/" title="">Mactastik</a>
 +
</li>
 +
<li class="cat-item cat-item-371"><a href="http://mac.appstorm.net/category/general/screencasts/" title="">Screencasts</a>
 +
</li>
 +
<li class="cat-item cat-item-219"><a href="http://mac.appstorm.net/category/general/sponsors/" title="">Sponsors</a>
 +
</li>
 +
</ul></li>
-
// addEvent designed by Aaron Moore
+
<li class="not-active"><a href="http://mac.appstorm.net/about/">Cooperation</a></li>
-
fixedMenu.addEvent = function(element, listener, handler)
+
<li class="not-active"><a href="http://mac.appstorm.net/about/">Sponser</a></li>
-
{
+
<li class="right"><script>writeHref();</script>Edit</a></li>
-
    if(typeof element[listener] != 'function' ||
+
<li class="right"><a href="http://igem.org/Login">Log in</a></li>
-
      typeof element[listener + '_num'] == 'undefined')
+
</ul>
-
    {
+
</div>
-
        element[listener + '_num'] = 0;
+
-
        if (typeof element[listener] == 'function')
+
-
        {
+
-
            element[listener + 0] = element[listener];
+
-
            element[listener + '_num']++;
+
-
        }
+
-
        element[listener] = function(e)
+
-
        {
+
-
            var r = true;
+
-
            e = (e) ? e : window.event;
+
-
            for(var i = 0; i < element[listener + '_num']; i++)
+
-
                if(element[listener + i](e) === false)
+
-
                    r = false;
+
-
            return r;
+
-
        }
+
-
    }
+
-
    //if handler is not already stored, assign it
 
-
    for(var i = 0; i < element[listener + '_num']; i++)
 
-
        if(element[listener + i] == handler)
 
-
            return;
 
-
    element[listener + element[listener + '_num']] = handler;
 
-
    element[listener + '_num']++;
 
-
};
 
-
fixedMenu.supportsFixed = function()
+
<div style="width:100%px;background-color:#FFfF04;margin-top:0px;-moz-border-radius: 4px;
-
{
+
            -webkit-border-radius: 4px;
-
    var testDiv = document.createElement("div");
+
            border-radius: 4px;padding-bottom:10px;">
-
    testDiv.id = "testingPositionFixed";
+
<form action="http://2010.igem.org/Team:UCSF/Search" id="cse-search-box" style="margin:10px;">
-
    testDiv.style.position = "fixed";
+
<h3>Search UCSF</h3>
-
     testDiv.style.top = "0px";
+
<div>
-
    testDiv.style.right = "0px";
+
     <input type="hidden" name="cx" value="003596668401458118461:zap8jgrah-m" />
-
    document.body.appendChild(testDiv);
+
     <input type="hidden" name="cof" value="FORID:9" />
-
    var offset = 1;
+
    <input type="hidden" name="ie" value="UTF-8" />
-
     if (typeof testDiv.offsetTop == "number"
+
     <input type="text" name="q" size="81" />
-
        && testDiv.offsetTop != null
+
     <input type="submit" name="sa" value="Search" size="8"/>
-
        && testDiv.offsetTop != "undefined")
+
</div>
-
     {
+
</form>
-
        offset = parseInt(testDiv.offsetTop);
+
</div>
-
     }
+
-
    if (offset == 0)
+
-
    {
+
-
        return true;
+
-
    }
+
-
    return false;
 
-
};
 
-
fixedMenu.init = function()
+
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
-
{
+
<!--<img src="http://2010.igem.org/wiki/images/e/ef/UCSF_2010_Transparent_NK.png" width="150"/>-->
-
    if (fixedMenu.supportsFixed())
+
<!--<img src="http://igem.org/wiki/images/9/9a/Natural_Killer.jpg" width="196"/>-->
-
        fixedMenu.menu.style.position = "fixed";
+
-
    else
+
-
    {
+
-
        var ob =  
+
-
            document.layers
+
-
            ? fixedMenu.menu
+
-
            : fixedMenu.menu.style;
+
-
        fixedMenu.targetLeft = parseInt(ob.left);
 
-
        fixedMenu.targetTop = parseInt(ob.top);
 
-
        fixedMenu.targetRight = parseInt(ob.right);
 
-
        fixedMenu.targetBottom = parseInt(ob.bottom);
 
-
        if (document.layers)
+
<div id="cse-search-results" style="margin-left:90px;"></div>
-
        {
+
-
            menu.left = 0;
+
-
            menu.top = 0;
+
-
        }
+
-
        fixedMenu.addEvent(window, 'onscroll', fixedMenu.moveMenu);
+
-
        fixedMenu.floatMenu();
+
-
    }
+
-
};
+
-
fixedMenu.addEvent(window, 'onload', fixedMenu.init);
+
<script type="text/javascript">
 +
  var googleSearchIframeName = "cse-search-results";
 +
  var googleSearchFormName = "cse-search-box";
 +
  var googleSearchFrameWidth = 600;
 +
  var googleSearchDomain = "www.google.com";
 +
  var googleSearchPath = "/cse";
 +
</script>
 +
<script type="text/javascript" src="http://www.google.com/afsonline/show_afs_search.js"></script>
-
//--></script>
 
-
</body>
 
-
</html>
 
 +
</div>
-
==='''Main'''===
+
</html>
-
Hello world
+

Latest revision as of 04:15, 24 September 2010