Template:UIUC09Temp

From 2009.igem.org

(Difference between revisions)
 
(220 intermediate revisions not shown)
Line 1: Line 1:
<html>
<html>
-
<style type="text/css">
+
<style type=text/css>
-
<!--
+
.firstHeading {
-
  .firstHeading {display: none;}
+
display:none;
-
  body {height:100%; margin:0; padding:0; background-color:#003C7D;}
+
-
  #globalWrapper {left:8%; width:84%; background-color:#F47F24;}
+
-
  #content {background-color:#ffffff;
+
-
            border-left-color:#F47F24;
+
-
            border-right-color:#F47F24;}
+
-
  #footer-box {background-color:#F47F24;
+
-
                border-color:#F47F24;}
+
-
/*Coding for menu bar from DynamicDrive (www.dynamicdrive.com)*/
+
-
.ddsmoothmenu{
+
-
font: bold 12px Verdana;
+
-
background: #F47F24; /*background of menu bar (default state)*/
+
-
width: 100%;
+
}
}
-
.ddsmoothmenu ul{
+
body {
-
z-index:100;
+
position:relative;
-
margin: 0;
+
background:url(https://static.igem.org/mediawiki/2009/7/71/Illinois09background.gif) top left repeat-x #6e8bbf;
-
padding: 0;
+
-
list-style-type: none;
+
}
}
-
/*Top level list items*/
+
#content {
-
.ddsmoothmenu ul li{
+
background:url(https://static.igem.org/mediawiki/2009/9/9d/Illinois09bodybackground.gif) top left repeat-x #6e8bbf;
-
position: relative;
+
border:0;
-
display: inline;
+
-
float: left;
+
}
}
-
/*Top level menu link items style*/
+
#uicontent {
-
.ddsmoothmenu ul li a{
+
width:780px;
-
display: block;
+
position:relative;
-
background: #F47F24; /*background of menu items (default state)*/
+
float:left;
-
color: white;
+
-
padding: 8px 10px;
+
-
border-right: 1px solid #778;
+
-
color: #2d2b2b;
+
-
text-decoration: none;
+
}
}
-
* html .ddsmoothmenu ul li a{ /*IE6 hack to get sub menu links to behave correctly*/
+
#uicontentbox {
-
display: inline-block;
+
border:solid 1px;
 +
margin:0px 5px 20px;
 +
padding:10px;
 +
background:#ddd;
}
}
-
.ddsmoothmenu ul li a:link, .ddsmoothmenu ul li a:visited{
+
#footer-box {
-
color: white;
+
background-color:#6e8bbf;
 +
border-color:#6e8bbf;
}
}
-
.ddsmoothmenu ul li a.selected{ /*CSS class that's dynamically added to the currently active menu items' LI A element*/
+
div#top-section,div#content {
-
background: #003C7D;  
+
border-width:1px;
-
color: white;
+
border-color:#fff;
}
}
-
.ddsmoothmenu ul li a:hover{
+
h2 {
-
background: #003C7D; /*background of menu items during onmouseover (hover state)*/
+
color:#F47F24;
-
color: white;
+
font-weight:bold;
}
}
-
+
 
-
/*1st sub level menu*/
+
table {
-
.ddsmoothmenu ul li ul{
+
background: #ddd;
-
position: absolute;
+
-
left: 0;
+
-
display: none; /*collapse all sub menus to begin with*/
+
-
visibility: hidden;
+
}
}
-
/*Sub level menu list items (undo style from Top level List Items)*/
+
table.calendar td {
-
.ddsmoothmenu ul li ul li{
+
vertical-align:top;
-
display: list-item;
+
align:center;
-
float: none;
+
}
}
-
/*All subsequent sub menu levels vertical offset after 1st level sub menu */
+
table.month {
-
.ddsmoothmenu ul li ul li ul{
+
background-color:#F47F24;
-
top: 0;
+
border:solid 1px;
}
}
-
/* Sub level menu links style */
+
table.month .heading td {
-
.ddsmoothmenu ul li ul li a{
+
background-color:#003C7D;
-
font: normal 13px Verdana;
+
color:#F47F24;
-
width: 160px; /*width of sub menus*/
+
text-align:center;
-
padding: 5px;
+
font-weight:bold;
-
margin: 0;
+
text-size:140%;
-
border-top-width: 0;
+
-
border-bottom: 1px solid gray;
+
}
}
-
/* Holly Hack for IE \*/
+
table.month .dow td {
-
* html .ddsmoothmenu{height: 1%;} /*Holly Hack for IE7 and below*/
+
color:#000;
 +
text-align:center;
 +
font-size:100%;
 +
}
 +
