Difference between revisions of "Team:CGU Taiwan"

Line 60: Line 60:
  
 
</style>
 
</style>
</head>
+
<style type="text/css">
<nav>
+
body{
<ul>
+
    margin:0px;
<li><a href="https://2016.igem.org/Team:CGU_Taiwan/Home">HOME</a></li>
+
    background:#000;
<li><a href="https://2016.igem.org/Team:CGU_Taiwan/Team">TEAM</a></li>
+
<li><a href="https://2016.igem.org/Team:CGU_Taiwan/Project">PROJECT</a>
+
    <ul>
+
        <li><a href="https://2016.igem.org/Team:CGU_Taiwan/Description">DESCRIPTION</a></li>
+
        <li><a href="https://2016.igem.org/Team:CGU_Taiwan/Design">DESIGN</a></li>
+
        <li><a href="https://2016.igem.org/Team:CGU_Taiwan/Proof">PROOF</a></li>
+
    </ul>
+
</li>
+
<li><a href="https://2016.igem.org/Team:CGU_Taiwan/Wet Lab">WET LAB</a>
+
    <ul>
+
        <li><a href="https://2016.igem.org/Team:CGU_Taiwan/Experiments">EXPERIMENTS</a></li>
+
        <li><a href="https://2016.igem.org/Team:CGU_Taiwan/Schedule">SCHEDULE</a></li>
+
        <li><a href="https://2016.igem.org/Team:CGU_Taiwan/Results">RESULTS</a></li>
+
    </ul>
+
</li>
+
<li><a href="https://2016.igem.org/Team:CGU_Taiwan/Model">MODELING</a>
+
    <ul>
+
        <li><a href="https://2016.igem.org/Team:CGU_Taiwan/Software">SOFTWARE</a></li>
+
    </ul>
+
</li>
+
<li><a href="https://2016.igem.org/Team:CGU_Taiwan/Human_Practices">HUMAN PRACTICES</a></li>
+
<li><a href="https://2016.igem.org/Team:CGU_Taiwan/Attributions">ATTRIBUTION</a></li>
+
<li><a href="https://2016.igem.org/Team:CGU_Taiwan/Notebook">NOTEBOOK</a>
+
    <ul>
+
        <li><a href="https://2016.igem.org/Team:CGU_Taiwan/Safety">SAFETY</a></li>
+
        <li><a href="https://2016.igem.org/Team:CGU_Taiwan/News">NEWS</a></li>
+
    </ul>
+
</li>
+
</ul>
+
</nav>
+
<meta name="viewport" content="width=device-width, initial-scale=1">
+
 
+
<style>
+
* {box-sizing:border-box}
+
body {font-family: Verdana,sans-serif;margin:0}
+
 
+
/* Slideshow container */
+
.slideshow-container {
+
  max-width: 1000px;
+
  position: relative;
+
  margin: auto;
+
 
}
 
}
 
+
.header-cont {
/* Next & previous buttons */
+
    width:100%;
.prev, .next {
+
    position:fixed;
  cursor: pointer;
+
    top:0px;
  position: absolute;
+
  top: 0;
+
  top: 50%;
+
  width: auto;
+
  padding: 16px;
+
  margin-top: -22px;
+
  color: white;
+
  font-weight: bold;
+
  font-size: 18px;
+
  transition: 0.6s ease;
+
  border-radius: 0 3px 3px 0;
+
 
}
 
}
 
+
.header {
/* Position the "next button" to the right */
+
    height:50px;
.next {
+
    background:#F0F0F0;
  right: 0;
+
    border:1px solid #CCC;
  border-radius: 3px 0 0 3px;
+
    width:960px;
 +
    margin:0px auto;
 
}
 
}
 
+
.content {
/* On hover, add a black background color with a little bit see-through */
+
    width:960px;
.prev:hover, .next:hover {
+
    background: #F0F0F0;
  background-color: rgba(0,0,0,0.8);
+
    border: 1px solid #CCC;
}
+
    height: 2000px;
 
+
    margin: 70px auto;
/* Caption text */
+
.text {
+
  color: #f2f2f2;
+
  font-size: 15px;
+
  padding: 8px 12px;
+
  position: absolute;
+
  bottom: 8px;
+
  width: 100%;
+
  text-align: center;
+
}
+
 
+
/* Number text (1/3 etc) */
+
.numbertext {
+
  color: #f2f2f2;
+
  font-size: 12px;
+
  padding: 8px 12px;
+
  position: absolute;
+
  top: 0;
+
}
+
 
+
/* The dots/bullets/indicators */
+
.dot {
+
  cursor:pointer;
+
  height: 13px;
+
  width: 13px;
+
  margin: 0 2px;
+
  background-color: #bbb;
+
  border-radius: 50%;
+
  display: inline-block;
+
  transition: background-color 0.6s ease;
+
}
+
 
+
.active, .dot:hover {
+
  background-color: #717171;
+
}
+
 
+
/* Fading animation */
+
.fade {
+
  -webkit-animation-name: fade;
+
  -webkit-animation-duration: 1.5s;
+
  animation-name: fade;
+
  animation-duration: 1.5s;
+
}
+
 
+
@-webkit-keyframes fade {
+
  from {opacity: .4}
+
  to {opacity: 1}
+
}
+
 
+
@keyframes fade {
+
  from {opacity: .4}
+
  to {opacity: 1}
+
}
+
 
+
/* On smaller screens, decrease text size */
+
@media only screen and (max-width: 300px) {
+
  .slprev, .slnext,.text {font-size: 11px}
+
 
}
 
}
 
</style>
 
</style>
 +
</head>
 
<body>
 
<body>
 
+
<div class="slideshow-container">
+
<div class="header-cont">
 
+
    <div></div>
<div class="mySlides fade">
+
  <div class="numbertext">1 / 3</div>
+
  <img src="https://static.igem.org/mediawiki/2016/b/b4/Chang_Gung_university.jpeg" style="width:100%">
+
  <div class="text">Caption Text</div>
+
 
</div>
 
</div>
 
+
<div class="mySlides fade">
+
<div></div>
  <div class="numbertext">2 / 3</div>
+
</head>
  <img src="img_fjords_wide.jpg" style="width:100%">
+
  <div class="text">Caption Two</div>
+
</div>
+
 
+
<div class="mySlides fade">
+
  <div class="numbertext">3 / 3</div>
+
  <img src="img_mountains_wide.jpg" style="width:100%">
+
  <div class="text">Caption Three</div>
+
</div>
+
 
+
<a class="prev" onclick="plusSlides(-1)">❮</a>
+
<a class="next" onclick="plusSlides(1)">❯</a>
+
 
+
</div>
+
<br>
+
 
+
<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>
+
</div>
+
 
+
<script>
+
var slideIndex = 1;
+
showSlides(slideIndex);
+
 
+
function plusSlides(n) {
+
  showSlides(slideIndex += n);
+
}
+
 
+
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>
+
 
+
</body>
+
 
</html>
 
</html>

Revision as of 11:30, 4 July 2016