Line 222: | Line 222: | ||
src="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/footer&action=raw&ctype=text/javascript"></script> | src="https://2021.igem.org/wiki/index.php?title=Template:XJTU-China/footer&action=raw&ctype=text/javascript"></script> | ||
<!--locomotive--> | <!--locomotive--> | ||
− | <script> | + | <script>//mind don't use module for creating scrollBar |
// special for iGEM wiki | // special for iGEM wiki | ||
var wrapper = document.querySelector("#mw-content-text"); | var wrapper = document.querySelector("#mw-content-text"); | ||
wrapper.setAttribute("data-scroll-container", ""); | wrapper.setAttribute("data-scroll-container", ""); | ||
− | |||
− | |||
− | |||
// initialize the locomotive scroll | // initialize the locomotive scroll | ||
Line 236: | Line 233: | ||
multiplier: 1.5 | multiplier: 1.5 | ||
}); | }); | ||
− | |||
− | |||
− | |||
− | |||
− | |||
</script> | </script> | ||
<!--viewBtn--> | <!--viewBtn--> | ||
Line 323: | Line 315: | ||
</script> | </script> | ||
<!-- // to-top btn --> | <!-- // to-top btn --> | ||
− | + | <script> | |
− | var ftoTopBtn = (function () { | + | // var ftoTopBtn = (function () { |
− | + | // $(document).ready(function () { | |
− | + | // $("#to-top").hide(); | |
− | + | // $(function () { | |
− | + | // $(window).scroll(function () { | |
− | + | // if ($(window).scrollTop() > 600) { | |
− | + | // $("#to-top").fadeIn(500); | |
− | + | // } else { | |
− | + | // $("#to-top").fadeOut(500); | |
− | + | // } | |
− | + | // }); | |
− | + | // $("#to-top").click(function () { | |
− | + | // $('body,html').animate({ | |
− | + | // scrollTop: 0 | |
− | + | // }, 500); | |
− | + | // return false; | |
− | + | // }); | |
− | + | // }); | |
− | }); | + | // }); |
+ | // })(); | ||
+ | var fToTopBtn = (function () { | ||
+ | var toTopBtn = document.querySelector("#to-top"); | ||
+ | $("toTopBtn").hide(); | ||
+ | scrollBar.on("scroll", (position) => { | ||
+ | var y = position.scroll.y; | ||
+ | if (y > 600) { | ||
+ | $("toTopBtn").fadeIn(600) | ||
+ | } | ||
+ | else { | ||
+ | $("toTopBtn").fadeOut(600) | ||
+ | } | ||
+ | }) | ||
+ | |||
+ | toTopBtn.onclick = function () { | ||
+ | scrollBar.scrollTo("top"); | ||
+ | }; | ||
})(); | })(); | ||
− | </script | + | </script> |
<!-- // Love bar --> | <!-- // Love bar --> | ||
<script> | <script> |
Revision as of 06:05, 12 July 2021
Brief Intro.
a tryptophan producer
Synthetic biology is a science discipline that differs a lot from the others. Usually, you would use the scientific method to obtain results in the majority of life sciences, centering your work on making observations and performing experiments. However, synthetic biology goes beyond that, it is all about constructing something new from parts (biological parts if you may). That is why, sometimes the engineering design process fits better with these projects, since a product has to be built, a machine that performs a task, where it is more important what it does rather than how, yet still has to be tested. Funnily enough, that's why iGEM stands for genetically engineered machines.
To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon,
the main menu appears beneath and the menu icon slides to the right side while the label slides up.o be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up. the main menu appears beneath and the menu icon slides to the right side while the label slides up. To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up.ide menu found on YouTube. When clicking on the menu label and icon, To close the menu, the menu icon needs to be clicked again. This menu is inspired by the left side menu found on YouTube. When clicking on the menu label and icon, the main menu appears beneath and the menu icon slides to the right side while the label slides up.