table.month td {
 +
border:none;
 +
text-align:center;
 +
background-color:#F47F24;
 +
}
-
/* ######### CSS classes applied to down and right arrow images  ######### */
+
table.month a:hover {
 +
background-color:#CCC;
 +
text-decoration:none;
 +
}
-
.downarrowclass{
+
.day-active {
-
position: absolute;
+
color:#003C7D;
-
top: 12px;
+
font-weight:bold;
-
right: 7px;
+
}
 +
 
 +
.day-empty {
 +
color:#000;
 +
}
 +
 
 +
/*Following coding for menu bars found at http://ago.tanfa.co.uk/css/examples/menu/tutorial-h.html*/
 +
/**************** horizontal menu coding *****************/
 +
#menu {
 +
position:relative;
 +
float:left;
 +
}
 +
 
 +
#menu ul {
 +
list-style:none;
 +
margin:0;
 +
padding:0;
 +
float:left;
 +
}
 +
 
 +
#menu a.gray, #menu a.orange {
 +
text-align:center;
 +
vertical-align:top;
 +
text-transform:uppercase;
 +
display:block;
 +
margin:0;
 +
}
 +
 
 +
#menu a.orange {
 +
width:100px;
 +
color:#003C7D;
 +
font-weight:bold;
 +
font-size:10px;
 +
background:url(https://static.igem.org/mediawiki/2009/4/49/UI09orangebutton.png);
 +
text-decoration:none;
 +
}
 +
 
 +
#menu a.gray {
 +
width:125px;
 +
color:#000;
 +
font-weight:normal;
 +
font-size:11px;
 +
border-width:1px;
 +
border-style:solid;
 +
border-color:#ccc #888 #555 #bbb;
 +
text-decoration:none;
 +
background:#ccc;
 +
}
 +
 
 +
#menu a.orange:hover {
 +
color:#fff;
 +
background:url(https://static.igem.org/mediawiki/2009/0/07/UI09orangehover.png);
 +
}
 +
 
 +
#menu a.gray:hover {
 +
color:#fff;
 +
background: #003C7D;
 +
}
 +
 
 +
#menu li {
 +
position:relative;
 +
}
 +
 
 +
/**************** vertical menu coding (from DynamicDrive) *****************/
 +
.vmenu{
 +
margin: 5px;
 +
padding: 0;
 +
width: 135px; /*width of menu*/
 +
position: relative;
 +
float: left;
 +
}
 +
 
 +
.vmenu a.menuitem, .vmenu div.submenu ul li a {
 +
height:25px;
 +
display:block;
 +
margin:1px;
 +
padding:0px 5px;
 +
}
 +
 
 +
