Difference between revisions of "Team:IIT Kanpur"

 
(341 intermediate revisions by 6 users not shown)
Line 1: Line 1:
 
{{Template:IIT_Kanpur}}
 
{{Template:IIT_Kanpur}}
 +
 +
<!-------------------------->
 
<html>
 
<html>
 
<head>
 
<head>
 +
<meta name="viewport" content="width=device-width, initial-scale=1">
 
<style>
 
<style>
body {
+
#overlay {
background-image: url("https://static.igem.org/mediawiki/2018/0/0f/T--IIT_Kanpur--page1.jpg");
+
    position: fixed;
background-size: 100% 320%;
+
    display: none;
 +
    width: 100%;
 +
    height: 100%;
 +
    top: 0;
 +
    left: 0;
 +
    right: 0;
 +
    bottom: 0;
 +
    background-color: rgba(255,255,255,1);
 +
    z-index: 2;
 +
    cursor: pointer;
 +
}
 +
 
 +
#text{
 +
    position: absolute;
 +
    top: 20%;
 +
    left: 50%;
 +
    font-size: 50px;
 +
    color: black;
 +
    align: right;
 +
    transform: translate(-50%,-50%);
 +
    -ms-transform: translate(-50%,-50%);
 
}
 
}
 
</style>
 
</style>
 
</head>
 
</head>
 
<body>
 
<body>
helo
+
 
 +
<div id="overlay" onclick="off()">
 +
<div id="text">Won SILVER @ iGEM 2018</div>
 +
  <img src="https://static.igem.org/mediawiki/2018/f/fa/T--IIT_Kanpur--Banner.png" style="width:30vw;margin:15vw 35vw">
 +
</div>
 +
 
 +
<script>
 +
window.onload = function on() {
 +
    document.getElementById("overlay").style.display = "block";
 +
}
 +
 
 +
function off() {
 +
    document.getElementById("overlay").style.display = "none";
 +
}
 +
</script>
 +
   
 
</body>
 
</body>
 +
</html>
 +
 +
 +
<!------------------------------->
 +
 +
 +
<html>
 +
<head>
 +
 +
 +
 +
<!-- THIS IS WHERE THE HTML BEGINS -->
 +
 +
 +
<style>
 +
 +
body {
 +
background: url('https://static.igem.org/mediawiki/2018/1/10/T--IIT_Kanpur--BackgroundMain.jpg') no-reapeat fixed center;
 +
}
 +
 +
 +
/* Slideshow container */
 +
.slideshow-container {
 +
 +
  margin: auto;
 +
  position: relative;
 +
 
 +
}
 +
 +
/* Hide the images by default */
 +
.mySlides {
 +
    display: none;
 +
}
 +
 +
/* Next & previous buttons */
 +
.prev, .next {
 +
  cursor: pointer;
 +
  position: absolute;
 +
  top: 50%;
 +
  margin-top: -22px;
 +
  width: auto;
 +
 
 +
  padding: 16px;
 +
  color: #CCCCCC;
 +
  font-weight: bold;
 +
  font-size: 30px;
 +
  transition: 0.6s ease;
 +
  border-radius: 0 3px 3px 0;
 +
}
 +
 +
/* Position the "next button" to the right */
 +
.next {
 +
  right: 0;
 +
  border-radius: 3px 0 0 3px;
 +
}
 +
 +
/* On hover, add a black background color with a little bit see-through */
 +
.prev:hover, .next:hover {
 +
  background-color: rgba(83,77,77,0.80);
 +
}
 +
 +
/* Caption text */
 +
.text {
 +
  color: #00000;
 +
  font-size: 40px;
 +
  padding: 8px 12px;
 +
  position: absolute;
 +
  bottom: 8px;
 +
  width: 100%;
 +
  text-align: center;
 +
}
 +
 +
/* Number text (1/3 etc) */
 +
.numbertext {
 +
  color: #FFFFFF;
 +
  font-size: 4px;
 +
  padding: 8px 12px;
 +
  position: absolute;
 +
  top: 0;
 +
}
 +
 +
/* The dots/bullets/indicators */
 +
.dot {
 +
  cursor: pointer;
 +
  height: 25px;
 +
  width: 25px;
 +
  margin: 0 2px;
 +
  background-color: #bbb;
 +
  border-radius: 50%;
 +
  display: inline-block;
 +
  transition: background-color 1.5s ease;
 +
}
 +
 +
.active, .dot:hover {
 +
  background-color: #717171;
 +
}
 +
 +
/* Fading animation */
 +
.fade {
 +
  -webkit-animation-name: fade;
 +
  -webkit-animation-duration: 3s;
 +
  animation-name: fade;
 +
  animation-duration: 3s;
 +
}
 +
 +
@-webkit-keyframes fade {
 +
  from {opacity: .4}
 +
  to {opacity: 1}
 +
}
 +
 +
@keyframes fade {
 +
  from {opacity: .4}
 +
  to {opacity: 1}
 +
}
 +
 +
