Team:UCSF/Search

From 2010.igem.org

(Difference between revisions)
 
(235 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" />
+
-
<title>Untitled Document</title>
+
-
<style type="text/css">
+
-
h1.firstHeading {
+
<style>
-
display: none;
+
body{
 +
background-color:#494d51;
}
}
-
#SideBar {
+
#content{
-
position:absolute;
+
padding-right:10px;
-
left:-100px;
+
-
top:0px;
+
-
width:276px;
+
-
bottom:0px;
+
-
z-index:1;
+
}
}
-
#Long {
+
 
-
position:relative;
+
h1{
-
left:276px;
+
color:red;
-
top:0px;
+
float:right;
-
width:80px;
+
-
        bottom:0px;
+
-
z-index:2;
+
}
}
-
#apDiv1 {
+
 
-
position:absolute;
+
h2{
-
left:285px;
+
color:red;
-
top:15px;
+
float:right;
-
width:61px;
+
-
        bottom:0px;
+
-
z-index:3;
+
}
}
-
#apDiv2 {
+
 
-
position:absolute;
+
p{
-
width:80px;
+
margin-left:40px;
-
        bottom:0px;
+
margin-right:20px;
-
z-index:1;
+
}
}
 +
 +
h3{
 +
color: #467f4a;
 +
text-vertical-align:middle;
 +
background-image:url(https://static.igem.org/mediawiki/2010/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 {
 +
        height:0px;
 +
display: none;
 +
}
 +
 +
</style>
</style>
-
</head>
 
-
<body>
+
<style>
-
<p>&nbsp;</p>
+
#content{
-
<p>&nbsp;</p>
+
z-index:0;
-
<div id="SideBar"><img src="https://static.igem.org/mediawiki/2010/6/62/UCSF_2010_Trial.png" width="276" height="288" longdesc="https://static.igem.org/mediawiki/2008/0/0e/UCSF2008logo2.jpg" /></div>
+
}
-
<div id="Long">
+
-
  <div id="apDiv2">
+
-
  </div>
+
-
</div>
+
-
<script type="text/javascript"><!--
+
-
/* Script by: www.jtricks.com
+
-
* Version: 20071127
+
-
* Latest version:
+
-
* www.jtricks.com/javascript/navigation/fixed_menu.html
+
-
*/
+
-
fixedMenuId = 'SideBar';
+
-
var fixedMenu =
+
ul, li{
-
{
+
margin: 0;
-
    hasInner: typeof(window.innerWidth) == 'number',
+
padding: 0;
-
    hasElement: document.documentElement != null
+
border: 0;
-
      && document.documentElement.clientWidth,
+
outline: 0;
 +
font-weight: inherit;
 +
font-style: inherit;
 +
font-size: 100%;
 +
font-family: inherit;
 +
vertical-align: baseline;
 +
}
 +
 +
#navigation ul li.active > a,
 +
#navigation > ul li a:hover,
 +
#navigation ul li.sub-nav:hover > a {
 +
border-color: #53a5ed;
 +
background: #256fdf;
 +
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');
 +
}
 +
#navigation ul li.sub-nav > a:hover:before,
 +
#navigation ul li.sub-nav:hover > a:before {
 +
border-top-color: #53a5ed !important;
 +
}
 +
#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;
 +
}
-
    menu: document.getElementById
+
#navigation > ul li.right{
-
         ? document.getElementById(fixedMenuId)
+
         display: block;
-
         : document.all
+
         float: right;
-
          ? document.all[fixedMenuId]
+
        font-size: 11px;
-
          : document.layers[fixedMenuId]
+
      line-height: 15px;
