Team:Tec-Monterrey/extras
From 2012.igem.org
(Difference between revisions)
(Created page with "<html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <title>Tec Igem 2012</title> <style type="text/css"> <!-- ...") |
|||
Line 93: | Line 93: | ||
} | } | ||
.content { | .content { | ||
+ | margin-top:10px; | ||
padding: 10px 0; | padding: 10px 0; | ||
} | } | ||
Line 144: | Line 145: | ||
.menu #bt5:hover{ background:url(https://static.igem.org/mediawiki/2012/e/ed/TECMTY_Team_hover.jpg) no-repeat;} | .menu #bt5:hover{ background:url(https://static.igem.org/mediawiki/2012/e/ed/TECMTY_Team_hover.jpg) no-repeat;} | ||
- | + | #div_subcontent #slideshow { | |
- | + | width:520px; | |
- | + | margin-left: auto ; | |
- | + | margin-right: auto ; | |
+ | position:relative; | ||
+ | } | ||
+ | #div_subcontent #slideshow #slidesContainer { | ||
+ | margin:0 auto; | ||
+ | width:520px; | ||
+ | height:290px; | ||
+ | overflow:auto; | ||
+ | } | ||
+ | #div_subcontent #slideshow #slidesContainer .slide { | ||
+ | margin:0 auto; | ||
+ | width:500px; | ||
+ | height:290px; | ||
+ | } | ||
+ | #div_subcontent .control { | ||
+ | display:block; | ||
+ | width:40px; | ||
+ | height:290px; | ||
+ | text-indent:-10000px; | ||
+ | cursor: pointer; | ||
+ | position:absolute; | ||
+ | top:0; | ||
+ | } | ||
+ | #div_subcontent #leftControl { | ||
+ | left:-20; | ||
+ | background:transparent url("https://static.igem.org/mediawiki/igem.org/f/fd/TECMTY_Bgaleria_allergen_normal.png") no-repeat center; | ||
+ | } | ||
+ | #div_subcontent #rightControl { | ||
+ | right:0; | ||
+ | background:transparent url("https://static.igem.org/mediawiki/igem.org/6/69/TECMTY_Bgaleria_antifreeze_normal.png") no-repeat center; | ||
+ | } | ||
+ | |||
+ | .tabcolor { | ||
+ | border:none; | ||
+ | height:60px; | ||
+ | width:100%; | ||
+ | background:#414141; | ||
+ | color:#FFF; | ||
+ | font-size:18px; | ||
+ | } | ||
+ | .tabcolor:hover { | ||
+ | background:#E9E9E9; | ||
+ | color:#414141; | ||
+ | } | ||
+ | .tablft { | ||
+ | border-top-left-radius:8px; | ||
+ | border-bottom-left-radius:8px; | ||
+ | -moz-border-radius-topleft:8px; | ||
+ | -moz-border-radius-bottomleft:8px; | ||
+ | } | ||
+ | .tabrit { | ||
+ | border-top-right-radius:8px; | ||
+ | border-bottom-right-radius:8px; | ||
+ | -moz-border-radius-topright:8px; | ||
+ | -moz-border-radius-bottomright:8px; | ||
+ | } | ||
- | . | + | .content #tabs-back { |
- | + | margin-top:25px; | |
+ | margin-bottom:40px; | ||
} | } | ||
- | . | + | .content #replace { |
- | + | max-width:980px; | |
+ | border-radius:8px; | ||
+ | -moz-border-radius:7px; | ||
+ | border:5px solid #414141; | ||
+ | padding-top:20px; | ||
+ | padding-bottom:20px; | ||
+ | padding-left:10px; | ||
+ | padding-right:10px; | ||
+ | font-size:16px; | ||
+ | text-align: justify; | ||
+ | color:#414141; | ||
} | } | ||
- | . | + | .content #div_subcontent { |
- | + | margin-top:15px; | |
} | } | ||
.preload { | .preload { | ||
Line 205: | Line 272: | ||
$("#div_content").fadeOut(1000); | $("#div_content").fadeOut(1000); | ||
}); | }); | ||
+ | //Tabs | ||
+ | $('#tab1').click(function() { | ||
+ | $('#replace').html($('#content1').html()); | ||
+ | }); | ||
+ | $('#tab2').click(function() { | ||
+ | $('#replace').html($('#content2').html()); | ||
+ | }); | ||
+ | $('#tab3').click(function() { | ||
+ | $('#replace').html($('#content3').html()); | ||
+ | }); | ||
+ | $('#tab4').click(function() { | ||
+ | $('#replace').html($('#content4').html()); | ||
+ | }); | ||
+ | //Slides | ||
+ | function prepareSlides() { | ||
+ | var currentPos = 0; | ||
+ | var sWidth = 520; | ||
+ | var slides = $('div#div_subcontent .slide'); | ||
+ | var numSlides = slides.length; | ||
+ | $('div#div_subcontent #slidesContainer').css('overflow','hidden'); | ||
+ | slides.wrapAll('<div id="slideInner"></div>'); | ||
+ | slides.css({ | ||
+ | 'float':'left', | ||
+ | 'width':sWidth | ||
+ | }); | ||
+ | $('div#div_subcontent #slideInner').css('width',sWidth*numSlides); | ||
+ | $('div#div_subcontent #slideshow').prepend('<span class="control" id="leftControl">Move left</span>'); | ||
+ | $('div#div_subcontent #slideshow').append('<span class="control" id="rightControl">Move right</span>'); | ||
+ | manageControls(currentPos,numSlides); | ||
+ | $('div#div_subcontent .control').bind('click', function() { | ||
+ | currentPos = ($(this).attr('id') == 'rightControl') ? currentPos+1 : currentPos-1; | ||
+ | manageControls(currentPos,numSlides); | ||
+ | $('div#div_subcontent #slideInner').animate({ | ||
+ | 'marginLeft' : sWidth*(-currentPos) | ||
+ | }); | ||
+ | }); | ||
+ | } | ||
+ | function manageControls(position, numSlides) { | ||
+ | if(position == 0) { $('div#div_subcontent #leftControl').hide(); } | ||
+ | else { $('div#div_subcontent #leftControl').show(); } | ||
+ | if(position == numSlides-1) { $('div#div_subcontent #rightControl').hide(); } | ||
+ | else { $('div#div_subcontent #rightControl').show(); } | ||
+ | } | ||
}); | }); | ||
</script> | </script> | ||
Line 212: | Line 322: | ||
<span class="preload"> | <span class="preload"> | ||
- | + | <img src="https://static.igem.org/mediawiki/igem.org/e/ef/TECMTY_Teamlogo_hover.png" alt="1" /> | |
- | <img src="https://static.igem.org/mediawiki/igem.org/e/ef/TECMTY_Teamlogo_hover.png" alt=" | + | <img src="https://static.igem.org/mediawiki/igem.org/8/84/TECMTY_Igemlogo_hover.png" alt="2" /> |
- | + | <img src="https://static.igem.org/mediawiki/2012/a/a5/TECMTY_Allergen_hover.jpg" alt="3" /> | |
- | <img src="https://static.igem.org/mediawiki/igem.org/8/84/TECMTY_Igemlogo_hover.png" alt=" | + | <img src="https://static.igem.org/mediawiki/igem.org/1/13/TECMTY_Antifreeze_hover.jpg" alt="4" /> |
- | + | <img src="https://static.igem.org/mediawiki/igem.org/9/92/TECMTY_Humanpractice_hover.jpg" alt="5" /> | |
- | <img src="https://static.igem.org/mediawiki/2012/a/a5/TECMTY_Allergen_hover.jpg" alt=" | + | <img src="2012.https://static.igem.org/mediawiki/igem.org/e/ed/TECMTY_Team_hover.jpg" alt="6" /> |
- | + | <img src="https://static.igem.org/mediawiki/2012/c/ca/TECMTY_Allergen_project_hover.png" alt="7" /> | |
- | <img src="https://static.igem.org/mediawiki/igem.org/1/13/TECMTY_Antifreeze_hover.jpg" alt=" | + | <img src="https://static.igem.org/mediawiki/2012/9/9c/TECMTY_Allergen_video_hover.png" alt="8" /> |
- | <img src="https://static.igem.org/mediawiki/igem.org/9/92/TECMTY_Humanpractice_hover.jpg" alt=" | + | <img src="https://static.igem.org/mediawiki/2012/3/3f/TECMTY_Allergen_data_hover.png" alt="9" /> |
- | + | <img src="https://static.igem.org/mediawiki/2012/9/9e/TECMTY_Allergen_safety_hover.png" alt="10" /> | |
- | <img src="2012.https://static.igem.org/mediawiki/igem.org/e/ed/TECMTY_Team_hover.jpg" alt=" | + | <img src="https://static.igem.org/mediawiki/2012/1/10/TECMTY_Allergen_results_hover.png" alt="11" /> |
- | <img src="https://static.igem.org/mediawiki/ | + | <img src="https://static.igem.org/mediawiki/2012/9/93/TECMTY_Allergen_notebook_hover.png" alt="12" /> |
- | + | ||
- | + | ||
- | <img src="https://static.igem.org/mediawiki/ | + | |
- | <img src="https://static.igem.org/mediawiki/ | + | |
- | <img src="https://static.igem.org/mediawiki/ | + | |
- | + | ||
- | <img src="https://static.igem.org/mediawiki/ | + | |
- | <img src="https://static.igem.org/mediawiki/ | + | |
</span> | </span> | ||
+ | <div class="preload" id="content1"> | ||
+ | <p>Derp</p> | ||
+ | </div> | ||
+ | <span class="preload" id="content2"> | ||
+ | <p>Herp</p> | ||
+ | </span> | ||
+ | <span class="preload" id="content3"> | ||
+ | <p>Durp</p> | ||
+ | </span> | ||
+ | <span class="preload" id="content4"> | ||
+ | <p>Hurp</p> | ||
+ | </span> | ||
+ | |||
<div class="container"> | <div class="container"> | ||
<div class="header"> | <div class="header"> | ||
<div> | <div> | ||
- | <button type="button" class="logo" | + | <button type="button" class="logo" id="logo"> </button> |
</div> | </div> | ||
<div class="menu" align="right"> | <div class="menu" align="right"> | ||
Line 254: | Line 369: | ||
<div class="content" id="div_content"> | <div class="content" id="div_content"> | ||
- | + | <div id="div_subcontent"> | |
- | + | <table align="center"> | |
- | + | <tr> | |
- | + | <td align="center"> | |
- | + | <img src="https://static.igem.org/mediawiki/2012/2/2a/TECMTY_Allergen_title_project.png" alt="project" width="1000px" /> | |
- | + | </td> | |
- | + | </tr> | |
- | + | <tr width="100%"> | |
- | + | <td> | |
- | + | <div id="tabs-back"> | |
- | + | <table width="100%" cellspacing=0 cellpadding=0> | |
- | + | <tr> | |
- | + | <td width="25%"> | |
- | + | <button type="button" id="tab1" class="tabcolor tablft">students</button> | |
- | + | </td> | |
- | + | <td width="25%"> | |
- | + | <button type="button" id="tab2" class="tabcolor">instructors</button> | |
- | <div class=" | + | </td> |
- | + | <td width="25%"> | |
- | </ | + | <button type="button" id="tab3" class="tabcolor">advisors</button> |
- | </ | + | </td> |
- | </ | + | <td width="25%"> |
- | </ | + | <button type="button" id="tab4" class="tabcolor tabrit">attributions</button> |
+ | </td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | </div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td> | ||
+ | <div class="inner" id="replace"> | ||
+ | <p>Derp</p> | ||
+ | </div> | ||
+ | </td> | ||
+ | </tr> | ||
+ | </table> | ||
+ | </div> | ||
</div> | </div> | ||
Revision as of 22:18, 5 August 2012
Derp
Herp
Durp
Hurp
|
||||
Derp |