Dongzhuoer (Talk | contribs) |
Dongzhuoer (Talk | contribs) |
||
Line 60: | Line 60: | ||
@media all and (min-width: 1024px) { | @media all and (min-width: 1024px) { | ||
#group-description > p { | #group-description > p { | ||
− | width: | + | width: 31%; |
} | } | ||
} | } | ||
Line 96: | Line 96: | ||
<script> | <script> | ||
var debug = true; | var debug = true; | ||
− | var | + | var igem = document.location.href.includes('https://2016.igem.org/Team:NKU_China'); |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
//element is $(<img>), which is 100% embed in its parent. So automatically adjust the parent can simultaneously automatically adjust the <img> | //element is $(<img>), which is 100% embed in its parent. So automatically adjust the parent can simultaneously automatically adjust the <img> | ||
var auto_adjust_parent = function (element) { | var auto_adjust_parent = function (element) { | ||
Line 163: | Line 108: | ||
window.addEventListener('resize', impl) | window.addEventListener('resize', impl) | ||
} | } | ||
− | + | //img is $(<img>), local is local path, igem is igem server's path | |
− | //var | + | var load_img = function (img, local, server) { |
− | + | var image = new Image(); | |
− | + | image.onload = function () { img.attr('src', image.src); }; | |
− | + | if(igem) | |
− | + | image.src = server; | |
− | + | else | |
− | + | image.src = local; | |
− | + | } | |
− | + | ||
− | + | </script> | |
− | + | <script> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
$(function () { | $(function () { | ||
− | auto_adjust_parent($('#group-gallery img')) | + | auto_adjust_parent($('img.auto-adjust')) |
+ | |||
+ | load_img($('#group-gallery img:first-child'), 'image/whole-group-1366.jpg', 'https://static.igem.org/mediawiki/2016/4/4b/T--NKU_China--whole-group-1366.jpg') | ||
− | + | load_img($('#group-gallery img:first-child'), 'image/whole-group.jpg', 'https://static.igem.org/mediawiki/2016/3/39/T--NKU_China--whole-group.jpg') | |
− | + | ||
− | + | ||
}) | }) | ||
+ | |||
+ | |||
+ | </script> | ||
+ | <script> | ||
</script> | </script> | ||
</head> | </head> | ||
Line 210: | Line 153: | ||
</div> | </div> | ||
<div id="group-gallery"> | <div id="group-gallery"> | ||
− | <img src="whole-group-1366.jpg" width="1366" height="770" alt="Please wait, loading image..."/> | + | <img src="whole-group-1366.jpg" width="1366" height="770" alt="Please wait, loading image..." class="auto-adjust"/> |
</div> | </div> | ||
</main> | </main> | ||
− | <script | + | <script> |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | |||
</script> | </script> | ||
</body> | </body> | ||
</html> | </html> |
Revision as of 01:30, 5 August 2016
Team Introduction
Team NKU_China consists of faculty members and students from Nankai University, Tianjin. Located in the east coast of Asia and one of the most developed and prosperous cities in mainland China, Nankai University is making groundbreaking progress in both natural and social sciences while holding fast to the orthodox beliefs that inspire us to dedicate to the interest of the public and the nation.
17 undergraduate students from College of Life Science consist of the absolute main force of Team NKU_China. Sharing “iGEMer” as our common title, the team members work closely together from brainstorming solutions for experimental problems to discussing the future prospect of synthetic biology with great enthusiasm and creation. In the meantime, we frequently adjust the project design and experiment plans under the advice and instructions of three experienced graduate instructors and three distinguished PIs.
All of the team members are looking forward to presenting our project and sharing the story of the great science adventure of Team NKU_China to iGEMers all over the globe at Giant Jamboree. Do meet us at our presentation and poster stand!