-
};
+
      margin: 0 1px;
 +
      margin-top: -2px;
 +
      list-style: none;
 +
      padding-bottom: 15px;
 +
}
-
fixedMenu.computeShifts = function()
+
#navigation > ul li a {
-
{
+
        position: relative;
-
    fixedMenu.shiftX = fixedMenu.hasInner
+
        display: block;
-
        ? pageXOffset
+
        float: left;
-
        : fixedMenu.hasElement
+
        padding: 6px 7px 8px 7px;
-
          ? document.documentElement.scrollLeft
+
        border: 1px solid transparent;
-
          : document.body.scrollLeft;
+
        color: #7b7b7b;
-
    if (fixedMenu.targetLeft > 0)
+
        text-decoration: none;
-
        fixedMenu.shiftX += fixedMenu.targetLeft;
+
}
-
    else
+
#navigation ul li.active > a,
-
    {
+
#navigation > ul li a:hover,
-
        fixedMenu.shiftX +=
+
#navigation ul li.sub-nav:hover > a {
-
            (fixedMenu.hasElement
+
        color: #fff;
-
              ? document.documentElement.clientWidth
+
        -moz-border-radius: 4px;
-
              : fixedMenu.hasInner
+
        -webkit-border-radius: 4px;
-
                ? window.innerWidth - 20
+
        border-radius: 4px;
-
                : document.body.clientWidth)
+
}
-
            - fixedMenu.targetRight
+
#navigation ul li.sub-nav > a:hover:before,
-
            - fixedMenu.menu.offsetWidth;
+
#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="https://2010.igem.org/wiki/index.php?title="+RightURL+"&amp;action=edit";
 +
document.write("<a href=\""+EditIt+"\">");
 +
}
 +
</script>
-
    fixedMenu.shiftY = fixedMenu.hasInner
+
<div style="width:100%">
-
        ? pageYOffset
+
<div id="navigation">
-
        : fixedMenu.hasElement
+
<ul>
-
          ? document.documentElement.scrollTop
+
-
          : document.body.scrollTop;
+
-
    if (fixedMenu.targetTop > 0)
+
-
        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="active"><a href="https://2010.igem.org/Team:UCSF">Home</a></li>
-
{
+
-
    fixedMenu.computeShifts();
+
-
    if (fixedMenu.currentX != fixedMenu.shiftX
+
<li class="not-active sub-nav"><a href="https://2010.igem.org/Team:UCSF/Team">Team</a><ul>
-
        || fixedMenu.currentY != fixedMenu.shiftY)
+
-
    {
+
-
        fixedMenu.currentX = fixedMenu.shiftX;
+
-
        fixedMenu.currentY = fixedMenu.shiftY;
+
-
         if (document.layers)
+
         <li class="cat-item cat-item-23"><a href="https://igem.org/Team.cgi?year=2010" title="">Team Profile</a></li>
-
        {
+
-
            fixedMenu.menu.left = fixedMenu.currentX;
+
<li class="cat-item cat-item-67"><a href="http://mac.appstorm.net/category/reviews/utilities/" title="">Utilities</a></li>
-
            fixedMenu.menu.top = fixedMenu.currentY;
+
<li class="cat-item cat-item-296"><a href="http://mac.appstorm.net/category/reviews/video/" title="">Video</a></li>
-
        }
+
<li class="cat-item cat-item-9"><a href="http://mac.appstorm.net/category/reviews/web-dev-review/" title="">Web Dev</a></li>
-
        else
+
</ul></li>
-
        {
+
-
            fixedMenu.menu.style.left = fixedMenu.currentX + 'px';
+
-
            fixedMenu.menu.style.top = fixedMenu.currentY + 'px';
+
-
        }
+
-
    }
+
-
    fixedMenu.menu.style.right = '';
+
<li class="not-active sub-nav"><a href="https://2010.igem.org/Team:UCSF/Project">Project</a><ul>
-
    fixedMenu.menu.style.bottom = '';
+
        <li class="cat-item cat-item-68"><a href="https://2010.igem.org/Team:UCSF/Project/Overview" title="">Overview</a></li>
-
};
+
<li class="cat-item cat-item-28"><a href="https://2010.igem.org/Team:UCSF/Project/Process" title="">Project Process</a></li>
 +