.vmenu a.menuitem{
 +
text-transform:uppercase;
 +
color:#fff;
 +
font-weight:bold;
 +
font-size:14px;
 +
background:url(https://static.igem.org/mediawiki/2009/b/b5/UI09Sidemain.png);
 +
text-decoration:none;
 +
display: block;
 +
position: relative; /*To help in the anchoring of the ".statusicon" icon image*/
 +
}
 +
 
 +
 
 +
.vmenu a.menuitem:visited, .vmenu .menuitem:active{
 +
color: white;
}
}
-
.rightarrowclass{
+
.vmenu a.menuitem .statusicon{ /*CSS for icon image that gets dynamically added to headers*/
position: absolute;
position: absolute;
-
top: 6px;
+
top: 5px;
right: 5px;
right: 5px;
 +
border: none;
}
}
-
/* ######### CSS for shadow added to sub menus  ######### */
+
.vmenu a.menuitem:hover{
 +
color:#fff;
 +
background:url(https://static.igem.org/mediawiki/2009/c/cf/UI09Sidehoverm.png);
 +
}
-
.ddshadow{
+
.vmenu div.submenu ul{ /*UL of each sub menu*/
-
position: absolute;
+
list-style: none;
-
left: 0;
+
margin: 0;
-
top: 0;
+
padding: 0;
-
width: 0;
+
-
height: 0;
+
-
background: silver;
+
}
}
-
.toplevelshadow{ /*shadow opacity. Doesn't work in IE*/
+
.vmenu div.submenu ul li a{
-
opacity: 0.8;
+
display: block;
 +
color:#fff;
 +
font-weight:bold;
 +
font-size:12px;
 +
background:url(https://static.igem.org/mediawiki/2009/1/18/UI09Sidethird.png);
 +
text-decoration:none;
}
}
-
-->
 
-
</style>
 
-
<script type="text/javascript">
 
-
<!--
 
-
//** Smooth Navigational Menu- By Dynamic Drive DHTML code library: http://www.dynamicdrive.com
 
-
//** Script Download/ instructions page: http://www.dynamicdrive.com/dynamicindex1/ddlevelsmenu/
 
-
//** Menu created: Nov 12, 2008
 
-
//** Dec 12th, 08" (v1.01): Fixed Shadow issue when multiple LIs within the same UL (level) contain sub menus: http://www.dynamicdrive.com/forums/showthread.php?t=39177&highlight=smooth
+
.vmenu div.submenu ul li a:hover{
 +
color:#fff;
 +
background:#003C7D;
 +
}
-
//** Feb 11th, 09" (v1.02): The currently active main menu item (LI A) now gets a CSS class of ".selected", including sub menu items.
+
/**************** Navigation Buttons (for Project and Experiments pages) *****************/
 +
#nav {
 +
width: 770px;
 +
height: 160px;
 +
margin: 5px;
 +
padding: 0px;
 +
}
-
//** May 1st, 09" (v1.3):
+
#nav a {
-
//** 1) Now supports vertical (side bar) menu mode- set "orientation" to 'v'
+
display: inline-block;
-
//** 2) In IE6, shadows are now always disabled
+
list-style:none;
 +
width: 175px;
 +
height: 150px;
 +
margin: 5px 37px;
 +
border: none;
 +
color: #f00;
 +
font-size: 16px;
 +
font-weight: bold;
 +
text-transform: uppercase;
 +
text-align: center;
 +
}
 +
#nav a.intro {
 +
