Template:Team:Calgary/Main Header
From 2011.igem.org
(Difference between revisions)
Emily Hicks (Talk | contribs) |
|||
(33 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
- | |||
<head> | <head> | ||
+ | <!--jQuery and jQuery-UI additions--> | ||
+ | <script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.js"></script> | ||
+ | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | ||
+ | |||
+ | <!--JQuery Cycle Plugin--> | ||
+ | <script type="text/javascript" src="http://cloud.github.com/downloads/malsup/cycle/jquery.cycle.all.latest.js"></script> | ||
+ | |||
+ | <!--JQuery Easing Plugin--> | ||
+ | <script type="text/javascript"> | ||
+ | /* | ||
+ | * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/ | ||
+ | * | ||
+ | * Uses the built in easing capabilities added In jQuery 1.1 | ||
+ | * to offer multiple easing options | ||
+ | * | ||
+ | * TERMS OF USE - jQuery Easing | ||
+ | * | ||
+ | * Open source under the BSD License. | ||
+ | * | ||
+ | * Copyright © 2008 George McGinley Smith | ||
+ | * All rights reserved. | ||
+ | * | ||
+ | * Redistribution and use in source and binary forms, with or without modification, | ||
+ | * are permitted provided that the following conditions are met: | ||
+ | * | ||
+ | * Redistributions of source code must retain the above copyright notice, this list of | ||
+ | * conditions and the following disclaimer. | ||
+ | * Redistributions in binary form must reproduce the above copyright notice, this list | ||
+ | * of conditions and the following disclaimer in the documentation and/or other materials | ||
+ | * provided with the distribution. | ||
+ | * | ||
+ | * Neither the name of the author nor the names of contributors may be used to endorse | ||
+ | * or promote products derived from this software without specific prior written permission. | ||
+ | * | ||
+ | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | ||
+ | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
+ | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
+ | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
+ | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE | ||
+ | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | ||
+ | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
+ | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
+ | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
+ | * | ||
+ | */ | ||
+ | |||
+ | // t: current time, b: begInnIng value, c: change In value, d: duration | ||
+ | jQuery.easing['jswing'] = jQuery.easing['swing']; | ||
+ | |||
+ | jQuery.extend( jQuery.easing, | ||
+ | { | ||
+ | def: 'easeOutQuad', | ||
+ | swing: function (x, t, b, c, d) { | ||
+ | //alert(jQuery.easing.default); | ||
+ | return jQuery.easing[jQuery.easing.def](x, t, b, c, d); | ||
+ | }, | ||
+ | easeInQuad: function (x, t, b, c, d) { | ||
+ | return c*(t/=d)*t + b; | ||
+ | }, | ||
+ | easeOutQuad: function (x, t, b, c, d) { | ||
+ | return -c *(t/=d)*(t-2) + b; | ||
+ | }, | ||
+ | easeInOutQuad: function (x, t, b, c, d) { | ||
+ | if ((t/=d/2) < 1) return c/2*t*t + b; | ||
+ | return -c/2 * ((--t)*(t-2) - 1) + b; | ||
+ | }, | ||
+ | easeInCubic: function (x, t, b, c, d) { | ||
+ | return c*(t/=d)*t*t + b; | ||
+ | }, | ||
+ | easeOutCubic: function (x, t, b, c, d) { | ||
+ | return c*((t=t/d-1)*t*t + 1) + b; | ||
+ | }, | ||
+ | easeInOutCubic: function (x, t, b, c, d) { | ||
+ | if ((t/=d/2) < 1) return c/2*t*t*t + b; | ||
+ | return c/2*((t-=2)*t*t + 2) + b; | ||
+ | }, | ||
+ | easeInQuart: function (x, t, b, c, d) { | ||
+ | return c*(t/=d)*t*t*t + b; | ||
+ | }, | ||
+ | easeOutQuart: function (x, t, b, c, d) { | ||
+ | return -c * ((t=t/d-1)*t*t*t - 1) + b; | ||
+ | }, | ||
+ | easeInOutQuart: function (x, t, b, c, d) { | ||
+ | if ((t/=d/2) < 1) return c/2*t*t*t*t + b; | ||
+ | return -c/2 * ((t-=2)*t*t*t - 2) + b; | ||
+ | }, | ||
+ | easeInQuint: function (x, t, b, c, d) { | ||
+ | return c*(t/=d)*t*t*t*t + b; | ||
+ | }, | ||
+ | easeOutQuint: function (x, t, b, c, d) { | ||
+ | return c*((t=t/d-1)*t*t*t*t + 1) + b; | ||
+ | }, | ||
+ | easeInOutQuint: function (x, t, b, c, d) { | ||
+ | if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; | ||
+ | return c/2*((t-=2)*t*t*t*t + 2) + b; | ||
+ | }, | ||
+ | easeInSine: function (x, t, b, c, d) { | ||
+ | return -c * Math.cos(t/d * (Math.PI/2)) + c + b; | ||
+ | }, | ||
+ | easeOutSine: function (x, t, b, c, d) { | ||
+ | return c * Math.sin(t/d * (Math.PI/2)) + b; | ||
+ | }, | ||
+ | easeInOutSine: function (x, t, b, c, d) { | ||
+ | return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; | ||
+ | }, | ||
+ | easeInExpo: function (x, t, b, c, d) { | ||
+ | return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; | ||
+ | }, | ||
+ | easeOutExpo: function (x, t, b, c, d) { | ||
+ | return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; | ||
+ | }, | ||
+ | easeInOutExpo: function (x, t, b, c, d) { | ||
+ | if (t==0) return b; | ||
+ | if (t==d) return b+c; | ||
+ | if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; | ||
+ | return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; | ||
+ | }, | ||
+ | easeInCirc: function (x, t, b, c, d) { | ||
+ | return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; | ||
+ | }, | ||
+ | easeOutCirc: function (x, t, b, c, d) { | ||
+ | return c * Math.sqrt(1 - (t=t/d-1)*t) + b; | ||
+ | }, | ||
+ | easeInOutCirc: function (x, t, b, c, d) { | ||
+ | if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; | ||
+ | return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; | ||
+ | }, | ||
+ | easeInElastic: function (x, t, b, c, d) { | ||
+ | var s=1.70158;var p=0;var a=c; | ||
+ | if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; | ||
+ | if (a < Math.abs(c)) { a=c; var s=p/4; } | ||
+ | else var s = p/(2*Math.PI) * Math.asin (c/a); | ||
+ | return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; | ||
+ | }, | ||
+ | easeOutElastic: function (x, t, b, c, d) { | ||
+ | var s=1.70158;var p=0;var a=c; | ||
+ | if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; | ||
+ | if (a < Math.abs(c)) { a=c; var s=p/4; } | ||
+ | else var s = p/(2*Math.PI) * Math.asin (c/a); | ||
+ | return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; | ||
+ | }, | ||
+ | easeInOutElastic: function (x, t, b, c, d) { | ||
+ | var s=1.70158;var p=0;var a=c; | ||
+ | if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); | ||
+ | if (a < Math.abs(c)) { a=c; var s=p/4; } | ||
+ | else var s = p/(2*Math.PI) * Math.asin (c/a); | ||
+ | if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; | ||
+ | return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; | ||
+ | }, | ||
+ | easeInBack: function (x, t, b, c, d, s) { | ||
+ | if (s == undefined) s = 1.70158; | ||
+ | return c*(t/=d)*t*((s+1)*t - s) + b; | ||
+ | }, | ||
+ | easeOutBack: function (x, t, b, c, d, s) { | ||
+ | if (s == undefined) s = 1.70158; | ||
+ | return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; | ||
+ | }, | ||
+ | easeInOutBack: function (x, t, b, c, d, s) { | ||
+ | if (s == undefined) s = 1.70158; | ||
+ | if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; | ||
+ | return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; | ||
+ | }, | ||
+ | easeInBounce: function (x, t, b, c, d) { | ||
+ | return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; | ||
+ | }, | ||
+ | easeOutBounce: function (x, t, b, c, d) { | ||
+ | if ((t/=d) < (1/2.75)) { | ||
+ | return c*(7.5625*t*t) + b; | ||
+ | } else if (t < (2/2.75)) { | ||
+ | return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; | ||
+ | } else if (t < (2.5/2.75)) { | ||
+ | return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; | ||
+ | } else { | ||
+ | return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; | ||
+ | } | ||
+ | }, | ||
+ | easeInOutBounce: function (x, t, b, c, d) { | ||
+ | if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; | ||
+ | return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | /* | ||
+ | * | ||
+ | * TERMS OF USE - EASING EQUATIONS | ||
+ | * | ||
+ | * Open source under the BSD License. | ||
+ | * | ||
+ | * Copyright © 2001 Robert Penner | ||
+ | * All rights reserved. | ||
+ | * | ||
+ | * Redistribution and use in source and binary forms, with or without modification, | ||
+ | * are permitted provided that the following conditions are met: | ||
+ | * | ||
+ | * Redistributions of source code must retain the above copyright notice, this list of | ||
+ | * conditions and the following disclaimer. | ||
+ | * Redistributions in binary form must reproduce the above copyright notice, this list | ||
+ | * of conditions and the following disclaimer in the documentation and/or other materials | ||
+ | * provided with the distribution. | ||
+ | * | ||
+ | * Neither the name of the author nor the names of contributors may be used to endorse | ||
+ | * or promote products derived from this software without specific prior written permission. | ||
+ | * | ||
+ | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | ||
+ | * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF | ||
+ | * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
+ | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, | ||
+ | * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE | ||
+ | * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED | ||
+ | * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
+ | * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
+ | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
+ | * | ||
+ | */ | ||
+ | </script> | ||
+ | <!--Script to activate dropdown menu function. Uses jQuery syntax.--> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function () { | ||
+ | $(‘.dropdown’).each(function () { | ||
+ | $(this).parent().eq(0).hover(function () { | ||
+ | $(‘.dropdown:eq(0)’, this).show(); | ||
+ | }, function () { | ||
+ | $(‘.dropdown:eq(0)’, this).hide(); | ||
+ | }); | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | </script> | ||
+ | <!--Circle effects. jQuery custom functions make all of us happy. ^_^ --> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | |||
+ | jQuery.fn.setcircle = function(){ | ||
+ | this.css({ | ||
+ | "display":"block", | ||
+ | "position":"absolute", | ||
+ | "margin-left":790, | ||
+ | "margin-top":-250, | ||
+ | }); | ||
+ | } | ||
+ | |||
+ | jQuery.fn.resetcircle = function(){ | ||
+ | this.hide(); | ||
+ | $('#home #circle0').show(); | ||
+ | $('#team #circle1').show(); | ||
+ | $('#project #circle2').show(); | ||
+ | $('#parts #circle3').show(); | ||
+ | $('#notebook #circle4').show(); | ||
+ | $('#outreach #circle5').show(); | ||
+ | $('#sponsors #circle6').show(); | ||
+ | } | ||
+ | //homebutton set | ||
+ | $('#homebutton').mouseover(function(){ | ||
+ | $('.headercircle').hide(); | ||
+ | $('#circle0').show(); | ||
+ | $('#circle0').setcircle(); | ||
+ | }); | ||
+ | $('#homebutton').mouseout(function(){ | ||
+ | $('#circle0').resetcircle(); | ||
+ | }); | ||
+ | |||
+ | //teambutton set | ||
+ | $('#teambutton').mouseover(function(){ | ||
+ | $('.headercircle').hide(); | ||
+ | $('#circle1').show(); | ||
+ | $('#circle1').setcircle(); | ||
+ | }); | ||
+ | $('#teambutton').mouseout(function(){ | ||
+ | $('#circle1').resetcircle(); | ||
+ | }); | ||
+ | |||
+ | //projectbutton set | ||
+ | $('#projectbutton').mouseover(function(){ | ||
+ | $('.headercircle').hide(); | ||
+ | $('#circle2').show(); | ||
+ | $('#circle2').setcircle(); | ||
+ | }); | ||
+ | $('#projectbutton').mouseout(function(){ | ||
+ | $('#circle2').resetcircle(); | ||
+ | }); | ||
+ | |||
+ | //partsbutton set | ||
+ | $('#partsbutton').mouseover(function(){ | ||
+ | $('.headercircle').hide(); | ||
+ | $('#circle3').show(); | ||
+ | $('#circle3').setcircle(); | ||
+ | }); | ||
+ | $('#partsbutton').mouseout(function(){ | ||
+ | $('#circle3').resetcircle(); | ||
+ | }); | ||
+ | |||
+ | //notebookbutton set | ||
+ | $('#notebookbutton').mouseover(function(){ | ||
+ | $('.headercircle').hide(); | ||
+ | $('#circle4').show(); | ||
+ | $('#circle4').setcircle(); | ||
+ | }); | ||
+ | $('#notebookbutton').mouseout(function(){ | ||
+ | $('#circle4').resetcircle(); | ||
+ | }); | ||
+ | |||
+ | //outreachbutton set | ||
+ | $('#outreachbutton').mouseover(function(){ | ||
+ | $('.headercircle').hide(); | ||
+ | $('#circle5').show(); | ||
+ | $('#circle5').setcircle(); | ||
+ | }); | ||
+ | $('#outreachbutton').mouseout(function(){ | ||
+ | $('#circle5').resetcircle(); | ||
+ | }); | ||
+ | |||
+ | //sponsorsbutton set | ||
+ | $('#sponsorsbutton').mouseover(function(){ | ||
+ | $('.headercircle').hide(); | ||
+ | $('#circle6').show(); | ||
+ | $('#circle6').setcircle(); | ||
+ | }); | ||
+ | $('#sponsorsbutton').mouseout(function(){ | ||
+ | $('#circle6').resetcircle(); | ||
+ | }); | ||
+ | |||
+ | //igembutton set | ||
+ | $('#igembutton').mouseover(function(){ | ||
+ | $('.headercircle').hide(); | ||
+ | $('#circle7').show(); | ||
+ | $('#circle7').setcircle(); | ||
+ | }); | ||
+ | $('#igembutton').mouseout(function(){ | ||
+ | $('#circle7').resetcircle(); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | |||
+ | |||
<style> | <style> | ||
/***Master styling of text components, because we like consistency***/ | /***Master styling of text components, because we like consistency***/ | ||
Line 9: | Line 343: | ||
border: 0; | border: 0; | ||
font-family: Arial; | font-family: Arial; | ||
+ | } | ||
+ | |||
+ | a{ | ||
+ | color: #0063bd; | ||
} | } | ||
Line 16: | Line 354: | ||
} | } | ||
+ | a, a:visited{ | ||
+ | color: #0063bd; | ||
+ | } | ||
+ | |||
+ | table tr{ | ||
+ | margin-top: 5px; | ||
+ | margin-bottom: 5px; | ||
+ | } | ||
+ | |||
+ | table td{ | ||
+ | margin-left: 5px; | ||
+ | margin-right: 5px; | ||
+ | } | ||
+ | |||
+ | #sponsors table tr td img{ | ||
+ | width: 200px; | ||
+ | padding-right: 30px; | ||
+ | padding-left: 10px; | ||
+ | } | ||
/***End master styling***/ | /***End master styling***/ | ||
+ | |||
/*** | /*** | ||
Line 98: | Line 456: | ||
/***Now for our own stuff: personalized header images and navbar***/ | /***Now for our own stuff: personalized header images and navbar***/ | ||
+ | |||
+ | #headercontainer{ | ||
+ | margin-left: 30px; | ||
+ | } | ||
#headerbar{ | #headerbar{ | ||
- | margin- | + | width: 842px; |
+ | height: 48px; | ||
+ | background-image: url(https://static.igem.org/mediawiki/2011/e/ef/UCalgary_HeaderBarNew.png); | ||
+ | position: absolute; | ||
+ | margin-top: -25px; | ||
+ | z-index: 99; | ||
} | } | ||
/*div containing menu bar*/ | /*div containing menu bar*/ | ||
ul#topnav{ | ul#topnav{ | ||
- | + | display: table; | |
- | + | margin: 0; | |
- | + | padding: 0; | |
- | + | left: 15px; | |
+ | top: 15px; | ||
list-style: none; | list-style: none; | ||
position: relative; | position: relative; | ||
- | + | z-index: 100; | |
- | + | ||
- | + | ||
- | + | ||
} | } | ||
ul#topnav a.navtext{ | ul#topnav a.navtext{ | ||
- | + | position: relative; | |
display: block; | display: block; | ||
- | |||
- | |||
background-position: left top; | background-position: left top; | ||
+ | margin-right: 12px; | ||
+ | margin-left: 12px; | ||
} | } | ||
ul#topnav li{ | ul#topnav li{ | ||
- | |||
margin: 0; | margin: 0; | ||
padding: 0; | padding: 0; | ||
+ | list-style: none; | ||
+ | display: table-cell; | ||
+ | float: left; | ||
+ | position: relative; | ||
} | } | ||
Line 138: | Line 506: | ||
} | } | ||
- | ul#topnav li:hover{ | + | ul#topnav li:hover, ul#topnav a:hover{ |
background-position: left bottom; | background-position: left bottom; | ||
} | } | ||
- | ul | + | /*Subnavigation*/ |
- | + | ul.dropdown{ | |
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | padding-bottom: 10px; | ||
+ | padding-top: 7px; | ||
+ | display: block; | ||
+ | position: absolute; | ||
+ | z-index: 999; | ||
+ | width: 200px; | ||
+ | display: none; | ||
+ | left: 0; | ||
+ | /*Background of subnav*/ | ||
+ | background-color: #00365E; | ||
+ | opacity: 0.77; | ||
} | } | ||
- | ul | + | ul.dropdown li{ |
- | + | margin: 0; | |
- | padding: | + | padding: 0; |
- | + | width: 200px; | |
- | + | float: none; | |
- | + | position: relative; | |
- | + | list-style: none; | |
- | + | display: block; | |
- | + | ||
- | + | ||
} | } | ||
+ | |||
+ | ul.dropdown li a{ | ||
+ | display: block; | ||
+ | } | ||
+ | |||
/*Establish sprites for each individual button*/ | /*Establish sprites for each individual button*/ | ||
#homebutton a{ | #homebutton a{ | ||
- | + | background-image: url(https://static.igem.org/mediawiki/2011/1/1d/UCalgary_MenuHome.png); | |
- | background-image: url(https://static.igem.org/mediawiki/2011/ | + | width: 51px; |
- | width: | + | height: 16px; |
} | } | ||
#teambutton a{ | #teambutton a{ | ||
- | background-image: url(https://static.igem.org/mediawiki/2011/ | + | background-image: url(https://static.igem.org/mediawiki/2011/4/4f/UCalgary_MenuTeam.png); |
- | width: | + | width: 48px; |
+ | height: 16px; | ||
+ | margin-bottom: 17px; | ||
} | } | ||
#projectbutton a{ | #projectbutton a{ | ||
- | background-image: url(https://static.igem.org/mediawiki/2011/ | + | background-image: url(https://static.igem.org/mediawiki/2011/f/f0/UCalgary_MenuProject.png); |
- | width: | + | width: 62px; |
+ | height: 19px; | ||
+ | margin-bottom: 14px; | ||
} | } | ||
#partsbutton a{ | #partsbutton a{ | ||
- | background-image: url(https://static.igem.org/mediawiki/2011/ | + | background-image: url(https://static.igem.org/mediawiki/2011/e/e4/UCalgary_MenuParts.png); |
- | width: | + | width: 45px; |
+ | height: 16px; | ||
+ | margin-bottom: 17px; | ||
} | } | ||
#notebookbutton a{ | #notebookbutton a{ | ||
- | background-image: url(https://static.igem.org/mediawiki/2011/ | + | background-image: url(https://static.igem.org/mediawiki/2011/8/84/UCalgary_MenuNotebook.png); |
- | width: | + | width: 84px; |
+ | height: 16px; | ||
+ | margin-bottom: 17px; | ||
} | } | ||
#outreachbutton a{ | #outreachbutton a{ | ||
- | background-image: url(https://static.igem.org/mediawiki/2011/ | + | background-image: url(https://static.igem.org/mediawiki/2011/9/96/UCalgary_MenuOutreach.png); |
- | width: | + | width: 80px; |
+ | height: 17px; | ||
+ | margin-bottom: 16px; | ||
} | } | ||
#sponsorsbutton a{ | #sponsorsbutton a{ | ||
- | background-image: url(https://static.igem.org/mediawiki/2011/ | + | background-image: url(https://static.igem.org/mediawiki/2011/5/51/UCalgary_MenuSponsors.png); |
- | width: | + | width: 84px; |
+ | height: 20px; | ||
+ | margin-bottom: 13px; | ||
+ | } | ||
+ | |||
+ | #igembutton a{ | ||
+ | background-image: url(https://static.igem.org/mediawiki/2011/4/49/UCalgary_MenuiGEM.png); | ||
+ | width: 46px; | ||
+ | height: 17px; | ||
+ | margin-bottom: 16px; | ||
+ | } | ||
+ | |||
+ | .navtext{ | ||
+ | text-indent: -99999px; /*Shoots all HTML text buttons off the page*/ | ||
} | } | ||
- | /* | + | /*Adjusting the subnavigation menu*/ |
- | ul#topnav li#teambutton | + | ul#topnav li#teambutton ul li a, |
- | ul#topnav li#projectbutton | + | ul#topnav li#projectbutton ul li a, |
- | ul#topnav li#partsbutton | + | ul#topnav li#partsbutton ul li a, |
- | ul#topnav li#notebookbutton | + | ul#topnav li#notebookbutton ul li a, |
- | ul#topnav li#outreachbutton | + | ul#topnav li#outreachbutton ul li a, |
- | ul#topnav li#sponsorsbutton | + | ul#topnav li#sponsorsbutton ul li a{ |
height: 35px; | height: 35px; | ||
background-image: none; | background-image: none; | ||
- | |||
font-family: Arial; | font-family: Arial; | ||
- | font-size: | + | font-size: 17px; |
- | font-weight: | + | font-weight: 400; |
} | } | ||
- | ul#topnav li | + | ul#topnav li ul li a{ |
display: inline; /*correction of previous link style*/ | display: inline; /*correction of previous link style*/ | ||
background-image: url(https://static.igem.org/mediawiki/2011/6/69/UCalgary_SubNavRepeater.png); | background-image: url(https://static.igem.org/mediawiki/2011/6/69/UCalgary_SubNavRepeater.png); | ||
background-repeat: repeat-x; | background-repeat: repeat-x; | ||
- | padding-left: | + | padding-left: 12px; |
- | padding-right: | + | padding-right: 12px; |
} | } | ||
/*Rollover settings*/ | /*Rollover settings*/ | ||
- | ul#topnav li:hover | + | ul#topnav li:hover ul{ |
display: block; | display: block; | ||
z-index: 999; | z-index: 999; | ||
} | } | ||
- | ul#topnav li | + | ul#topnav li ul li a:hover{ |
- | + | color: #49f0ff; | |
} | } | ||
Line 239: | Line 645: | ||
} | } | ||
+ | /*Hide all circles*/ | ||
+ | img.headercircle{ | ||
+ | display: none; | ||
+ | z-index: 250; | ||
+ | } | ||
- | #team | + | /*Active circle showing*/ |
- | #project | + | #home #circle0, |
- | #parts | + | #team #circle1, |
- | #notebook | + | #project #circle2, |
- | #outreach | + | #parts #circle3, |
- | #sponsors | + | #notebook #circle4, |
+ | #outreach #circle5, | ||
+ | #sponsors #circle6{ | ||
display: block; | display: block; | ||
+ | position: absolute; | ||
+ | margin-left: 790px; | ||
+ | margin-top: -250px; | ||
} | } | ||
/***End menu stuff. Onto the rest of the header!***/ | /***End menu stuff. Onto the rest of the header!***/ | ||
- | + | .firstHeading{ | |
- | + | text-indent: -99999px; | |
- | + | } | |
+ | |||
+ | #headbanner, #headbanner img{ | ||
+ | width: 906px; | ||
+ | height: 216px; | ||
+ | z-index: 0; | ||
} | } | ||
Line 268: | Line 689: | ||
} | } | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
/*...Not much, was there.*/ | /*...Not much, was there.*/ | ||
Line 290: | Line 699: | ||
<body id="</html>{{{1}}}<html>"> | <body id="</html>{{{1}}}<html>"> | ||
- | < | + | <div id="headercontainer"> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
<div id="headerbar"> | <div id="headerbar"> | ||
<ul id="topnav"> | <ul id="topnav"> | ||
Line 301: | Line 705: | ||
<li id="teambutton"> | <li id="teambutton"> | ||
<a class="navtext" href="https://2011.igem.org/Team:Calgary/Team">Team</a> | <a class="navtext" href="https://2011.igem.org/Team:Calgary/Team">Team</a> | ||
- | < | + | <ul class="dropdown"> |
- | <a href="https://2011.igem.org/Team:Calgary/Team/Biographies">Biographies</a> | + | <li><a href="https://2011.igem.org/Team:Calgary/Team/Biographies">Biographies</a></li> |
- | <a href="https://2011.igem.org/Team:Calgary/Team/Facilitators">Facilitators</a> | + | <li><a href="https://2011.igem.org/Team:Calgary/Team/Facilitators">Facilitators</a></li> |
- | <a href=" | + | <li><a href="https://2011.igem.org/Team:Calgary/Team/About_The_University">The University</a></li> |
- | <a href=" | + | <li><a href="http://ung.igem.org/Team.cgi?id=640">Official Profile</a></li> |
- | </ | + | </ul> |
</li> | </li> | ||
<li id="projectbutton"> | <li id="projectbutton"> | ||
<a class="navtext" href="https://2011.igem.org/Team:Calgary/Project">Project</a> | <a class="navtext" href="https://2011.igem.org/Team:Calgary/Project">Project</a> | ||
- | < | + | <ul class="dropdown"> |
- | <a href=" | + | <li><a href="https://2011.igem.org/Team:Calgary/Project">Overview</a></li> |
- | <a href=" | + | <li><a href="https://2011.igem.org/Team:Calgary/Project/Promoter">Promoter</a></li> |
- | <a href=" | + | <li><a href="https://2011.igem.org/Team:Calgary/Project/Reporter">Reporter</a></li> |
- | <a href=" | + | <li><a href="https://2011.igem.org/Team:Calgary/Project/Chassis">Chassis</a></li> |
- | + | <li><a href="https://2011.igem.org/Team:Calgary/Project/Reporter/Prototype">Prototype</a></li> | |
- | <a href=" | + | <li><a href="https://2011.igem.org/Team:Calgary/Project/DataPage">Data Page</a></li> |
- | </ | + | <li><a href="https://2011.igem.org/Team:Calgary/Project/Acomplishments">Accomplishments</a></li> |
+ | <li><a href="https://2011.igem.org/Team:Calgary/Project/Future_Directions">Future Directions</a></li> | ||
+ | <li><a href="https://2011.igem.org/Team:Calgary/Project/References">References</a></li> | ||
+ | </ul> | ||
</li> | </li> | ||
<li id="partsbutton"> | <li id="partsbutton"> | ||
<a class="navtext" href="https://2011.igem.org/Team:Calgary/Parts">Parts</a> | <a class="navtext" href="https://2011.igem.org/Team:Calgary/Parts">Parts</a> | ||
- | < | + | <ul class="dropdown"> |
- | <a href=" | + | <li><a href="https://2011.igem.org/Team:Calgary/Parts">Parts Submitted</a></li> |
- | + | <li><a href="https://2011.igem.org/Team:Calgary/Notebook/Attributions">Attributions</a></li> | |
- | </ | + | </ul> |
</li> | </li> | ||
<li id="notebookbutton"> | <li id="notebookbutton"> | ||
<a class="navtext" href="https://2011.igem.org/Team:Calgary/Notebook">Notebook</a> | <a class="navtext" href="https://2011.igem.org/Team:Calgary/Notebook">Notebook</a> | ||
- | < | + | <ul class="dropdown"> |
- | + | <li><a href="https://2011.igem.org/Team:Calgary/Notebook/PostRegionals">Post-Regionals</a></li> | |
- | <a href=" | + | <li><a href="https://2011.igem.org/Team:Calgary/Notebook/Calendar">Journal</a></li> |
- | <a href="https://2011.igem.org/Team:Calgary/Safety">Safety</a> | + | <li><a href="https://2011.igem.org/Team:Calgary/Notebook/Protocols">Protocols</a></li> |
- | </ | + | <li><a href="https://2011.igem.org/Team:Calgary/Safety">Safety</a></li> |
+ | </ul> | ||
</li> | </li> | ||
<li id="outreachbutton"> | <li id="outreachbutton"> | ||
<a class="navtext" href="https://2011.igem.org/Team:Calgary/Outreach">Outreach</a> | <a class="navtext" href="https://2011.igem.org/Team:Calgary/Outreach">Outreach</a> | ||
- | < | + | <ul class="dropdown"> |
- | <a href=" | + | <li><a href="https://2011.igem.org/Team:Calgary/Outreach/Human">Human Practices</a></li> |
- | <a href=" | + | <li><a href="https://2011.igem.org/Team:Calgary/Notebook/Conferences">Conferences</a></li> |
- | + | <li><a href="https://2011.igem.org/Team:Calgary/Outreach/Follow">Follow Us!</a></li> | |
- | <a href=" | + | </ul> |
- | </ | + | |
</li> | </li> | ||
<li id="sponsorsbutton"> | <li id="sponsorsbutton"> | ||
<a class="navtext" href="https://2011.igem.org/Team:Calgary/Sponsors">Sponsors</a> | <a class="navtext" href="https://2011.igem.org/Team:Calgary/Sponsors">Sponsors</a> | ||
- | < | + | <ul class="dropdown"> |
- | <a href=" | + | <li><a href="https://2011.igem.org/Team:Calgary/Sponsors">Sponsors</a></li> |
- | <a href=" | + | <li><a href="https://2011.igem.org/Team:Calgary/Sponsors/Acknowledgements">Acknowledgements</a></li> |
- | </ | + | </ul> |
+ | </li> | ||
+ | <li id="igembutton"> | ||
+ | <a class="navtext" href="https://2011.igem.org" target="_blank">iGEM</a> | ||
</li> | </li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
+ | |||
+ | <div id="headbanner"> | ||
+ | <img src="https://static.igem.org/mediawiki/2011/1/1c/UCalgary_HeaderImage2.png"></img> | ||
+ | <img src="https://static.igem.org/mediawiki/2011/0/04/UCalgary2011_MainPageHeaderImage1.png"></img> | ||
+ | <img src="https://static.igem.org/mediawiki/2011/9/93/UCalgary2011_HeaderImage3.png"></img> | ||
+ | <img src="https://static.igem.org/mediawiki/2011/d/d5/UCalgary2011_HeaderImage4.png"></img> | ||
+ | <img src="https://static.igem.org/mediawiki/2011/f/f6/UCalgary2011_HeaderImage5.png"></img> | ||
+ | </div> | ||
+ | |||
+ | <!--Header Image Shuffling--> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | $('#headbanner').cycle({ | ||
+ | timeout: 8000 | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | <!--Circles--> | ||
+ | <img class="headercircle" id="circle0" src="https://static.igem.org/mediawiki/2011/c/c1/UCalgary_CircleHome.png"></img> | ||
+ | <img class="headercircle" id="circle1" src="https://static.igem.org/mediawiki/2011/d/d4/UCalgary_CircleTeam.png"></img> | ||
+ | <img class="headercircle" id="circle2" src="https://static.igem.org/mediawiki/2011/7/7d/UCalgary_CircleProject.png"></img> | ||
+ | <img class="headercircle" id="circle3" src="https://static.igem.org/mediawiki/2011/8/8d/UCalgary_CircleParts.png"></img> | ||
+ | <img class="headercircle" id="circle4" src="https://static.igem.org/mediawiki/2011/0/03/UCalgary_CircleNotebook.png"></img> | ||
+ | <img class="headercircle" id="circle5" src="https://static.igem.org/mediawiki/2011/8/84/UCalgary_CircleOutreach.png"></img> | ||
+ | <img class="headercircle" id="circle6" src="https://static.igem.org/mediawiki/2011/3/3c/UCalgary_CircleSponsors.png"></img> | ||
+ | <img class="headercircle" id="circle7" src="https://static.igem.org/mediawiki/2011/8/85/UCalgary_CircleiGEM.png"></img> | ||
+ | </div> | ||
+ | |||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 02:19, 29 October 2011