<li class="cat-item cat-item-364"><a href="https://2010.igem.org/Team:UCSF/Project/Design" title="">Project Design</a></li>
 +
<li class="cat-item cat-item-201"><a href="https://2010.igem.org/Team:UCSF/Project/Results" title="">Results</a></li>
 +
</ul></li>
-
fixedMenu.floatMenu = function()
+
<li class="not-active sub-nav"><a href="https://2010.igem.org/Team:UCSF/Notebook">Notebook</a><ul>
-
{
+
-
    fixedMenu.moveMenu();
+
-
    setTimeout('fixedMenu.floatMenu()', 20);
+
-
};
+
-
// addEvent designed by Aaron Moore
+
  <li class="cat-item cat-item-322"><a href="https://2010.igem.org/Team:UCSF/Team/Notebook/Ryan_Liang" title="">Ryan Liang</a></li>
-
fixedMenu.addEvent = function(element, listener, handler)
+
<li class="cat-item cat-item-483"><a href="https://2010.igem.org/Team:UCSF/Notebook/Ethan_Chan" title="">Ethan Chan</a></li>
-
{
+
<li class="cat-item cat-item-121"><a href="https://2010.igem.org/Team:UCSF/Notebook/Eric_Wong" title="">Eric Wong</a></li>
-
    if(typeof element[listener] != 'function' ||
+
<li class="cat-item cat-item-684"><a href="https://2010.igem.org/Team:UCSF/Notebook/Carmen_Zhou" title="">Carmen Zhou</a></li>
-
      typeof element[listener + '_num'] == 'undefined')
+
<li class="cat-item cat-item-19"><a href="https://2010.igem.org/Team:UCSF/Notebook/Lianna_Fung" title="">Lianna Fung</a></li>
-
    {
+
<li class="cat-item cat-item-76"><a href="https://2010.igem.org/Team:UCSF/Notebook/Connor_Grant" title="">Connor Grant</a></li>
-
        element[listener + '_num'] = 0;
+
<li class="cat-item cat-item-13"><a href="https://2010.igem.org/Team:UCSF/Notebook/Hannah Yan" title="">Hannah Yan</a></li>
-
        if (typeof element[listener] == 'function')
+
<li class="cat-item cat-item-184"><a href="https://2010.igem.org/Team:UCSF/Notebook/John Elam" title="">John Elam</a></li>
-
        {
+
<li class="cat-item cat-item-235"><a href="https://2010.igem.org/Team:UCSF/Notebook/Crystal_Liu" title="">Crystal Liu</a></li>
-
            element[listener + 0] = element[listener];
+
<li class="cat-item cat-item-264"><a href="https://2010.igem.org/Team:UCSF/Notebook/Sam_Zorn" title="">Sam Zorn</a></li>
-
            element[listener + '_num']++;
+
<li class="cat-item cat-item-556"><a href="https://2010.igem.org/Team:UCSF/Notebook/Min_Lin" title="">Min Lin</a></li>
-
        }
+
</ul></li>
-
        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
+
<li class="not-active"><a href="file:///C:/Users/Min%20Lin/Desktop/2.html">Parts</a></li>
-
    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()
+
<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>
-
    var testDiv = document.createElement("div");
+
<li class="cat-item cat-item-10"><a href="http://mac.appstorm.net/category/general/appstorm-news/" title="">AppStorm News</a>
-
    testDiv.id = "testingPositionFixed";
+
</li>
-
    testDiv.style.position = "fixed";
+
<li class="cat-item cat-item-45"><a href="http://mac.appstorm.net/category/general/competitions/" title="">Competitions</a>
-
    testDiv.style.top = "0px";
+
</li>
-
    testDiv.style.right = "0px";
+
<li class="cat-item cat-item-287"><a href="http://mac.appstorm.net/category/general/live-coverage/" title="">Live Coverage</a>
-
    document.body.appendChild(testDiv);
+
</li>
-
    var offset = 1;
+
<li class="cat-item cat-item-31"><a href="http://mac.appstorm.net/category/general/mactastik/" title="">Mactastik</a>
-
    if (typeof testDiv.offsetTop == "number"
+
</li>
-
        && testDiv.offsetTop != null
+
<li class="cat-item cat-item-371"><a href="http://mac.appstorm.net/category/general/screencasts/" title="">Screencasts</a>
-
        && testDiv.offsetTop != "undefined")
+
</li>
-
    {
+
<li class="cat-item cat-item-219"><a href="http://mac.appstorm.net/category/general/sponsors/" title="">Sponsors</a>
-
        offset = parseInt(testDiv.offsetTop);
+
</li>
-
    }
+
</ul></li>
-
    if (offset == 0)
+
-
    {
+
-
        return true;
+
-
    }
+
-
    return false;
+
<li class="not-active"><a href="http://mac.appstorm.net/about/">Cooperation</a></li>
-
};
+
<li class="not-active"><a href="http://mac.appstorm.net/about/">Sponser</a></li>
 +
<li class="right"><script>writeHref();</script>Edit</a></li>
 +
<li class="right"><a href="https://igem.org/Login">Log in</a></li>
 +
</ul>
 +
</div>
-
fixedMenu.init = function()
 
-
{
 
-
    if (fixedMenu.supportsFixed())
 
-
        fixedMenu.menu.style.position = "fixed";
 
-
    else
 
-
    {
 
-
        var ob =
 
-
            document.layers
 
-
            ? fixedMenu.menu
 
-
            : fixedMenu.menu.style;
 
-
        fixedMenu.targetLeft = parseInt(ob.left);
+
<div style="width:100%px;background-color:#FFfF04;margin-top:0px;-moz-border-radius: 4px;
-
        fixedMenu.targetTop = parseInt(ob.top);
+
            -webkit-border-radius: 4px;
-
        fixedMenu.targetRight = parseInt(ob.right);
+
            border-radius: 4px;padding-bottom:10px;">
-
        fixedMenu.targetBottom = parseInt(ob.bottom);
+
<form action="https://2010.igem.org/Team:UCSF/Search" id="cse-search-box" style="margin:10px;">
 +
<h3>Search UCSF</h3>
 +
<div>
 +
    <input type="hidden" name="cx" value="003596668401458118461:zap8jgrah-m" />
 +
    <input type="hidden" name="cof" value="FORID:9" />
 +
    <input type="hidden" name="ie" value="UTF-8" />
 +
    <input type="text" name="q" size="81" />
 +
    <input type="submit" name="sa" value="Search" size="8"/>
 +
</div>
 +
</form>
 +
</div>
-
        if (document.layers)
 
-
        {
 
-
            menu.left = 0;
 
-
            menu.top = 0;
 
-
        }
 
-
        fixedMenu.addEvent(window, 'onscroll', fixedMenu.moveMenu);
 
-
        fixedMenu.floatMenu();
 
-
    }
 
-
};
 
-
fixedMenu.addEvent(window, 'onload', fixedMenu.init);
+
<script type="text/javascript" src="http://www.google.com/cse/brand?form=cse-search-box&lang=en"></script>
 +
<!--<img src="https://static.igem.org/mediawiki/2010/e/ef/UCSF_2010_Transparent_NK.png" width="150"/>-->
 +
<!--<img src="https://static.igem.org/mediawiki/igem.org/9/9a/Natural_Killer.jpg" width="196"/>-->
-
//--></script>
 
-
</body>
 
-
</html>
 
 +
<div id="cse-search-results" style="margin-left:90px;"></div>
-
==='''Main'''===
+
<script type="text/javascript">
-
Hello world
+
  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>
-
asdjfh
 
-
asdf
 
-
as
 
-
df
 
-
a
 
-
sfd
 
-
a
 
-
sd
 
-
f
 
-
a
 
-
df
 
-
a
 
-
sdf
 
-
d
+
</div>
-
f
+
 
-
a
+
</html>
-
g
+
-
da
+
-
g
+

Latest revision as of 04:15, 24 September 2010