|
|
(29 intermediate revisions by the same user not shown) |
Line 3: |
Line 3: |
| <head> | | <head> |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | | <meta name="viewport" content="width=device-width, initial-scale=1"> |
− | <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
| |
| <style> | | <style> |
− |
| |
− | .container {
| |
− | overflow: hidden;
| |
− | background-color: #FFFFFF;
| |
− | font-family: Arial;
| |
− | }
| |
− |
| |
− | .container a {
| |
− | float: left;
| |
− | font-size: 16px;
| |
− | color: black;
| |
− | text-align: center;
| |
− | padding: 14px 16px;
| |
− | text-decoration: none;
| |
− | }
| |
− |
| |
− | .pull-right {
| |
− | float: right;
| |
− | }
| |
− |
| |
− |
| |
− |
| |
− | @media (max-width: 1500px) {
| |
− | .container{
| |
− | min-width: 1000px;
| |
− | }
| |
− | }
| |
− |
| |
− |
| |
− | #drop-nav li ul li {border-top: 0px;}
| |
− |
| |
− | #NavLogo{
| |
− | float: left;
| |
− | height: 80px;
| |
− |
| |
− | }
| |
− |
| |
− | .igem_2017_menu_wrapper #display_menu_control {
| |
− | display:none;
| |
− | text-align:center
| |
− | }
| |
− |
| |
− | .footer-distributed{
| |
− | background-color: #FFFFFF;
| |
− | box-shadow: 0 1px 1px 0 rgba(0, 0, 0, 0.12);
| |
− | box-sizing: border-box;
| |
− | width: 100%;
| |
− | text-align: left;
| |
− | padding: 45px 50px;
| |
− | margin-top: 80px;
| |
− | }
| |
− |
| |
− | .footer-distributed .footer-left p{
| |
− | color: #52658F;
| |
− | font-size: 14px;
| |
− | margin: 0;
| |
− | }
| |
− | .footer-distributed .footer-right p{
| |
− | color: #52658F;
| |
− | font-size: 14px;
| |
− | margin: 0;
| |
− | }
| |
− |
| |
− | /* Footer links */
| |
− |
| |
− | .footer-distributed p.footer-links{
| |
− | font-size:18px;
| |
− | font-weight: bold;
| |
− | color: #ffffff;
| |
− | margin: 0 0 10px;
| |
− | padding: 0;
| |
− | }
| |
− |
| |
− |
| |
− | .footer-distributed p.footer-links a{
| |
− | display:inline-block;
| |
− | line-height: 1.8;
| |
− | text-decoration: none;
| |
− | color: inherit;
| |
− | }
| |
− |
| |
− | .footer-distributed .footer-right{
| |
− | float: right;
| |
− | margin-top: 6px;
| |
− | max-width: 400px;
| |
− | }
| |
− |
| |
− |
| |
− |
| |
− | .footer-distributed .footer-right a{
| |
− | display: inline-block;
| |
− | width: 50px;
| |
− | height: 35px;
| |
− | background-color: #33383b;
| |
− | border-radius: 2px;
| |
− |
| |
− | font-size: 20px;
| |
− | color: #52658F;
| |
− | text-align: center;
| |
− | line-height: 35px;
| |
− |
| |
− | margin-left: 3px;
| |
− | }
| |
− |
| |
− | .sponsors {
| |
− | margin: 2.5px;
| |
− | width: 125px;
| |
− | }
| |
− |
| |
− | /* If you don't want the footer to be responsive, remove these media queries */
| |
− |
| |
− | @media (max-width: 600px) {
| |
− |
| |
− | .footer-distributed .footer-left,
| |
− | .footer-distributed .footer-right{
| |
− | text-align: center;
| |
− | }
| |
− |
| |
− | .footer-distributed .footer-right{
| |
− | float: none;
| |
− | margin: 0 auto 20px;
| |
− | }
| |
− |
| |
− | .footer-distributed .footer-left p.footer-links{
| |
− | line-height: 1.8;
| |
− | }
| |
− | }
| |
− |
| |
− |
| |
− |
| |
− |
| |
− | * {box-sizing:border-box}
| |
− | body {font-family: Verdana,sans-serif;margin:0}
| |
− | .mySlides {display:none}
| |
− |
| |
− | /* Slideshow container */
| |
− | .slideshow-container {
| |
− | max-width: 1000px;
| |
− | position: relative;
| |
− | margin: auto;
| |
− | }
| |
− |
| |
− |
| |
− | .flashingprev, .flashingnext{
| |
− | background:red;
| |
− | cursor: pointer;
| |
− | position: absolute;
| |
− | top: 50%;
| |
− | width: auto;
| |
− | padding: 16px;
| |
− | margin-top: -22px;
| |
− | color: #fff;
| |
− | font-weight: bold;
| |
− | font-size: 80px;
| |
− | transition: 0.6s ease;
| |
− | border-radius: 0 3px 3px 0;
| |
− | animation-name: flash;
| |
− | animation-duration: 1.8s;
| |
− | animation-timing-function: linear;
| |
− | animation-iteration-count: infinite;
| |
− |
| |
− | /* Chrome 4+, Safari 4+, Opera 15+ */
| |
− | -webkit-animation-name: flash;
| |
− | -webkit-animation-duration: 0.7s;
| |
− | -webkit-animation-timing-function: linear;
| |
− | -webkit-animation-iteration-count: infinite;
| |
− | -webkit-box-shadow: 0 0 33px #B20000;
| |
− |
| |
− | /* Firefox 5+ */
| |
− | -moz-animation-name: flash;
| |
− | -moz-animation-duration: 0.7s;
| |
− | -moz-animation-timing-function: linear;
| |
− | -moz-animation-iteration-count: infinite;
| |
− | -moz-box-shadow: 0 0 3px #B20000;
| |
− | }
| |
− |
| |
− | @keyframes flash {
| |
− | 0% { opacity: 1.0 }
| |
− | 50% { opacity: 0.5 }
| |
− | 100% { opacity: 1.0 }
| |
− | }
| |
− |
| |
− | /* Chrome 4+, Safari 4+, Opera 15+ */
| |
− | @-webkit-keyframes flash {
| |
− | 0% { opacity: 1.0 }
| |
− | 50% { opacity: 0.5 }
| |
− | 100% { opacity: 1.0 }
| |
− | }
| |
− |
| |
− | /* Firefox 5+ */
| |
− | @-moz-keyframes flash {
| |
− | 0% { opacity: 1.0 }
| |
− | 50% { opacity: 0.5 }
| |
− | 100% { opacity: 1.0 }
| |
− | }
| |
− |
| |
− |
| |
− |
| |
− | /* Position the "next button" to the right */
| |
− | .flashingnext {
| |
− | 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(0,0,0,0.8);
| |
− | }
| |
− |
| |
− | /* 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) {
| |
− | .prev, .next,.text {font-size: 11px}
| |
− | }
| |
− |
| |
− |
| |
− |
| |
− | @import url(https://fonts.googleapis.com/css?family=Josefin+Sans:300,400);
| |
− | * {
| |
− | margin: 0;
| |
− | padding: 0;
| |
− | }
| |
− | html, body {
| |
− | height: 100%;
| |
− | }
| |
− |
| |
− | .demo a {
| |
− | position: absolute;
| |
− | bottom: 20px;
| |
− | left: 50%;
| |
− | z-index: 2;
| |
− | display: inline-block;
| |
− | -webkit-transform: translate(0, -50%);
| |
− | transform: translate(0, -50%);
| |
− | color: #fff;
| |
− | font : normal 400 20px/1 'Josefin Sans', sans-serif;
| |
− | letter-spacing: .1em;
| |
− | text-decoration: none;
| |
− | transition: opacity .3s;
| |
− | }
| |
− | .demo a:hover {
| |
− | opacity: .5;
| |
− | }
| |
| | | |
| | | |
| section { | | section { |
| + | margin:auto; |
| position: relative; | | position: relative; |
− | width: 100%; | + | width: 70%; |
− | height: 100%; | + | text-align:center; |
| + | height: auto; |
| background-color:#fff; | | background-color:#fff; |
| + | } |
| + | .content{ |
| + | margin-top:20px; |
| + | } |
| + | .adjust1{ |
| + | margin:auto;width:100%; margin-bottom:0; |
| + | } |
| + | .adjust2{ |
| + | margin:0; |
| + | } |
| + | .carousel-control{ |
| + | color:#31708f; width:5%; |
| + | } |
| + | .carousel-control:hover, |
| + | .carousel-control:focus{ |
| + | color:#31708f; |
| + | } |
| + | .carousel-control.left, |
| + | .carousel-control.right{ |
| + | background-image: none; |
| + | } |
| } | | } |
− |
| |
− |
| |
− | #section02 a {
| |
− | padding-top: 60px;
| |
− | }
| |
− |
| |
− | #section02 a span {
| |
− | position: absolute;
| |
− | top: 0;
| |
− | left: 50%;
| |
− | width: 46px;
| |
− | height: 46px;
| |
− | margin-left: -23px;
| |
− | border: 1px solid #fff;
| |
− | border-radius: 100%;
| |
− | box-sizing: border-box;
| |
− | }
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
| </style> | | </style> |
| </head> | | </head> |
| | | |
| | | |
− | | + | <section id="section01"> |
− | | + | |
− | <section id="section01" class="demo"> | + | |
| <div class="splash" id="mainsplash"> | | <div class="splash" id="mainsplash"> |
− | <div class="row splashyla">
| + | <div id="banner"> |
− | <div class="col-md-12">
| + | <img src="https://static.igem.org/mediawiki/2017/0/0c/Dr_swtich1.png" width="90%" height="auto" class=" igem-logo"></a> |
− | <img src="https://static.igem.org/mediawiki/2017/a/ad/Cuhk_frontpage.PNG" width="1000" height="auto" class=" igem-logo"></a> | + | |
| </div> | | </div> |
| </div> | | </div> |
| </div> | | </div> |
− | | + | <center> |
− | <center><a href="#section02"><span></span>Scroll</a>
| + | |
| </section> | | </section> |
− | <section id="section02" class="demo">
| |
− | <div class="slideshow-container">
| |
| | | |
| + | <section id="myCarousel" class="carousel slide" data-ride="carousel"> |
| + | <!-- Indicators --> |
| + | <ol class="carousel-indicators"> |
| + | <li data-target="#myCarousel" data-slide-to="0" class="active"></li> |
| + | <li data-target="#myCarousel" data-slide-to="1"></li> |
| + | <li data-target="#myCarousel" data-slide-to="2"></li> |
| + | <li data-target="#myCarousel" data-slide-to="3"></li> |
| + | </ol> |
| | | |
− | <div class="mySlides fade"> | + | <!-- Wrapper for slides --> |
− | <div class="numbertext">1 / 4</div>
| + | <div class="carousel-inner"> |
− | <img src="https://static.igem.org/mediawiki/2017/c/c3/Cuhk_secondpage.PNG" width="100%" >
| + | <div class="item active"> |
− |
| + | <img src="https://static.igem.org/mediawiki/2017/0/08/Page1.png" height="500" > |
− | </div> | + | </div> |
| | | |
− | <div class="mySlides fade"> | + | <div class="item"> |
− | <div class="numbertext">2 / 4</div>
| + | <img src="https://static.igem.org/mediawiki/2017/8/85/Page2.png" height="500" > |
− | <img src="https://static.igem.org/mediawiki/2017/7/77/Cuhk_thirdpage.PNG" width="100%" >
| + | </div> |
− |
| + | |
− | </div> | + | |
| | | |
− | <div class="mySlides fade"> | + | <div class="item"> |
− | <div class="numbertext">3 / 4</div>
| + | <img src="https://static.igem.org/mediawiki/2017/5/5c/Page3.png" height="500"> |
− | <img src="https://static.igem.org/mediawiki/2017/2/27/Cuhk_forthpage.PNG" width="100%" >
| + | </div> |
− |
| + | |
− | </div> | + | |
− | | + | |
− | <div class="mySlides fade">
| + | |
− | <div class="numbertext">4 / 4</div>
| + | |
− | <img src="https://static.igem.org/mediawiki/2017/6/6b/Cuhk_finalpage.PNG" width="100%" >
| + | |
− | <div class="text">Caption Five</div>
| + | |
− | </div>
| + | |
− | | + | |
− | <span class="flashingprev" onclick="plusSlides(-1)">❮</span>
| + | |
− | <span class="flashingnext" onclick="plusSlides(1)">❯</span>
| + | |
| | | |
| + | <div class="item"> |
| + | <img src="https://static.igem.org/mediawiki/2017/e/e9/Page4.png" height="500"> |
| + | </div> |
| + | </div> |
| | | |
| + | <!-- Left and right controls --> |
| + | <a class="left carousel-control" href="#myCarousel" data-slide="prev"> |
| + | <span class="glyphicon glyphicon-chevron-left"></span> |
| + | <span class="sr-only">Previous</span> |
| + | </a> |
| + | <a class="right carousel-control" href="#myCarousel" data-slide="next"> |
| + | <span class="glyphicon glyphicon-chevron-right"></span> |
| + | <span class="sr-only">Next</span> |
| + | </a> |
| </div> | | </div> |
− | <br> | + | <center> |
− | | + | |
− | <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>
| + | |
− | | + | |
− | <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>
| + | |
− | | + | |
− | | + | |
| </section> | | </section> |
− |
| |
− |
| |
− |
| |
− |
| |
− | <script>
| |
− |
| |
− | $(function() {
| |
− | $('a[href*=#]').on('click', function(e) {
| |
− | e.preventDefault();
| |
− | $('html, body').animate({ scrollTop: $($(this).attr('href')).offset().top}, 500, 'linear');
| |
− | });
| |
− | });
| |
− |
| |
− | </script>
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− |
| |
− | <footer class="footer-distributed">
| |
− |
| |
− | <div class="footer-right">
| |
− |
| |
− |
| |
− | <a target="_blank" href="mailto:igemcuhk1617@gmail.com "><i class="fa fa-envelope-o fa-2x"></i></a>
| |
− | <a target="_blank" href="https://www.facebook.com/igemcuhk2017/?fref=ts"><i class="fa fa-facebook fa-2x"></i></a>
| |
− |
| |
− | <p> Email: igemcuhk1617@gmail.com </p>
| |
− | </div>
| |
− |
| |
− |
| |
− | <div class="footer-left">
| |
− |
| |
− | <p class="footer-links">
| |
− |
| |
− |
| |
− | <a target="_blank" href="https://www.neb.com/">
| |
− | <img class="sponsors" src="https://static.igem.org/mediawiki/2017/a/ae/CUHK--NEB.PNG">
| |
− | </a>
| |
− |
| |
− |
| |
− | </p>
| |
− |
| |
− |
| |
− | </div>
| |
− |
| |
− | </footer>
| |
− |
| |
| | | |
| | | |
Line 488: |
Line 94: |
| | | |
| </html> | | </html> |
| + | {{Template:Hong_Kong-CUHK_footer}} |