background: url(https://static.igem.org/mediawiki/2009/6/64/UI09Intropic.png);
 +
}
-
var ddsmoothmenu={
+
#nav a.intro:hover {
 +
background: url(https://static.igem.org/mediawiki/2009/c/c5/UI09Introhover.png);
 +
}
-
transition: {overtime:300, outtime:300}, //duration of slide in/ out animation, in milliseconds
+
#nav a.research {
-
shadow: {enabled:true, offsetx:5, offsety:5},
+
background: url(https://static.igem.org/mediawiki/2009/c/cb/UI09Researchpic.png);
 +
}
-
///////Stop configuring beyond here///////////////////////////
+
#nav a.research:hover {
 +
background: url(https://static.igem.org/mediawiki/2009/a/a3/UI09Researchhover.png);
 +
}
-
detectwebkit: navigator.userAgent.toLowerCase().indexOf("applewebkit")!=-1, //detect WebKit browsers (Safari, Chrome etc)
+
#nav a.modeling {
-
detectie6: document.all && !window.XMLHttpRequest,
+
background: url(https://static.igem.org/mediawiki/2009/a/a7/UI09Modelingpic.png);
 +
}
-
getajaxmenu:function($, setting){ //function to fetch external page containing the panel DIVs
+
#nav a.modeling:hover {
-
var $menucontainer=$('#'+setting.contentsource[0]) //reference empty div on page that will hold menu
+
background: url(https://static.igem.org/mediawiki/2009/0/06/UI09Modelinghover.png);
-
$menucontainer.html("Loading Menu...")
+
}
-
$.ajax({
+
-
url: setting.contentsource[1], //path to external menu file
+
-
async: true,
+
-
error:function(ajaxrequest){
+
-
$menucontainer.html('Error fetching content. Server Response: '+ajaxrequest.responseText)
+
-
},
+
-
success:function(content){
+
-
$menucontainer.html(content)
+
-
ddsmoothmenu.buildmenu($, setting)
+
-
}
+
-
})
+
-
},
+
 +
#nav a.protocols {
 +
background: url(https://static.igem.org/mediawiki/2009/f/f1/UI09Protocolsbutton.png);
 +
}
-
buildmenu:function($, setting){
+
#nav a.protocols:hover {
-
var smoothmenu=ddsmoothmenu
+
background: url(https://static.igem.org/mediawiki/2009/f/f0/UI09Protocolshover.png);
-
var $mainmenu=$("#"+setting.mainmenuid+">ul") //reference main menu UL
+
}
-
$mainmenu.parent().get(0).className=setting.classname || "ddsmoothmenu"
+
-
var $headers=$mainmenu.find("ul").parent()
+
-
$headers.hover(
+
-
function(e){
+
-
$(this).children('a:eq(0)').addClass('selected')
+
-
},
+
-
function(e){
+
-
$(this).children('a:eq(0)').removeClass('selected')
+
-
}
+
-
)
+
-
$headers.each(function(i){ //loop through each LI header
+
-
var $curobj=$(this).css({zIndex: 100-i}) //reference current LI header
+
-
var $subul=$(this).find('ul:eq(0)').css({display:'block'})
+
-
this._dimensions={w:this.offsetWidth, h:this.offsetHeight, subulw:$subul.outerWidth(), subulh:$subul.outerHeight()}
+
-
this.istopheader=$curobj.parents("ul").length==1? true : false //is top level header?
+
-
$subul.css({top:this.istopheader && setting.orientation!='v'? this._dimensions.h+"px" : 0})
+
-
$curobj.children("a:eq(0)").css(this.istopheader? {paddingRight: smoothmenu.arrowimages.down[2]} : {}).append( //add arrow images
+
-
'<img src="'+ (this.istopheader && setting.orientation!='v'? smoothmenu.arrowimages.down[1] : smoothmenu.arrowimages.right[1])
+
-
+'" class="' + (this.istopheader && setting.orientation!='v'? smoothmenu.arrowimages.down[0] : smoothmenu.arrowimages.right[0])
+
-
+ '" style="border:0;" />'
+
-
)
+
-
if (smoothmenu.shadow.enabled){
+
-
this._shadowoffset={x:(this.istopheader?$subul.offset().left+smoothmenu.shadow.offsetx : this._dimensions.w), y:(this.istopheader? $subul.offset().top+smoothmenu.shadow.offsety : $curobj.position().top)} //store this shadow's offsets
+
-
if (this.istopheader)
+
-
$parentshadow=$(document.body)
+
-
else{
+
-
var $parentLi=$curobj.parents("li:eq(0)")
+
-
$parentshadow=$parentLi.get(0).$shadow
+
-
}
+
-
this.$shadow=$('<div class="ddshadow'+(this.istopheader? ' toplevelshadow' : '')+'"></div>').prependTo($parentshadow).css({left:this._shadowoffset.x+'px', top:this._shadowoffset.y+'px'})  //insert shadow DIV and set it to parent node for the next shadow div
+
-
}
+
-
$curobj.hover(
+
-
function(e){
+
-
var $targetul=$(this).children("ul:eq(0)")
+
-
this._offsets={left:$(this).offset().left, top:$(this).offset().top}
+
-
var menuleft=this.istopheader && setting.orientation!='v'? 0 : this._dimensions.w
+
-
menuleft=(this._offsets.left+menuleft+this._dimensions.subulw>$(window).width())? (this.istopheader && setting.orientation!='v'? -this._dimensions.subulw+this._dimensions.w : -this._dimensions.w) : menuleft //calculate this sub menu's offsets from its parent
+
-
if ($targetul.queue().length<=1){ //if 1 or less queued animations
+
-
$targetul.css({left:menuleft+"px", width:this._dimensions.subulw+'px'}).animate({height:'show',opacity:'show'}, ddsmoothmenu.transition.overtime)
+
-
if (smoothmenu.shadow.enabled){
+
-
var shadowleft=this.istopheader? $targetul.offset().left+ddsmoothmenu.shadow.offsetx : menuleft
+
-
var shadowtop=this.istopheader?$targetul.offset().top+smoothmenu.shadow.offsety : this._shadowoffset.y
+
-
if (!this.istopheader && ddsmoothmenu.detectwebkit){ //in WebKit browsers, restore shadow's opacity to full
+
-
this.$shadow.css({opacity:1})
+
-
}
+
-
this.$shadow.css({overflow:'', width:this._dimensions.subulw+'px', left:shadowleft+'px', top:shadowtop+'px'}).animate({height:this._dimensions.subulh+'px'}, ddsmoothmenu.transition.overtime)
+
-
}
+
-
}
+
-
},
+
-
function(e){
+
-
var $targetul=$(this).children("ul:eq(0)")
+
-
$targetul.animate({height:'hide', opacity:'hide'}, ddsmoothmenu.transition.outtime)
+
-
if (smoothmenu.shadow.enabled){
+
-
if (ddsmoothmenu.detectwebkit){ //in WebKit browsers, set first child shadow's opacity to 0, as "overflow:hidden" doesn't work in them
+
-
this.$shadow.children('div:eq(0)').css({opacity:0})
+
-
}
+
-
this.$shadow.css({overflow:'hidden'}).animate({height:0}, ddsmoothmenu.transition.outtime)
+
-
}
+
-
}
+
-
) //end hover
+
-
}) //end $headers.each()
+
-
$mainmenu.find("ul").css({display:'none', visibility:'visible'})
+
-
},
+
-
init:function(setting){
+
#nav a.vectors {
-
if (typeof setting.customtheme=="object" && setting.customtheme.length==2){ //override default menu colors (default/hover) with custom set?
+
background: url(https://static.igem.org/mediawiki/2009/7/7c/UI09Vectorsbutton.png);
-
var mainmenuid='#'+setting.mainmenuid
+
-
var mainselector=(setting.orientation=="v")? mainmenuid : mainmenuid+', '+mainmenuid
+
-
document.write('<style type="text/css">\n'
+
-
+mainselector+' ul li a {background:'+setting.customtheme[0]+';}\n'
+
-
+mainmenuid+' ul li a:hover {background:'+setting.customtheme[1]+';}\n'
+
-
+'</style>')
+
-
}
+
-
this.shadow.enabled=(document.all && !window.XMLHttpRequest)? false : true //in IE6, always disable shadow
+
-
jQuery(document).ready(function($){ //ajax menu?
+
-
if (typeof setting.contentsource=="object"){ //if external ajax menu
+
-
ddsmoothmenu.getajaxmenu($, setting)
+
-
}
+
-
else{ //else if markup menu
+
-
ddsmoothmenu.buildmenu($, setting)
+
-
}
+
-
})
+
}
}
-
} //end ddsmoothmenu variable
+
#nav a.vectors:hover {
 +
background: url(https://static.igem.org/mediawiki/2009/f/f5/UI09Vectorshover.png);
 +
}
-
//Initialize Menu instance(s):
+
#nav a.results {
-
-->
+
width: 600px;
-
</script>
+
height: 35px;
 +
background:#003C7D
 +
}
 +
 
 +
#nav a.results:hover {
 +
background:#6e8bbf;
 +
}
 +
 
 +
</style>
</html>
</html>

Latest revision as of 03:55, 22 October 2009