Team:Buenos Aires
From 2013.igem.org
(Difference between revisions)
Line 5: | Line 5: | ||
<meta name="description" content="iGem Buenos Aires" /> | <meta name="description" content="iGem Buenos Aires" /> | ||
<meta name="keywords" content="biosensing, igem, buenos aires, UBA, arsenic"/> | <meta name="keywords" content="biosensing, igem, buenos aires, UBA, arsenic"/> | ||
- | <link rel="stylesheet" type="text/css" rel="stylesheet" href="https://2013.igem.org/Team:Buenos_Aires/css/ | + | <link rel="stylesheet" type="text/css" rel="stylesheet" href="https://2013.igem.org/Team:Buenos_Aires/css/style_color.css?action=raw&ctype=text/css" /> |
- | + | ||
- | + | ||
- | |||
<link href="http://fonts.googleapis.com/css?family=PT+Sans+Narrow:regular,bold" rel="stylesheet" type="text/css" /> <!-- Font --> | <link href="http://fonts.googleapis.com/css?family=PT+Sans+Narrow:regular,bold" rel="stylesheet" type="text/css" /> <!-- Font --> | ||
- | |||
- | |||
<style type ='text/css'> | <style type ='text/css'> | ||
Line 20: | Line 15: | ||
#catlinks{display:none;} | #catlinks{display:none;} | ||
#globalWrapper { background-color: transparent; border: none; margin: 0; padding: 0; width: 100%; height:100%;} | #globalWrapper { background-color: transparent; border: none; margin: 0; padding: 0; width: 100%; height:100%;} | ||
- | #content { background-color: transparent; border: none; padding: 0; margin: 0; width: 100%; overflow: | + | #content { background-color: transparent; border: none; padding: 0; margin: 0; width: 100%; overflow: auto; height:100%;} |
#bodyContent {background-color:transparent; border: none; padding:0; margin:0; width:100%; height:100%;} | #bodyContent {background-color:transparent; border: none; padding:0; margin:0; width:100%; height:100%;} | ||
#top-section {display: block;position:fixed; height:3px; width:100%;z-index:999;} | #top-section {display: block;position:fixed; height:3px; width:100%;z-index:999;} | ||
Line 56: | Line 51: | ||
<div id="contenedor"> | <div id="contenedor"> | ||
+ | |||
+ | <div style="opacity:0.8;" class="swing"></div> | ||
+ | |||
<div id="ac_background" class="ac_background"> | <div id="ac_background" class="ac_background"> | ||
- | <img class="ac_bgimage" src="https://static.igem.org/mediawiki/2013/ | + | <img class="ac_bgimage" src="https://static.igem.org/mediawiki/2013/3/31/Bg2-BsAs.jpg" alt="Background"/> |
- | + | ||
<div class="ac_loading"></div> | <div class="ac_loading"></div> | ||
</div> | </div> | ||
Line 70: | Line 67: | ||
<div class="ac_menu"> | <div class="ac_menu"> | ||
<ul> | <ul> | ||
- | + | ||
- | <a | + | <!-- Wiki Tour --> |
+ | <li> | ||
+ | <a id="https://static.igem.org/mediawiki/2013/3/31/Bg2-BsAs.jpg" href="#Tour">Tour</a> | ||
<div class="ac_subitem"> | <div class="ac_subitem"> | ||
<span class="ac_close"></span> | <span class="ac_close"></span> | ||
<h2>Tour</h2> | <h2>Tour</h2> | ||
<ul> | <ul> | ||
- | <li>Take | + | <li>Take the guided wiki tour!</li> |
</ul> | </ul> | ||
</div> | </div> | ||
</li> | </li> | ||
+ | <!-- Team --> | ||
<li> | <li> | ||
- | <a | + | <a id="https://static.igem.org/mediawiki/2013/3/31/Bg2-BsAs.jpg" href="#Team">Team</a> |
+ | <div class="ac_subitem"> | ||
+ | <span class="ac_close"></span> | ||
+ | <h2>Team</h2> | ||
+ | <ul> | ||
+ | <li>The Team.</li> | ||
+ | |||
+ | <li><a class="sub_menu_link" id="Obj" href="_members">Members</a></li> | ||
+ | |||
+ | </ul> | ||
+ | </div> | ||
+ | </li> | ||
+ | <!-- Project--> | ||
+ | <li> | ||
+ | |||
+ | <a id="https://static.igem.org/mediawiki/2013/3/31/Bg2-BsAs.jpg" href="#Project">Project</a> | ||
<div class="ac_subitem"> | <div class="ac_subitem"> | ||
<span class="ac_close"></span> | <span class="ac_close"></span> | ||
Line 90: | Line 105: | ||
<li><a class="sub_menu_link" id="Obj" href="_objetive">Objetive</a></li> | <li><a class="sub_menu_link" id="Obj" href="_objetive">Objetive</a></li> | ||
<li><a class="sub_menu_link" id="Mot" href="_motivation">Motivation</a></li> | <li><a class="sub_menu_link" id="Mot" href="_motivation">Motivation</a></li> | ||
- | + | <li><a class="sub_menu_link" id="App" href="_appli">Application</a></li> | |
+ | <li><a class="sub_menu_link" id="Sensor" href="_sensor">The Sensor</a></li> | ||
+ | <li><a class="sub_menu_link" id="Reporter" href="_reporter">The Reporter</a></li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
</li> | </li> | ||
+ | <!-- Results--> | ||
<li> | <li> | ||
- | <a | + | <a id="https://static.igem.org/mediawiki/2013/3/31/Bg2-BsAs.jpg" href="#Results">Results</a> |
<div class="ac_subitem"> | <div class="ac_subitem"> | ||
<span class="ac_close"></span> | <span class="ac_close"></span> | ||
Line 101: | Line 119: | ||
<ul> | <ul> | ||
<li>Results.</li> | <li>Results.</li> | ||
+ | <li><a class="sub_menu_link" id="Obj" href="_results">Objetive</a></li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
</li> | </li> | ||
+ | <!-- Parts --> | ||
<li> | <li> | ||
- | <a | + | <a id="https://static.igem.org/mediawiki/2013/3/31/Bg2-BsAs.jpg" href="#Parts">Parts</a> |
<div class="ac_subitem"> | <div class="ac_subitem"> | ||
<span class="ac_close"></span> | <span class="ac_close"></span> | ||
- | <h2> | + | <h2>Parts</h2> |
<ul> | <ul> | ||
- | <li> | + | <li>Our biobricks</li> |
- | + | <li><a class="sub_menu_link" id="Obj" href="_results">Parts</a></li> | |
+ | </ul> | ||
+ | </div> | ||
+ | </li> | ||
+ | <!-- Safety--> | ||
+ | <li> | ||
+ | <a id="https://static.igem.org/mediawiki/2013/3/31/Bg2-BsAs.jpg" href="#Safety">Safety</a> | ||
+ | <div class="ac_subitem"> | ||
+ | <span class="ac_close"></span> | ||
+ | <h2>Safety</h2> | ||
+ | <ul> | ||
+ | <li>Safety</li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
</li> | </li> | ||
- | + | <!-- Human Practices--> | |
+ | <li> | ||
+ | <a id="https://static.igem.org/mediawiki/2013/3/31/Bg2-BsAs.jpg" href="#Human Practice">Human Practice</a> | ||
+ | <div class="ac_subitem"> | ||
+ | <span class="ac_close"></span> | ||
+ | <h2>Human Practice</h2> | ||
+ | <ul> | ||
+ | <li>The social objetive behind the competition</li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | </li> | ||
+ | <li> | ||
+ | <a id="https://static.igem.org/mediawiki/2013/3/31/Bg2-BsAs.jpg" href="#Sponsors">Sponsors</a> | ||
+ | <div class="ac_subitem"> | ||
+ | <span class="ac_close"></span> | ||
+ | <h2>Sponsonrs</h2> | ||
+ | <ul> | ||
+ | <li>Who supports our project</li> | ||
+ | </ul> | ||
+ | </div> | ||
+ | </li> | ||
</ul> | </ul> | ||
</div> | </div> | ||
Line 171: | Line 222: | ||
<script type="text/javascript" src="http://jquery-swip.googlecode.com/svn-history/r4/trunk/jquery.easing.1.3.js"></script> | <script type="text/javascript" src="http://jquery-swip.googlecode.com/svn-history/r4/trunk/jquery.easing.1.3.js"></script> | ||
- | + | ||
+ | |||
+ | <!--Hace girar las bacterias cuando se pone el mouse arriba--> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function(){ | ||
+ | $(".swing").hover(function(){ | ||
+ | $(".swing").css('-moz-transform', 'rotate(360deg)'); | ||
+ | $(".swing").css('-webkit-transform', 'rotate(360deg)'); | ||
+ | $(".swing").css('-o-transform', 'rotate(360deg)'); | ||
+ | $(".swing").css('-ms-transform', 'rotate(360deg)'); | ||
+ | },function(){ | ||
+ | $(".swing").css('-moz-transform', 'rotate(-360deg)'); | ||
+ | $(".swing").css('-webkit-transform', 'rotate(-360deg)'); | ||
+ | $(".swing").css('-o-transform', 'rotate(-360deg)'); | ||
+ | $(".swing").css('-ms-transform', 'rotate(-360deg)'); | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
Line 196: | Line 264: | ||
*/ | */ | ||
$menuItems.each(function(i) { | $menuItems.each(function(i) { | ||
- | $ItemImages.push($(this).children('a:first').attr(' | + | $ItemImages.push($(this).children('a:first').attr('id')); |
}); | }); | ||
$ItemImages.push($ac_bgimage.attr('src')); | $ItemImages.push($ac_bgimage.attr('src')); | ||
Line 204: | Line 272: | ||
var init = function() { | var init = function() { | ||
loadPage(); | loadPage(); | ||
- | initWindowEvent(); | + | //initWindowEvent(); |
}, | }, | ||
loadPage = function() { | loadPage = function() { | ||
Line 243: | Line 311: | ||
slideOutMenu = function() { | slideOutMenu = function() { | ||
/* calculate new width for the menu */ | /* calculate new width for the menu */ | ||
- | var new_w = $ | + | var new_w = 1024 - $title.outerWidth(true) - 15; |
+ | /* All links blank */ | ||
+ | $("a").css('color', '#FFF'); | ||
return $.Deferred( | return $.Deferred( | ||
function(dfd) { | function(dfd) { | ||
Line 291: | Line 361: | ||
var $item = $(this), // the <li> | var $item = $(this), // the <li> | ||
$el_title = $item.children('a:first'), | $el_title = $item.children('a:first'), | ||
- | el_image = $el_title.attr(' | + | el_image = $el_title.attr('id'), |
$sub_menu = $item.find('.ac_subitem'), | $sub_menu = $item.find('.ac_subitem'), | ||
$ac_close = $sub_menu.find('.ac_close'); | $ac_close = $sub_menu.find('.ac_close'); | ||
Line 300: | Line 370: | ||
/* user clicks one item : appetizers | main course | desserts | wines | specials */ | /* user clicks one item : appetizers | main course | desserts | wines | specials */ | ||
$el_title.bind('click.Menu', function(e) { | $el_title.bind('click.Menu', function(e) { | ||
- | $.when(toggleMenuItems('down')).done(function(){ | + | |
+ | /* Menu Items doesnt disappear when link cliked */ | ||
+ | $(".ac_subitem").css("height", "0px"); | ||
+ | $(".ac_subitem").css("border", "none"); | ||
+ | /* all other text display is none*/ | ||
+ | $('.texto').css({opacity: '0.0', display: 'none'}); | ||
+ | /* Mark other links as blank */ | ||
+ | $(".ac_content a").css('color', '#FFF'); | ||
+ | /* Current link in black */ | ||
+ | $el_title.css('color', '#000'); | ||
+ | |||
+ | |||
+ | //$.when(toggleMenuItems('down')).done(function(){ | ||
openSubMenu($item, $sub_menu, el_image); | openSubMenu($item, $sub_menu, el_image); | ||
- | }); | + | //}); |
return false; | return false; | ||
Line 310: | Line 392: | ||
toggleMenuItems('up'); | toggleMenuItems('up'); | ||
$(".ac_subitem").css("height", "0px"); | $(".ac_subitem").css("height", "0px"); | ||
+ | $(".ac_subitem").css("border", "none"); | ||
/* all other text display is none*/ | /* all other text display is none*/ | ||
$('.texto').css({opacity: '0.0', display: 'none'}); | $('.texto').css({opacity: '0.0', display: 'none'}); | ||
Line 333: | Line 416: | ||
loadText = function(link) { | loadText = function(link) { | ||
- | + | $(".ac_subitem a").css('color', '#FFF'); | |
/* Change opacity for later animatation*/ | /* Change opacity for later animatation*/ | ||
$('.texto').css({opacity:'0.0'}); | $('.texto').css({opacity:'0.0'}); | ||
+ | $('.texto').css({display: 'none'}); | ||
+ | $(link).css('color', '#000'); | ||
new_link = $(link).attr('href')+ " #external"; | new_link = $(link).attr('href')+ " #external"; | ||
Line 361: | Line 446: | ||
openSubMenu = function($item, $sub_menu, el_image) { | openSubMenu = function($item, $sub_menu, el_image) { | ||
+ | |||
+ | $sub_menu.appendTo('#contenedor'); | ||
$sub_menu.stop() | $sub_menu.stop() | ||
.animate({ | .animate({ | ||
height : '400px', | height : '400px', | ||
- | marginTop : ' | + | marginTop : '120px' |
+ | |||
}, 400, function() { | }, 400, function() { | ||
//the bg image changes | //the bg image changes | ||
+ | $sub_menu.css({border: "solid black"}); | ||
showItemImage(el_image); | showItemImage(el_image); | ||
}); | }); | ||
Line 400: | Line 489: | ||
/* makes an image "fullscreen" and centered */ | /* makes an image "fullscreen" and centered */ | ||
adjustImageSize = function($img) { | adjustImageSize = function($img) { | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
$img.css({ | $img.css({ | ||
- | width : | + | width : 1024 + 'px', |
- | height : | + | height : $(window).height + 'px', |
}); | }); |
Revision as of 00:26, 16 July 2013
Buenos AiresiGem
Hola