Line 1: | Line 1: | ||
{{:Team:Mingdao/test}} | {{:Team:Mingdao/test}} | ||
− | |||
<html lang="en"> | <html lang="en"> | ||
<head> | <head> | ||
Line 6: | Line 5: | ||
<link href='https://fonts.googleapis.com/css?family=Arizonia' rel='stylesheet'> | <link href='https://fonts.googleapis.com/css?family=Arizonia' rel='stylesheet'> | ||
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'> | <link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet'> | ||
− | <title> | + | <title>APP</title> |
</head> | </head> | ||
Line 21: | Line 20: | ||
padding: 0; | padding: 0; | ||
font-family: 'Ubuntu' !important; } | font-family: 'Ubuntu' !important; } | ||
− | img. | + | img.right { |
− | display: block; | + | float: right; |
− | margin: 0 auto; | + | } |
− | + | img.center{ | |
+ | display: block; | ||
+ | margin: 0 auto; | ||
+ | } | ||
.bg-container { | .bg-container { | ||
− | |||
position: relative; | position: relative; | ||
− | + | max-height: 200vh; } | |
− | + | .bg-container > img { | |
− | + | width: 100%; | |
− | } | + | margin-top: -45px; } |
.my-main-container { | .my-main-container { | ||
+ | position: absolute; | ||
+ | top: 0; | ||
+ | left: 0; | ||
width: 100%; | width: 100%; | ||
+ | height: 100%; | ||
padding: 50px 7%; | padding: 50px 7%; | ||
− | + | min-height: 200vh; | |
+ | } | ||
.main-content { | .main-content { | ||
Line 53: | Line 59: | ||
margin-bottom: 1rem; } | margin-bottom: 1rem; } | ||
.m-text-area p { | .m-text-area p { | ||
− | font-size: 22px | + | font-size: 22px; |
− | + | margin-left:5px; | |
font-weight: 500; } | font-weight: 500; } | ||
Line 98: | Line 104: | ||
#HQ_page .path .pathWord p { | #HQ_page .path .pathWord p { | ||
font-weight: 700; | font-weight: 700; | ||
− | text-align: left !important; | + | text-align: left !important; |
font-size: 16px; | font-size: 16px; | ||
} | } | ||
− | #HQ_page .text-area p { | + | #HQ_page .m-text-area p { |
font-size: 22px; | font-size: 22px; | ||
font-family: 'Ubuntu'; | font-family: 'Ubuntu'; | ||
Line 109: | Line 115: | ||
margin: 0 auto; } | margin: 0 auto; } | ||
− | .text-area h2 { | + | .m-text-area h2 { |
text-align: center; | text-align: center; | ||
+ | font-size: 40px; | ||
+ | font-weight:700; | ||
margin-bottom: 2rem !important; | margin-bottom: 2rem !important; | ||
margin-top: 2rem; | margin-top: 2rem; | ||
− | color: | + | color: #603813 !important; } |
+ | |||
+ | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
.path-tags{ | .path-tags{ | ||
position: fixed; | position: fixed; | ||
− | left: | + | left: 1%; |
− | top: | + | top: 270px; |
} | } | ||
.path-tags ul{ | .path-tags ul{ | ||
− | color: # | + | color: #006837; |
list-style: none; | list-style: none; | ||
− | font-size: | + | font-size: 16px; |
− | + | ||
} | } | ||
Line 146: | Line 147: | ||
z-index: 1; | z-index: 1; | ||
font-size: 20px; | font-size: 20px; | ||
+ | } | ||
+ | .m-block span{ | ||
+ | position: absolute; | ||
+ | bottom: 80px; | ||
+ | right: 350px; | ||
+ | background-color: #fadd3a; | ||
+ | padding: 1px 10px; | ||
+ | border-radius: 5px; | ||
+ | margin-left: 20px; | ||
+ | cursor: pointer; | ||
+ | } | ||
+ | |||
+ | .m-block a, | ||
+ | .m-block a:visited, | ||
+ | .m-block a:hover, | ||
+ | .m-block a:focus{ | ||
+ | text-decoration: none; | ||
+ | color: #000; | ||
} | } | ||
.top { | .top { | ||
Line 156: | Line 175: | ||
.top img { | .top img { | ||
width: 100%; } | width: 100%; } | ||
− | . | + | .hp-bg-container { |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | position: relative; | |
− | + | max-height: 200vh; | |
− | + | background-color: #fdf8e3; } | |
− | color:# | + | .hp-bg-container > img { |
− | margin-top: | + | width: 100%; |
− | + | margin-top: -45px; } | |
+ | |||
+ | .hp-main-container { | ||
+ | position: absolute; | ||
+ | top: 0; | ||
+ | left: 0; | ||
+ | width: 100%; | ||
+ | height: 100%; | ||
+ | padding: 50px 7%; | ||
+ | min-height: 100vh; | ||
} | } | ||
− | |||
− | + | .hp-main-content { | |
− | + | background-color: white; | |
− | + | width: 80%; | |
− | + | margin-left: 10%; | |
− | + | margin-top:150px; | |
− | + | padding: 0px; | |
− | + | min-height: 0vh; | |
− | + | z-index: 10; } | |
− | + | ||
− | + | ||
− | + | .hp-title { | |
+ | position: relative; | ||
+ | top: 20px; | ||
+ | text-align: center; | ||
+ | font-size: 60px; | ||
+ | font-weight: 700; | ||
+ | font-family: 'Arizonia' !important; | ||
+ | margin-bottom: 30px !important; | ||
+ | } | ||
+ | .pdf-container { | ||
+ | width: 100%; | ||
+ | text-align: center; | ||
+ | height: 90vh; | ||
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
+ | .ul-container { | ||
+ | width: 100%; | ||
+ | text-align: center; | ||
+ | height: auto; | ||
+ | } | ||
− | + | .ul2-container { | |
− | + | width: 100%; | |
− | + | text-align: center; | |
− | + | height: auto; | |
+ | display: none; | ||
+ | } | ||
+ | .ul-container ul.medal li { | ||
+ | |||
+ | list-style: none; } | ||
+ | .ul-container ul.medal li:before { | ||
+ | content: ''; | ||
+ | display: inline-block; | ||
+ | height: 1em; | ||
+ | width: 2em; | ||
+ | background-size: 1em; | ||
+ | background-image: url(../img/circle.png); | ||
+ | background-repeat: no-repeat; } | ||
+ | .ul-container ul { | ||
+ | text-align: left; | ||
+ | font-family: 'Ubuntu'; | ||
+ | padding: 20px 20px; | ||
+ | margin-top: -20px; | ||
+ | margin-left: 0; | ||
+ | border: #556b7e solid 2px; | ||
+ | font-size: 22px; } | ||
+ | .ul-container ul.ul-brown { | ||
− | + | border: #603813 solid 2px; } | |
− | + | .ul-container ul li { | |
− | + | margin-left: 30px; | |
+ | margin-top: 50px; | ||
+ | margin-bottom: 20px; | ||
+ | padding: 10px; | ||
+ | list-style: disc; } | ||
+ | .ul-container ul li a { | ||
+ | text-decoration: none; | ||
+ | color: #000; } | ||
+ | .ul-container ul li a:visited, .ul-container ul li a:hover, .ul-container ul li a:focus { | ||
+ | color: #000; | ||
+ | text-decoration: none; } | ||
+ | .ul-container ul li span { | ||
+ | background-color: #fadd3a; | ||
+ | padding: 1px 10px; | ||
+ | border-radius: 5px; | ||
+ | margin-left: 20px; | ||
+ | cursor: pointer; } | ||
+ | .ul-container ul li i { | ||
+ | padding-left: 10px; } | ||
− | + | .pdfbtn { | |
− | + | width: 100%; | |
− | + | margin: 20px 0 10px 0; | |
− | + | padding: 10px 20px; | |
− | + | border-radius: 5px; | |
− | + | background-color: #556b7e; | |
− | + | color: white; | |
+ | text-align: left; | ||
+ | font-size:22px; | ||
− | + | display: block; | |
− | + | position: relative; } | |
− | + | .pdfbtn2 { | |
− | + | width: 100%; | |
− | + | margin: 20px 0 10px 0; | |
− | + | padding: 10px 20px; | |
+ | border-radius: 5px; | ||
+ | background-color: #556b7e; | ||
+ | color: white; | ||
+ | font-size:22px; | ||
+ | text-align: left; | ||
+ | display: block; | ||
+ | position: relative; } | ||
+ | .pdfbtn2 i { | ||
+ | position: absolute; | ||
+ | right: 50px; | ||
+ | top: 50%; | ||
+ | transform: translateY(-50%); } | ||
+ | .pdfbtn p{ | ||
+ | color: white; | ||
+ | margin: 0px auto; | ||
+ | } | ||
+ | .brown-btn { | ||
+ | background-color: #556b7e; | ||
+ | height:50px; | ||
+ | } | ||
+ | .img-container { | ||
+ | width: 100%; | ||
+ | text-align: center; | ||
+ | } | ||
+ | .img-container img { | ||
+ | width: 100%; } | ||
+ | .ul-roman-style{ | ||
+ | list-style-type :upper-roman; | ||
+ | font-size:22px; | ||
+ | } | ||
+ | </style> | ||
+ | <body> | ||
+ | <div class="hp-bg-container" style="max-height:none;"> | ||
+ | <img src="https://static.igem.org/mediawiki/2017/0/00/T--CSMU_NCHU_Taiwan--LabBookBg2.png"> | ||
+ | <div class="hp-main-container"> | ||
+ | <h1 class="hp-title">Lab Book</h1> | ||
+ | <div class="hp-main-content"> | ||
+ | <div class="pdf-area"> | ||
+ | <span class="pdfbtn" id="">Lab book</span> | ||
+ | <div class="img-container" id="lab-1"> | ||
+ | <embed src="https://static.igem.org/mediawiki/2017/1/1d/T--CSMU_NCHU_Taiwan--LabBook.pdf" style="width:100%; height:1000px" frameborder="0"></embed> | ||
− | + | </div></div> | |
− | + | ||
− | + | ||
− | + | ||
− | </div> | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</div> | </div> | ||
− | + | </div> | |
</div> | </div> | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | ||
− | + | ||
− | + | ||
<div class="top"> | <div class="top"> | ||
<img src="https://static.igem.org/mediawiki/2017/5/52/T--CSMU_NCHU_Taiwan--top.png" alt=""> | <img src="https://static.igem.org/mediawiki/2017/5/52/T--CSMU_NCHU_Taiwan--top.png" alt=""> | ||
Line 280: | Line 357: | ||
$('html, body').animate({scrollTop: '0px'}, 500); | $('html, body').animate({scrollTop: '0px'}, 500); | ||
}); | }); | ||
+ | }); | ||
+ | $(document).ready(function(){ | ||
− | + | for( var i = 1; i < 3; i++){ | |
− | $(' | + | $('#figure-btn-' + i).click( toggleContainer(i) ); |
− | + | } | |
− | + | for( var j = 1; j < 3; j++){ | |
− | } | + | $('#question-btn-' + j).click( toggleContainer2(j) ); |
− | + | } | |
− | $(' | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | $( | + | $('.top').on('click', function(){ |
− | + | $('html, body').animate({scrollTop: '0px'}, 500); | |
− | + | }); | |
− | + | ||
− | + | ||
+ | }); | ||
− | |||
+ | function toggleContainer(i){ | ||
+ | return function(){ | ||
+ | if($('#figure-'+i).is(":visible")){ | ||
+ | $('#figure-'+i).slideToggle(500); | ||
+ | } | ||
+ | |||
+ | else{ | ||
+ | $('.img-container:visible').slideToggle(500); | ||
+ | $('#figure-'+i).slideToggle(650); | ||
+ | } | ||
+ | |||
+ | $('.hp-bg-container').css('max-height','none') | ||
+ | $('.main-content').css('min-height','200vh') | ||
+ | } | ||
+ | } | ||
+ | function toggleContainer2(j){ | ||
+ | return function(){ | ||
+ | if($('#question-'+j).is(":visible")){ | ||
+ | $('#question-'+j).slideToggle(500); | ||
+ | } | ||
+ | |||
+ | else{ | ||
+ | $('.img-container:visible').slideToggle(500); | ||
+ | $('#question-'+j).slideToggle(500); | ||
+ | } | ||
+ | |||
+ | $('.hp-bg-container').css('max-height','none') | ||
+ | $('.main-content').css('min-height','200vh') | ||
+ | } | ||
+ | } | ||
</script> | </script> | ||
− | |||
</html> | </html> |
Revision as of 06:56, 11 September 2018