Team:NU Kazakhstan
From 2013.igem.org
(Difference between revisions)
Line 25: | Line 25: | ||
border-top: 1px solid #ffffff; | border-top: 1px solid #ffffff; | ||
padding: 5px 45px 5px 45px; | padding: 5px 45px 5px 45px; | ||
- | + | background: #90EE90; | |
margin-left: 1px; | margin-left: 1px; | ||
white-space: nowrap; | white-space: nowrap; | ||
} | } | ||
- | + | ul li a:hover { | |
background: cyan; | background: cyan; | ||
} | } | ||
Line 36: | Line 36: | ||
position: absolute; | position: absolute; | ||
} | } | ||
- | + | li:hover li { | |
float: none; | float: none; | ||
font-size: 15px; | font-size: 15px; | ||
Line 44: | Line 44: | ||
background: #90EE90; | background: #90EE90; | ||
} | } | ||
- | |||
#top-section{ | #top-section{ | ||
Line 85: | Line 84: | ||
</li> | </li> | ||
</ul> | </ul> | ||
+ | |||
<div> | <div> | ||
Line 94: | Line 94: | ||
Keywords: aptamer, carcinoembryonic antigen, biosensor, SELEX. | Keywords: aptamer, carcinoembryonic antigen, biosensor, SELEX. | ||
</div> | </div> | ||
+ | |||
+ | </body> | ||
+ | <head> | ||
+ | |||
+ | <style type="text/css"> | ||
+ | |||
+ | /*--Slideshow Begins Here--*/ | ||
+ | #slideshow { | ||
+ | display: block; | ||
+ | vertical-align: middle; | ||
+ | position: relative; | ||
+ | } | ||
+ | /*--Main Container--*/ | ||
+ | #main_view { | ||
+ | margin-left:auto; | ||
+ | margin-right:auto; | ||
+ | position: relative; | ||
+ | height:500px; width: 800px; | ||
+ | } | ||
+ | .window { | ||
+ | height:500px; width: 800px; | ||
+ | overflow: hidden; /*--Hides anything outside of the set width/height--*/ | ||
+ | position: absolute; | ||
+ | display: block; | ||
+ | top:49%; | ||
+ | left:49%; | ||
+ | margin: -220px 0 0 -380px; | ||
+ | } | ||
+ | .image_reel { | ||
+ | position: absolute; | ||
+ | top: 0; left: 0; | ||
+ | } | ||
+ | .image_reel img {float: left;} | ||
+ | .paging { | ||
+ | position: absolute; | ||
+ | bottom: -1px; right: 50px; | ||
+ | width: 300px; height:47px; | ||
+ | z-index: 100; /*--Assures the paging stays on the top layer--*/ | ||
+ | text-align: right; | ||
+ | line-height: 40px; | ||
+ | font-weight: bold; | ||
+ | background: url(paging_bg2.png) no-repeat; | ||
+ | display: none; /*--Hidden by default, will be later shown with jQuery--*/ | ||
+ | } | ||
+ | .paging a { | ||
+ | padding: 5px; | ||
+ | text-decoration: none; | ||
+ | color: #fff; text-shadow: #333 1px 1px 1px; | ||
+ | } | ||
+ | .pause { | ||
+ | position: absolute; | ||
+ | bottom: -1px; right: 20px; | ||
+ | width: 25px; height:47px; | ||
+ | z-index: 200; /*--Assures the paging stays on the top layer--*/ | ||
+ | text-align: center; | ||
+ | line-height: 40px; | ||
+ | font-weight: bold; | ||
+ | display: block; /*--Hidden by default, will be later shown with jQuery--*/ | ||
+ | } | ||
+ | .pause a { | ||
+ | padding: 5px; | ||
+ | text-decoration: none; | ||
+ | letter-spacing:1px; | ||
+ | font-weight: thick; | ||
+ | color: #f0f0f0; text-shadow: #333 1px 1px 1px; | ||
+ | border: 2px solid #ccc; | ||
+ | -moz-border-radius: 3px; | ||
+ | -khtml-border-radius: 3px; | ||
+ | -webkit-border-radius: 3px; | ||
+ | } | ||
+ | .paging a.active { | ||
+ | font-weight: bold; | ||
+ | border: 2px solid #fff; | ||
+ | -moz-border-radius: 3px; | ||
+ | -khtml-border-radius: 3px; | ||
+ | -webkit-border-radius: 3px; | ||
+ | } | ||
+ | .paging a:hover {font-weight: bold;} | ||
+ | /*--Slideshow Ends Here--*/ | ||
+ | |||
+ | /*--Spotlight Stuff Begins Here--*/ | ||
+ | #spotlight { | ||
+ | margin-left:0px; | ||
+ | margin-right:auto; | ||
+ | width: 800px; | ||
+ | height: 500px; | ||
+ | } | ||
+ | #spotlightcontainer { | ||
+ | display: block; | ||
+ | position: relative; | ||
+ | width: 800px; | ||
+ | } | ||
+ | .main_image { | ||
+ | width: 800px; | ||
+ | height: 500px; | ||
+ | background: #f0f0f0; | ||
+ | position: relative; | ||
+ | overflow: hidden; /*--Overflow hidden allows the description to toggle/tuck away as it slides down--*/ | ||
+ | color: #fff; | ||
+ | border: 0px solid #006633; | ||
+ | float: left; | ||
+ | } | ||
+ | .main_image .spottab { | ||
+ | font-size: 1.2em; | ||
+ | font-weight: normal; | ||
+ | padding: 5px; | ||
+ | color: #fff; | ||
+ | } | ||
+ | .main_image p { | ||
+ | font-size: 1em; | ||
+ | line-height:100%; | ||
+ | padding: 0px 10px 5px 10px; | ||
+ | margin-top: 0; | ||
+ | } | ||
+ | .main_image .desc{ | ||
+ | position: absolute; | ||
+ | bottom: 0; | ||
+ | left: 0; /*--Stick the desc class to the bottom of our main image container--*/ | ||
+ | width: 150%; | ||
+ | display: none; /*--Hide description by default, if js is enabled, we will show this--*/ | ||
+ | } | ||
+ | .main_image .block{ | ||
+ | width: 150%; | ||
+ | background: #111; | ||
+ | position: absolute; | ||
+ | bottom: 0; | ||
+ | } | ||
+ | .main_image a.show {background-position: left bottom;} | ||
+ | .image_thumb { | ||
+ | float: left; | ||
+ | width: 800px; | ||
+ | background: #f0f0f0; | ||
+ | } | ||
+ | .image_thumb ul { | ||
+ | margin: 0; | ||
+ | padding: 0; | ||
+ | list-style: none; | ||
+ | } | ||
+ | .image_thumb ul li{ | ||
+ | margin: 0; | ||
+ | padding: 0px 0px; | ||
+ | width: 800px; | ||
+ | height: 300px; | ||
+ | float: left; | ||
+ | background: #f0f0f0; | ||
+ | border-bottom: 3px solid #006633; | ||
+ | } | ||
+ | .image_thumb ul li.hover { /*--Hover State--*/ | ||
+ | background: #fff; | ||
+ | cursor: pointer; | ||
+ | border-bottom: 3px solid #F37321; | ||
+ | } | ||
+ | .image_thumb ul li.active { /*--Active State--*/ | ||
+ | background: #fff; | ||
+ | cursor: default; | ||
+ | border-bottom: 3px solid #F37321; | ||
+ | } | ||
+ | .image_thumb ul li .spottab { | ||
+ | font-size: .9em; | ||
+ | color: #333; | ||
+ | margin: 0px 0; | ||
+ | padding: 5px; | ||
+ | text-decoration:none; | ||
+ | font-weight:bold; | ||
+ | } | ||
+ | .image_thumb ul li .block { | ||
+ | float:left; | ||
+ | } | ||
+ | .image_thumb ul li p{display: none;}/*--Hide the description on the list items--*/ | ||
+ | /*--Spotlight Stuff Ends Here--*/ | ||
+ | |||
+ | |||
+ | </style> | ||
+ | |||
+ | <!--Subnav Starts Here--> | ||
+ | |||
+ | |||
+ | |||
+ | <script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.1/jquery.min.js"></script> | ||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function() { | ||
+ | //Show the paging and activate its first link | ||
+ | $(".paging").show(); | ||
+ | $(".paging a:first").addClass("active"); | ||
+ | |||
+ | //Get size of the image, how many images there are, then determin the size of the image reel. | ||
+ | var imageWidth = $(".window").width(); | ||
+ | var imageSum = $(".image_reel img").size(); | ||
+ | var imageReelWidth = imageWidth * imageSum; | ||
+ | |||
+ | //Adjust the image reel to its new size | ||
+ | $(".image_reel").css({'width' : imageReelWidth}); | ||
+ | |||
+ | //Paging and Slider Function | ||
+ | rotate = function(){ | ||
+ | var triggerID = $active.attr("rel") - 1; //Get number of times to slide | ||
+ | var image_reelPosition = triggerID * imageWidth; //Determines the distance the image reel needs to slide | ||
+ | $(".paging a").removeClass('active'); //Remove all active class | ||
+ | $active.addClass('active'); //Add active class (the $active is declared in the rotateSwitch function) | ||
+ | |||
+ | //Slider Animation | ||
+ | $(".image_reel").animate({ | ||
+ | left: -image_reelPosition | ||
+ | }, 500 ); | ||
+ | }; | ||
+ | |||
+ | //Rotation and Timing Event | ||
+ | rotateSwitch = function(){ | ||
+ | play = setInterval(function(){ //Set timer - this will repeat itself every 7 seconds | ||
+ | $active = $('.paging a.active').next(); //Move to the next paging | ||
+ | if ( $active.length === 0) { //If paging reaches the end... | ||
+ | $active = $('.paging a:first'); //go back to first | ||
+ | } | ||
+ | rotate(); //Trigger the paging and slider function | ||
+ | }, 6000); //Timer speed in milliseconds (6 seconds) | ||
+ | }; | ||
+ | |||
+ | rotateSwitch(); //Run function on launch | ||
+ | |||
+ | //On Hover | ||
+ | //$(".image_reel a").hover(function() { | ||
+ | //clearInterval(play); //Stop the rotation | ||
+ | //}, function() { | ||
+ | //rotateSwitch(); //Resume rotation timer | ||
+ | //}); | ||
+ | |||
+ | //On Click | ||
+ | $(".pause a").click(function() { | ||
+ | clearInterval(play); //Stop the rotation | ||
+ | }); | ||
+ | |||
+ | |||
+ | //On Click | ||
+ | $(".paging a").click(function() { | ||
+ | $active = $(this); //Activate the clicked paging | ||
+ | //Reset Timer | ||
+ | clearInterval(play); //Stop the rotation | ||
+ | rotate(); //Trigger rotation immediately | ||
+ | rotateSwitch(); // Resume rotation timer | ||
+ | return false; //Prevent browser jump to link anchor | ||
+ | }); | ||
+ | }); | ||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(document).ready(function() { | ||
+ | |||
+ | $(".main_image .desc").show(); //Show Banner | ||
+ | $(".main_image .block").animate({ opacity: 0.85 }, 1 ); //Set Opacity | ||
+ | $(".image_thumb ul li:first").addClass('active'); //Add the active class (highlights the very first list item by default) | ||
+ | $(".image_thumb ul li").click(function(){ | ||
+ | //Set Variables | ||
+ | var imgAlt = $(this).find('img').attr("alt"); //Get Alt Tag of Image | ||
+ | var imgTitle = $(this).find('a').attr("href"); //Get Main Image URL | ||
+ | var imgDesc = $(this).find('.block').html(); //Get HTML of the "block" container | ||
+ | var imgDescHeight = $(".main_image").find('.block').height(); //Find the height of the "block" | ||
+ | |||
+ | if ($(this).is(".active")) { //If the list item is active/selected, then... | ||
+ | return false; // Don't click through - Prevents repetitive animations on active/selected list-item | ||
+ | } else { //If not active then... | ||
+ | //Animate the Description | ||
+ | $(".main_image .block").animate({ opacity: 0, marginBottom: -imgDescHeight }, 250 , function() { //Pull the block down (negative bottom margin of its own height) | ||
+ | $(".main_image .block").html(imgDesc).animate({ opacity: 0.85, marginBottom: "0" }, 250 ); //swap the html of the block, then pull the block container back up and set opacity | ||
+ | $(".main_image img").attr({ src: imgTitle , alt: imgAlt}); //Switch the main image (URL + alt tag) | ||
+ | }); | ||
+ | } | ||
+ | //Show active list-item | ||
+ | $(".image_thumb ul li").removeClass('active'); //Remove class of 'active' on all list-items | ||
+ | $(this).addClass('active'); //Add class of 'active' on the selected list | ||
+ | return false; | ||
+ | |||
+ | }) .hover(function(){ //Hover effects on list-item | ||
+ | $(this).addClass('hover'); //Add class "hover" on hover | ||
+ | }, function() { | ||
+ | $(this).removeClass('hover'); //Remove class "hover" on hover out | ||
+ | }); | ||
+ | $("a.collapse").click(function(){ | ||
+ | $(".main_banner .block").slideToggle(); //Toggle the description (slide up and down) | ||
+ | $("a.collapse").toggleClass("show"); //Toggle the class name of "show" (the hide/show tab) | ||
+ | }); | ||
+ | });//Close Function | ||
+ | </script> | ||
+ | |||
+ | |||
+ | </td> | ||
+ | </tr> | ||
+ | <tr> | ||
+ | <td colspan="2" style="height: 500px;"> | ||
+ | <div id="slideshow"> <!--???--> | ||
+ | <div class="textboxes" id="main_view"> <!--???--> | ||
+ | <div class="window"> <!--???--> | ||
+ | <div class="image_reel"> <!--Slideshow Pics go here - 800x300px --> | ||
+ | |||
+ | <a href="https://2013.igem.org/Main_Page"><img src="https://static.igem.org/mediawiki/2013/thumb/b/b2/NU_KZ.jpg/710px-NU_KZ.jpg" alt="" width="800" height="500" /></a> | ||
+ | <a href="https://2013.igem.org/Main_Page"><img src="https://static.igem.org/mediawiki/2013/thumb/2/26/NU_KZ1.jpg/800px-NU_KZ1.jpg" alt="" width="800" height="500" /></a> | ||
+ | <a href="https://2013.igem.org/Main_Page"><img src="https://static.igem.org/mediawiki/2013/thumb/0/00/NU_KZ2.jpg/629px-NU_KZ2.jpg" alt="" width="800" height="500" /></a> | ||
+ | <a href="https://2013.igem.org/Main_Page"><img src="https://static.igem.org/mediawiki/2013/2/22/NU_Kazakhstan.JPG" alt="" width="800" height="500" /></a> | ||
+ | |||
+ | |||
+ | |||
+ | </div> | ||
+ | </div> | ||
+ | <div class="paging"> | ||
+ | <a href="#" rel="1">1</a> | ||
+ | <a href="#" rel="2">2</a> | ||
+ | <a href="#" rel="3">3</a> | ||
+ | <a href="#" rel="4">4</a> | ||
+ | |||
+ | </div> | ||
+ | <div class="pause"><a href="#">II</a></div> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | </td> | ||
+ | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 12:43, 25 September 2013
Alexander Pak, Antonina Malozemova, Luiza Niyazmetova, Mukhtar Sadykov, Zeinaf Muradova