Team:UCL London/templates/v2/overall header
From 2010.igem.org
(Difference between revisions)
(76 intermediate revisions not shown) | |||
Line 6: | Line 6: | ||
<link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" /> | <link rel="shortcut icon" href="./favicon.ico" type="image/x-icon" /> | ||
- | <link href=" | + | <link href="https://2010.igem.org/Team:UCL_London/files/css?ctype=text/css&action=raw" rel="stylesheet" type="text/css" media="all" /> |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | < | + | <!--[if IE 7]><link href=""https://2010.igem.org/Team:UCL_London/templates/ie7?ctype=text/css&action=raw" rel="stylesheet" type="text/css" media="screen" /><![endif]--> |
- | <script type="text/javascript" src=" | + | <!--[if IE 8]><link href=""https://2010.igem.org/Team:UCL_London/templates/ie8?ctype=text/css&action=raw" rel="stylesheet" type="text/css" media="screen" /><![endif]--> |
+ | |||
+ | <script type="text/javascript" src="https://2010.igem.org/Team:UCL_London/files/js?ctype=text/javascript&action=raw"></script> | ||
<script type="text/javascript"> | <script type="text/javascript"> | ||
- | + | jQuery(document).ready(function() { | |
- | + | var footerContents = jQuery('#footer-box'); | |
- | + | var first = footerContents.find('div:first').find('#f-list').html(); | |
- | + | var last = footerContents.find('div:last').find('#f-list').html(); | |
- | + | ||
- | + | ||
- | + | ||
- | + | jQuery('#footer-wiki-1').html(first); | |
- | + | jQuery('#footer-wiki-2').html(last); | |
- | + | jQuery('.gallery-item a').attr('rel', 'gallery'); | |
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
- | + | ||
+ | jQuery("a[rel=gallery]").fancybox({ | ||
+ | 'transitionIn' : 'elastic', | ||
+ | 'transitionOut' : 'elastic', | ||
+ | 'titlePosition' : 'over', | ||
+ | 'titleFormat' : function(title, currentArray, currentIndex, currentOpts) | ||
+ | { | ||
+ | return '<span id="fancybox-title-over">Image ' + (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>'; | ||
+ | } | ||
+ | }); | ||
- | + | }); | |
- | + | ||
+ | function submitQuery() { | ||
+ | window.location = 'https://2010.igem.org/Team:UCL_London/Search?q=' | ||
+ | + encodeURIComponent( | ||
+ | document.getElementById('searchbox').value); | ||
+ | return false; | ||
+ | } | ||
</script> | </script> | ||
</head> | </head> | ||
<body> | <body> | ||
+ | <div id="return-to-igem" style="position:fixed;top:0;right:0;margin: 15px 15px 0 0"><a href="https://2010.igem.org"><img src="https://static.igem.org/mediawiki/2010/c/c6/Ucl-igem3.png" alt="RETURN TO IGEM 2010" /></a> | ||
+ | </div> | ||
<div id="top"> | <div id="top"> | ||
<div id="top_effect"> | <div id="top_effect"> | ||
<div class="top_shadow"> | <div class="top_shadow"> | ||
<div class="sp_wrap"> | <div class="sp_wrap"> | ||
+ | |||
<div id="logo"> | <div id="logo"> | ||
- | <a href="./"> | + | <a href="https://2010.igem.org/Team:UCL_London"> |
- | <img src=" | + | <img src="https://static.igem.org/mediawiki/2010/2/27/Ucl-template-logo.png" alt="UCL IGEM 2010" /> |
</a> | </a> | ||
</div> | </div> | ||
<div id="search"> | <div id="search"> | ||
- | <form | + | <form onsubmit="return submitQuery()"> |
<input id="searchbox" type="text" value="Search..." name="search" onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}" /> | <input id="searchbox" type="text" value="Search..." name="search" onfocus="if (this.value == 'Search...') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search...';}" /> | ||
<input type="submit" id="search-bt" value="" /> | <input type="submit" id="search-bt" value="" /> | ||
+ | <input type="hidden" name="sitesearch" value="https://2010.igem.org/Team:UCL_London" /> | ||
</form> | </form> |
Latest revision as of 03:14, 28 October 2010