Team:UCL London/templates/v2/overall header

From 2010.igem.org

(Difference between revisions)
Line 16: Line 16:
<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);
+
-
$('.gallery-item a').attr('rel', 'gallery');
+
jQuery('#footer-wiki-1').html(first);
 +
jQuery('#footer-wiki-2').html(last);
-
$("a[rel=gallery]").fancybox({
+
jQuery('.gallery-item a').attr('rel', 'gallery');
 +
 
 +
jQuery("a[rel=gallery]").fancybox({
'transitionIn' : 'elastic',
'transitionIn' : 'elastic',
'transitionOut' : 'elastic',
'transitionOut' : 'elastic',
Line 32: Line 32:
'easingOut'    : 'easeInBack',
'easingOut'    : 'easeInBack',
'titlePosition' : 'over',
'titlePosition' : 'over',
-
'titleFormat'      : function(title, currentArray, currentIndex, currentOpts) {
+
'titleFormat'      : function(title, currentArray, currentIndex, currentOpts)  
 +
{
    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
    return '<span id="fancybox-title-over">Image ' +  (currentIndex + 1) + ' / ' + currentArray.length + ' ' + title + '</span>';
-
};
+
}
});
});

Revision as of 00:32, 28 August 2010

UCL IGEM 2010