Team:UC Davis
From 2012.igem.org
Line 1: | Line 1: | ||
- | <!-- | + | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
+ | <html xmlns="http://www.w3.org/1999/xhtml"> | ||
+ | <head> | ||
+ | <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> | ||
+ | <title>This is a test web page:</title> | ||
+ | <style> | ||
+ | html, body { | ||
+ | margin: 0; | ||
+ | padding: 0;} | ||
+ | body { | ||
+ | background-color:white;} | ||
+ | p.helvetica3{font-family:"Helvetica";font-size:14px;font-weight:lighter;color:#474747;} | ||
+ | p.helvetica{font-family:"Helvetica";font-size:12px;font-weight:lighter;} | ||
+ | p.helvetica2{font-family:"Helvetica";font-size:22px;font-weight:lighter;color:#33CCCC;letter-spacing:13px} | ||
+ | p.verdana{font-family:"verdana";font-size:11px;font-weight:lighter;color:white;} | ||
+ | #wrapper { | ||
+ | border: 0px solid black; | ||
+ | border-radius: 2.5em; | ||
+ | background-color:white; | ||
+ | margin: 0 auto; | ||
+ | padding: 1.25em; | ||
+ | width: 890px;} | ||
+ | /* | ||
+ | #banner { | ||
+ | border: 0px solid black; | ||
+ | border-radius: 1.25em; | ||
+ | margin-bottom: 1.25em; | ||
+ | padding: 1.25em;} | ||
+ | */ | ||
+ | #bottom { | ||
+ | padding:0; | ||
+ | margin:0; | ||
+ | overflow: hidden; | ||
+ | border: 0px solid black; | ||
+ | background-color:#333333; | ||
+ | width: 100%; | ||
+ | display: block; | ||
+ | position:absolute; | ||
+ | left:0; | ||
+ | right:0;} | ||
+ | |||
+ | #banner p { | ||
+ | text-align: center;} | ||
+ | #nav { | ||
+ | background-color: white; | ||
+ | border: 0px solid black; | ||
+ | height: 50px; | ||
+ | position: relative;} | ||
- | + | #nav ul { | |
+ | list-style-type:none; | ||
+ | margin:0; | ||
+ | padding:0; | ||
+ | overflow:hidden;} | ||
- | + | li { | |
+ | float:left;} | ||
+ | a:link,a:visited { | ||
+ | display:block; | ||
+ | width:70px; | ||
+ | height: 100%; | ||
+ | color:#333333; | ||
+ | text-align:center; | ||
+ | padding:1px; | ||
+ | text-decoration:none; | ||
+ | text-transform:uppercase;} | ||
+ | a:active { | ||
+ | color:white; | ||
+ | width:70px; | ||
+ | color:#33CCCC;} | ||
+ | a:hover {color:white; | ||
+ | width:70px; | ||
+ | text-decoration:none; | ||
+ | color:#33CCCC;} | ||
+ | ul, li { | ||
+ | list-style-type: none;} | ||
+ | #nav ul .groupa { | ||
+ | float: left; | ||
+ | padding: 0 .5em;} | ||
+ | |||
+ | #nav ul .groupb { | ||
+ | float: right; | ||
+ | padding: 0 .5em;} | ||
+ | |||
+ | #nav h1 { | ||
+ | margin: 0; | ||
+ | position: absolute; | ||
+ | left: 0px; /*half the #nav width less half the image width*/ | ||
+ | top: -25px; /*half the #nav height less half the image height*/} | ||
+ | |||
+ | #main { | ||
+ | border: 0px solid black; | ||
+ | border-radius: 1.25em; | ||
+ | height: 400px; /*nominal value in lieu of content*/ | ||
+ | padding: 1.25em;} | ||
+ | |||
+ | * { | ||
+ | padding: 1pt; | ||
+ | margin: 1pt;} | ||
+ | html, body { | ||
+ | height: 100%;} | ||
+ | |||
+ | body { | ||
+ | font-family: "lucida sans", verdana, arial, helvetica, sans-serif; | ||
+ | font-size: 75%;} | ||
+ | |||
+ | h1 { | ||
+ | font-size: 1.4em; | ||
+ | padding: 10px 10px 0;} | ||
+ | |||
+ | p { | ||
+ | padding: 0 10px 1em;} | ||
+ | |||
+ | #container { | ||
+ | min-height: 100%; | ||
+ | background-color: #FFFFFF; | ||
+ | width: 800px; | ||
+ | margin: 6px auto;} | ||
+ | |||
+ | * html #container { | ||
+ | height: 100%;} | ||
+ | |||
+ | |||
+ | <!-- | ||
+ | /** | ||
+ | * Slideshow style rules. | ||
+ | */ | ||
+ | #slideshow { | ||
+ | margin:0 auto; | ||
+ | width:700px; | ||
+ | height:400px; | ||
+ | position:relative; | ||
+ | } | ||
+ | #slideshow #slidesContainer { | ||
+ | margin:0 auto; | ||
+ | width:590px; | ||
+ | height:400px; | ||
+ | overflow:auto; /* allow scrollbar */ | ||
+ | position:relative; | ||
+ | } | ||
+ | #slideshow #slidesContainer .slide { | ||
+ | margin:0 auto; | ||
+ | width:580px; /* reduce by 20 pixels of #slidesContainer to avoid horizontal scroll */ | ||
+ | height:400px; | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Slideshow controls style rules. | ||
+ | */ | ||
+ | .control { | ||
+ | display:block; | ||
+ | width:39px; | ||
+ | height:400px; | ||
+ | text-indent:-10000px; | ||
+ | position:absolute; | ||
+ | cursor: pointer; | ||
+ | } | ||
+ | #leftControl { | ||
+ | top:0; | ||
+ | left:0; | ||
+ | background:transparent url(./control_left.jpg) no-repeat 0 0; | ||
+ | } | ||
+ | #rightControl { | ||
+ | top:0; | ||
+ | right:0; | ||
+ | background:transparent url(./control_right.jpg) no-repeat 0 0; | ||
+ | } | ||
+ | |||
+ | /** | ||
+ | * Style rules for Demo page | ||
+ | */ | ||
+ | |||
+ | /* * { | ||
+ | margin:0; | ||
+ | padding:0; | ||
+ | font:normal 11px Verdana, Geneva, sans-serif; | ||
+ | color:#ccc;} | ||
+ | a { | ||
+ | color: #fff; | ||
+ | font-weight:bold; | ||
+ | text-decoration:none;} | ||
+ | a:hover { | ||
+ | text-decoration:underline;} | ||
+ | |||
+ | body { | ||
+ | background:#393737 url(./bg_body.jpg) repeat-x top left;} | ||
+ | |||
+ | |||
+ | |||
+ | #pageContainer { | ||
+ | margin:0 auto; | ||
+ | width:960px;} | ||
+ | |||
+ | #pageContainer h1 { | ||
+ | display:block; | ||
+ | width:960px; | ||
+ | height:114px; | ||
+ | background:transparent url(./bg_pagecontainer_h1.jpg) no-repeat top left; | ||
+ | text-indent: -10000px;} | ||
+ | |||
+ | |||
+ | */ | ||
+ | |||
+ | .slide h2, .slide p { | ||
+ | margin:15px;} | ||
+ | |||
+ | .slide h2 { | ||
+ | font:italic 24px Georgia, "Times New Roman", Times, serif; | ||
+ | color:#ccc; | ||
+ | letter-spacing:-1px;} | ||
+ | |||
+ | .slide img { | ||
+ | float:right; | ||
+ | margin:0 15px;} | ||
+ | |||
+ | /* | ||
+ | #footer { | ||
+ | height:100px;} | ||
+ | |||
+ | #footer p { | ||
+ | margin:30px auto 0 auto; | ||
+ | display:block; | ||
+ | width:560px; | ||
+ | height:40px;} | ||
+ | |||
+ | */ | ||
+ | </style> | ||
+ | |||
+ | |||
+ | //<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js">//</script> | ||
+ | //<script type="text/javascript" src="./jquery.min.js"></script> | ||
+ | <script type="text/javascript" src="http://ajax.aspnetcdn.com/ajax/jQuery/jquery-1.7.2.min.js"></script> | ||
+ | $(document).ready(function(){ | ||
+ | var currentPosition = 0; | ||
+ | var slideWidth = 600; | ||
+ | var slides = $('.slide'); | ||
+ | var numberOfSlides = slides.length; | ||
+ | |||
+ | // Remove scrollbar in JS | ||
+ | $('#slidesContainer').css('overflow', 'hidden'); | ||
+ | |||
+ | // Wrap all .slides with #slideInner div | ||
+ | slides | ||
+ | .wrapAll('<div id="slideInner"></div>') | ||
+ | // Float left to display horizontally, readjust .slides width | ||
+ | .css({ | ||
+ | 'float' : 'left', | ||
+ | 'width' : slideWidth | ||
+ | }); | ||
+ | |||
+ | // Set #slideInner width equal to total width of all slides | ||
+ | $('#slideInner').css('width', slideWidth * numberOfSlides); | ||
+ | |||
+ | // Insert controls in the DOM | ||
+ | $('#slideshow') | ||
+ | .prepend('<span class="control" id="leftControl">Clicking moves left</span>') | ||
+ | .append('<span class="control" id="rightControl">Clicking moves right</span>'); | ||
+ | |||
+ | // Hide left arrow control on first load | ||
+ | manageControls(currentPosition); | ||
+ | |||
+ | // Create event listeners for .controls clicks | ||
+ | $('.control') | ||
+ | .bind('click', function(){ | ||
+ | // Determine new position | ||
+ | currentPosition = ($(this).attr('id')=='rightControl') ? currentPosition+1 : currentPosition-1; | ||
+ | |||
+ | // Hide / show controls | ||
+ | manageControls(currentPosition); | ||
+ | // Move slideInner using margin-left | ||
+ | $('#slideInner').animate({ | ||
+ | 'marginLeft' : slideWidth*(-currentPosition) | ||
+ | }); | ||
+ | }); | ||
+ | |||
+ | // manageControls: Hides and Shows controls depending on currentPosition | ||
+ | function manageControls(position){ | ||
+ | // Hide left arrow if position is first slide | ||
+ | if(position==0){ $('#leftControl').hide() } else{ $('#leftControl').show() } | ||
+ | // Hide right arrow if position is last slide | ||
+ | if(position==numberOfSlides-1){ $('#rightControl').hide() } else{ $('#rightControl').show() } | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | //remove it later <!-- | ||
+ | var image1=new Image(); | ||
+ | image1.src="http://img.photobucket.com/albums/v26/bluemelon/stockphoto.png"; | ||
+ | var image2=new Image(); | ||
+ | image2.src="http://img.photobucket.com/albums/v26/bluemelon/poop18.jpg"; | ||
+ | var image3=new Image(); | ||
+ | image3.src="http://img.photobucket.com/albums/v26/bluemelon/poop17.jpg"; | ||
+ | //remove it later //--> | ||
+ | |||
+ | </script> | ||
+ | </head> | ||
<html> | <html> | ||
- | <div id=" | + | <body> |
- | <div id=" | + | |
- | + | ||
- | </ | + | |
- | < | + | <div id="wrapper"> |
- | + | <div id="banner"> | |
- | </div> | + | </div> |
- | <div id=" | + | |
- | + | <div id="nav"> | |
- | </div> | + | <ul> |
+ | <img src="http://img.photobucket.com/albums/v26/bluemelon/yup5.jpg"/> | ||
+ | <!-- Note the groupb list items are in reverse order. --> | ||
+ | <li class="groupb"><a href="https://2012.igem.org/Team:UC_Davis"><p class="helvetica">Home</p></a></li> | ||
+ | |||
+ | <li class="groupb"><a href="https://2012.igem.org/Team:UC_Davis"><p class="helvetica">Home</p></a></li> | ||
+ | |||
+ | <li class="groupb"><a href="https://2012.igem.org/Team:UC_Davis"><p class="helvetica">Home</p></a></li> | ||
+ | <li class="groupb"><a href="https://2012.igem.org/Team:UC_Davis"><p class="helvetica">Home</p></a></li> | ||
+ | <li class="groupb"><a href="https://2012.igem.org/Team:UC_Davis"><p class="helvetica">Home</p></a></li> | ||
+ | <li class="groupb"><a href="https://2012.igem.org/Team:UC_Davis" class="activeLink"><p class="helvetica">Home</p></a></li> | ||
+ | |||
+ | </ul> | ||
+ | |||
+ | </div> | ||
+ | |||
+ | |||
+ | |||
+ | <div id="container"> | ||
+ | <center> | ||
+ | |||
+ | |||
+ | <div id="pageContainer"> | ||
+ | |||
+ | <!-- Slideshow HTML --> | ||
+ | <div id="slideshow"> | ||
+ | <div id="slidesContainer"> | ||
+ | <div class="slide"> | ||
+ | <img src="http://img.photobucket.com/albums/v26/bluemelon/stockphoto.png" width="600" height="400"/> | ||
+ | </div> | ||
+ | <div class="slide"> | ||
+ | <img src="http://img.photobucket.com/albums/v26/bluemelon/poop18.jpg" width="600" height="400"> | ||
+ | </div> | ||
+ | <div class="slide"> | ||
+ | <img src="http://img.photobucket.com/albums/v26/bluemelon/poop17.jpg" width="600" height="400"> | ||
+ | </div> | ||
+ | <div class="slide"> | ||
+ | <img src="http://img.photobucket.com/albums/v26/bluemelon/aergeatrgert.jpg" width="300" height="400"> | ||
+ | </div> | ||
+ | </div> | ||
+ | </div> | ||
+ | <!-- Slideshow HTML --> | ||
+ | |||
+ | |||
</div> | </div> | ||
+ | </center> | ||
+ | </body> | ||
</html> | </html> | ||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | |||
- | + | <div id="main"> | |
- | + | <p><p class="helvetica2">TEXT</p> | |
- | + | yup | |
- | + | <p><p><p><p> | |
- | + | <p><p class="helvetica2">TEXT</p> | |
- | + | color scheme? logo? borders? | |
- | + | <p><p><p><p> | |
- | + | <p><p class="helvetica2">TEXT</p> | |
- | + | stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff | |
- | + | <p><p><p><p><p><p><p><p><p><p><p><p> | |
- | + | ||
+ | </div> | ||
+ | |||
+ | <p><p></p></p> | ||
+ | |||
+ | <div id="bottom"> | ||
+ | <br><br><center><p class="verdana"> | ||
+ | |||
+ | yup yup | ||
+ | |||
+ | </p></center><br><br> | ||
+ | </div> | ||
+ | <script src="jquery.min.js"></script> | ||
+ | |||
+ | </body> | ||
+ | </html> |
Revision as of 23:56, 1 July 2012
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<p class="helvetica2">TEXT
yup
<p><p><p> <p><p class="helvetica2">TEXT
color scheme? logo? borders?
<p><p><p> <p><p class="helvetica2">TEXT
stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff stuff
<p><p><p><p><p><p><p><p><p><p><p> </div> <p><p>
</p>
yup yup
<script src="jquery.min.js"></script>
</body>
</html>