.c_h {
 +
  z-index: 1000px;
 +
  align: center;
 +
  background: black linear-gradient(to bottom, black, #5c83e8 50%, #93aced) no-repeat 99% center;
 +
}
 +
 +
img.page {
 +
  display: block;
 +
  margin-left: auto;
 +
  margin-right: auto;
 +
}
 +
 +
.collapsible {
 +
  background-color: #6078e0;
 +
  color: white;
 +
  cursor: pointer;
 +
  padding: 18px;
 +
  width: 100%;
 +
  border: none;
 +
  text-align: left;
 +
  outline: none;
 +
  font-size: 18px;
 +
}
 +
 +
.active, .collapsible:hover {
 +
  background-color: #5465af;
 +
}
 +
 +
.contentcollap {
 +
  padding: 0 18px;
 +
  max-height: 0;
 +
  overflow: hidden;
 +
  transition: max-height 0.2s ease-out;
 +
  background-color: #73cebd;
 +
}
 +
 +
</style>
 +
 +
 +
 +
  </head>
 +
 +
  <body>
 +
 +
<!-- Slideshow container -->
 +
<div class="slideshow-container">
 +
 +
  <!-- Full-width images with number and caption text -->
 +
  <div class="mySlides fade",div style="text-align: center">
 +
    <img src="https://static.igem.org/mediawiki/2018/0/06/T--IIT_Kanpur--project_logo.png" style="width:98%;height:auto;background:black;">
 +
    <div class="text"></div>
 +
  </div>
 +
  <div class="mySlides fade">
 +
 +
    <img src="https://static.igem.org/mediawiki/2018/2/2f/T--IIT_Kanpur--PAGE_1.png" style="width:100%;height:auto;">
 +
    <div class="text"><a href=""></a></div>
 +
  </div>
 +
 +
  <div class="mySlides fade">
 +
    <img src="https://static.igem.org/mediawiki/2018/2/2d/T--IIT_Kanpur--PAGE_2.png" style="width:100%;height:auto;">
 +
    <div class="text"><a href=""></a></div>
 +
  </div>
 +
 +
  <div class="mySlides fade">
 +
    <img src="https://static.igem.org/mediawiki/2018/5/51/T--IIT_Kanpur--page_3_f.png" style="width:100%;height:auto;">
 +
    <div class="text"></div>
 +
  </div>
 +
 +
  <!-- Next and previous buttons -->
 +
  <a class="prev" onclick="plusSlides(-1)">&#10094;</a>
 +
  <a class="next" onclick="plusSlides(1)">&#10095;</a>
 +
</div>
 +
<br>
 +
 +
<!-- The dots/circles -->
 +
<div style="text-align:center">
 +
  <span class="dot" onclick="currentSlide(1)"></span>
 +
  <span class="dot" onclick="currentSlide(2)"></span>
 +
  <span class="dot" onclick="currentSlide(3)"></span>
 +
  <span class="dot" onclick="currentSlide(4)"></span>
 +
</div>
 +
<button class="collapsible" style="text-align:center;text: 30px;">SEE OUR STORY!!</button>
 +
<div class ="c_h contentcollap" id='comic_holder'>
 +
<br><br>
 +
<img src="https://static.igem.org/mediawiki/2018/f/ff/T--IIT_Kanpur--Comic01.jpg" style="width:49vw;background:black;" class='page'><br><br>
 +
<img src="https://static.igem.org/mediawiki/2018/0/06/T--IIT_Kanpur--Comic02.jpg" style="width:49vw;background:black;" class='page'><br><br>
 +
<img src="https://static.igem.org/mediawiki/2018/5/58/T--IIT_Kanpur--Comic03.jpg" style="width:49vw;background:black;" class='page'><br><br>
 +
<a href='https://2018.igem.org/Team:IIT_Kanpur/Team'><img src="https://static.igem.org/mediawiki/2018/e/e8/T--IIT_Kanpur--Comic04.jpg" style="width:49vw;background:black;" class='page'><br><br></a>
 +
</div>
 +
<script>
 +
var slideIndex = 1;
 +
showSlides(slideIndex);
 +
 +
// Next/previous controls
 +
function plusSlides(n) {
 +
  showSlides(slideIndex += n);
 +
}
 +
 +
function expandComics() {
 +
  document.getElementById('comic_holder').visibility=visible;
 +
}
 +
 +
// Thumbnail image controls
 +
function currentSlide(n) {
 +
  showSlides(slideIndex = n);
 +
}
 +
 +
function showSlides(n) {
 +
  var i;
 +
  var slides = document.getElementsByClassName("mySlides");
 +
  var dots = document.getElementsByClassName("dot");
 +
  if (n > slides.length) {slideIndex = 1}
 +
  if (n < 1) {slideIndex = slides.length}
 +
  for (i = 0; i < slides.length; i++) {
 +
      slides[i].style.display = "none";
 +
  }
 +
  for (i = 0; i < dots.length; i++) {
 +
      dots[i].className = dots[i].className.replace(" active", "");
 +
  }
 +
  slides[slideIndex-1].style.display = "block";
 +
  dots[slideIndex-1].className += " active";
 +
}
 +
</script>
 +
 +
<script>
 +
var coll = document.getElementsByClassName("collapsible");
 +
var i;
 +
 +
for (i = 0; i < coll.length; i++) {
 +
  coll[i].addEventListener("click", function() {
 +
    this.classList.toggle("active");
 +
    var content = this.nextElementSibling;
 +
    if (content.style.maxHeight){
 +
      content.style.maxHeight = null;
 +
    } else {
 +
      content.style.maxHeight = content.scrollHeight + "px";
 +
    }
 +
  });
 +
}
 +
</script>
 +
 +
  </body>
 +
 +
 
</html>
 
</html>
 +
{{Template:IIT_Kanpur/Footer}}

Latest revision as of 09:34, 6 December 2018

Won SILVER @ iGEM 2018