Team:UCL London/templates/v2/overall header

From 2010.igem.org

(Difference between revisions)
 
(75 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="http://static.erepublik.co.uk/igem/v2/css.css" rel="stylesheet" type="text/css" media="screen" />
+
<link href="https://2010.igem.org/Team:UCL_London/files/css?ctype=text/css&amp;action=raw" rel="stylesheet" type="text/css" media="all" />
-
<link href="http://static.erepublik.co.uk/igem/v2/style/green.css" rel="stylesheet" type="text/css" media="screen" />
+
-
<!-- <link href="http://static.erepublik.co.uk/igem/v2/south-street/jquery-ui-1.8.4.custom.css" rel="stylesheet" type="text/css"/> -->
+
-
<!--[if IE 7]><link href="http://static.erepublik.co.uk/igem/v2/ie7.css" rel="stylesheet" type="text/css" media="screen" /><![endif]-->
+
-
<!--[if IE 8]><link href="http://static.erepublik.co.uk/igem/v2/ie8.css" rel="stylesheet" type="text/css" media="screen" /><![endif]-->
+
-
<script type="text/javascript" src="http://static.erepublik.co.uk/igem/v2/js/js.js"></script>
+
<!--[if IE 7]><link href=""https://2010.igem.org/Team:UCL_London/templates/ie7?ctype=text/css&amp;action=raw" rel="stylesheet" type="text/css" media="screen" /><![endif]-->
-
<script type="text/javascript" src="http://static.erepublik.co.uk/igem/v2/js/cartogothicstd.font.js"></script>
+
<!--[if IE 8]><link href=""https://2010.igem.org/Team:UCL_London/templates/ie8?ctype=text/css&amp;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() {
+
jQuery(document).ready(function() {
-
var footerContents = jQuery('#footer-box');
+
var footerContents = jQuery('#footer-box');
-
var first = footerContents.find('div:first').find('#f-list').html();
+
var first = footerContents.find('div:first').find('#f-list').html();
-
var last = footerContents.find('div:last').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);
+
-
$('div.gallery-navigation').css({'width' : '300px', 'float' : 'left'});
+
jQuery('#footer-wiki-1').html(first);
-
$('div.gallery-content').css('display', 'block');
+
jQuery('#footer-wiki-2').html(last);
-
// Initially set opacity on thumbs and add
+
jQuery('.gallery-item a').attr('rel', 'gallery');
-
// additional styling for hover effect on thumbs
+
-
var onMouseOutOpacity = 0.67;
+
-
$('#gallery ul.gallery-thumbs li').opacityrollover({
+
-
mouseOutOpacity:  onMouseOutOpacity,
+
-
mouseOverOpacity:  1.0,
+
-
fadeSpeed:        'fast',
+
-
exemptionSelector: '.selected'
+
-
});
+
-
+
-
// Initialize Advanced Galleriffic Gallery
+
-
var gallery = $('#gallery').galleriffic({
+
-
delay:                    2500,
+
-
numThumbs:                15,
+
-
preloadAhead:              10,
+
-
enableTopPager:            true,
+
-
enableBottomPager:        true,
+
-
maxPagesToShow:            7,
+
-
imageContainerSel:        '#slideshow',
+
-
controlsContainerSel:      '#controls',
+
-
captionContainerSel:      '#caption',
+
-
loadingContainerSel:      '#loading',
+
-
renderSSControls:          true,
+
-
renderNavControls:        true,
+
-
playLinkText:              'Play Slideshow',
+
-
pauseLinkText:            'Pause Slideshow',
+
-
prevLinkText:              '&lsaquo; Previous Photo',
+
-
nextLinkText:              'Next Photo &rsaquo;',
+
-
nextPageLinkText:          'Next &rsaquo;',
+
-
prevPageLinkText:          '&lsaquo; Prev',
+
-
enableHistory:            false,
+
-
autoStart:                false,
+
-
syncTransitions:          true,
+
-
defaultTransitionDuration: 900,
+
-
onSlideChange:            function(prevIndex, nextIndex) {
+
-
// 'this' refers to the gallery, which is an extension of $('#thumbs')
+
-
this.find('ul.thumbs').children()
+
-
.eq(prevIndex).fadeTo('fast', onMouseOutOpacity).end()
+
-
.eq(nextIndex).fadeTo('fast', 1.0);
+
-
},
+
-
onPageTransitionOut:      function(callback) {
+
-
this.fadeTo('fast', 0.0, callback);
+
-
},
+
-
onPageTransitionIn:        function() {
+
-
this.fadeTo('fast', 1.0);
+
-
}
+
 +
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="http://static.erepublik.co.uk/igem/v2/images/logo.png" alt="" />
+
<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 method="get" id="search-from" action="./">
+
<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

UCL IGEM 2010

RETURN TO IGEM 2010